Struct aws_sdk_autoscaling::operation::set_instance_protection::builders::SetInstanceProtectionInputBuilder
source · #[non_exhaustive]pub struct SetInstanceProtectionInputBuilder { /* private fields */ }Expand description
A builder for SetInstanceProtectionInput.
Implementations§
source§impl SetInstanceProtectionInputBuilder
impl SetInstanceProtectionInputBuilder
sourcepub fn instance_ids(self, input: impl Into<String>) -> Self
pub fn instance_ids(self, input: impl Into<String>) -> Self
Appends an item to instance_ids.
To override the contents of this collection use set_instance_ids.
One or more instance IDs. You can specify up to 50 instances.
sourcepub fn set_instance_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_instance_ids(self, input: Option<Vec<String>>) -> Self
One or more instance IDs. You can specify up to 50 instances.
sourcepub fn get_instance_ids(&self) -> &Option<Vec<String>>
pub fn get_instance_ids(&self) -> &Option<Vec<String>>
One or more instance IDs. You can specify up to 50 instances.
sourcepub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
The name of the Auto Scaling group.
This field is required.sourcepub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn get_auto_scaling_group_name(&self) -> &Option<String>
pub fn get_auto_scaling_group_name(&self) -> &Option<String>
The name of the Auto Scaling group.
sourcepub fn protected_from_scale_in(self, input: bool) -> Self
pub fn protected_from_scale_in(self, input: bool) -> Self
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
This field is required.sourcepub fn set_protected_from_scale_in(self, input: Option<bool>) -> Self
pub fn set_protected_from_scale_in(self, input: Option<bool>) -> Self
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
sourcepub fn get_protected_from_scale_in(&self) -> &Option<bool>
pub fn get_protected_from_scale_in(&self) -> &Option<bool>
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
sourcepub fn build(self) -> Result<SetInstanceProtectionInput, BuildError>
pub fn build(self) -> Result<SetInstanceProtectionInput, BuildError>
Consumes the builder and constructs a SetInstanceProtectionInput.
source§impl SetInstanceProtectionInputBuilder
impl SetInstanceProtectionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SetInstanceProtectionOutput, SdkError<SetInstanceProtectionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SetInstanceProtectionOutput, SdkError<SetInstanceProtectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SetInstanceProtectionInputBuilder
impl Clone for SetInstanceProtectionInputBuilder
source§fn clone(&self) -> SetInstanceProtectionInputBuilder
fn clone(&self) -> SetInstanceProtectionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SetInstanceProtectionInputBuilder
impl Default for SetInstanceProtectionInputBuilder
source§fn default() -> SetInstanceProtectionInputBuilder
fn default() -> SetInstanceProtectionInputBuilder
source§impl PartialEq for SetInstanceProtectionInputBuilder
impl PartialEq for SetInstanceProtectionInputBuilder
source§fn eq(&self, other: &SetInstanceProtectionInputBuilder) -> bool
fn eq(&self, other: &SetInstanceProtectionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.