#[non_exhaustive]pub struct UpgradeClusterRequest {
pub name: String,
pub target_version: String,
pub schedule: Schedule,
pub request_id: String,
/* private fields */
}Expand description
Upgrades a cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The resource name of the cluster.
target_version: StringRequired. The version the cluster is going to be upgraded to.
schedule: ScheduleThe schedule for the upgrade.
request_id: StringA unique identifier for this request. Restricted to 36 ASCII characters. A
random UUID is recommended. This request is only idempotent if
request_id is provided.
Implementations§
Source§impl UpgradeClusterRequest
impl UpgradeClusterRequest
pub fn new() -> Self
Sourcepub fn set_target_version<T: Into<String>>(self, v: T) -> Self
pub fn set_target_version<T: Into<String>>(self, v: T) -> Self
Sets the value of target_version.
Sourcepub fn set_schedule<T: Into<Schedule>>(self, v: T) -> Self
pub fn set_schedule<T: Into<Schedule>>(self, v: T) -> Self
Sets the value of schedule.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Trait Implementations§
Source§impl Clone for UpgradeClusterRequest
impl Clone for UpgradeClusterRequest
Source§fn clone(&self) -> UpgradeClusterRequest
fn clone(&self) -> UpgradeClusterRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpgradeClusterRequest
impl Debug for UpgradeClusterRequest
Source§impl Default for UpgradeClusterRequest
impl Default for UpgradeClusterRequest
Source§fn default() -> UpgradeClusterRequest
fn default() -> UpgradeClusterRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpgradeClusterRequest
impl Message for UpgradeClusterRequest
Source§impl PartialEq for UpgradeClusterRequest
impl PartialEq for UpgradeClusterRequest
impl StructuralPartialEq for UpgradeClusterRequest
Auto Trait Implementations§
impl Freeze for UpgradeClusterRequest
impl RefUnwindSafe for UpgradeClusterRequest
impl Send for UpgradeClusterRequest
impl Sync for UpgradeClusterRequest
impl Unpin for UpgradeClusterRequest
impl UnwindSafe for UpgradeClusterRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more