Struct aws_sdk_emr::operation::set_termination_protection::builders::SetTerminationProtectionInputBuilder
source · #[non_exhaustive]pub struct SetTerminationProtectionInputBuilder { /* private fields */ }Expand description
A builder for SetTerminationProtectionInput.
Implementations§
source§impl SetTerminationProtectionInputBuilder
impl SetTerminationProtectionInputBuilder
sourcepub fn job_flow_ids(self, input: impl Into<String>) -> Self
pub fn job_flow_ids(self, input: impl Into<String>) -> Self
Appends an item to job_flow_ids.
To override the contents of this collection use set_job_flow_ids.
A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
sourcepub fn set_job_flow_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_job_flow_ids(self, input: Option<Vec<String>>) -> Self
A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
sourcepub fn get_job_flow_ids(&self) -> &Option<Vec<String>>
pub fn get_job_flow_ids(&self) -> &Option<Vec<String>>
A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
sourcepub fn termination_protected(self, input: bool) -> Self
pub fn termination_protected(self, input: bool) -> Self
A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.
This field is required.sourcepub fn set_termination_protected(self, input: Option<bool>) -> Self
pub fn set_termination_protected(self, input: Option<bool>) -> Self
A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.
sourcepub fn get_termination_protected(&self) -> &Option<bool>
pub fn get_termination_protected(&self) -> &Option<bool>
A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.
sourcepub fn build(self) -> Result<SetTerminationProtectionInput, BuildError>
pub fn build(self) -> Result<SetTerminationProtectionInput, BuildError>
Consumes the builder and constructs a SetTerminationProtectionInput.
source§impl SetTerminationProtectionInputBuilder
impl SetTerminationProtectionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SetTerminationProtectionOutput, SdkError<SetTerminationProtectionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SetTerminationProtectionOutput, SdkError<SetTerminationProtectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SetTerminationProtectionInputBuilder
impl Clone for SetTerminationProtectionInputBuilder
source§fn clone(&self) -> SetTerminationProtectionInputBuilder
fn clone(&self) -> SetTerminationProtectionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SetTerminationProtectionInputBuilder
impl Default for SetTerminationProtectionInputBuilder
source§fn default() -> SetTerminationProtectionInputBuilder
fn default() -> SetTerminationProtectionInputBuilder
source§impl PartialEq for SetTerminationProtectionInputBuilder
impl PartialEq for SetTerminationProtectionInputBuilder
source§fn eq(&self, other: &SetTerminationProtectionInputBuilder) -> bool
fn eq(&self, other: &SetTerminationProtectionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.