aws-sdk-sfn 1.97.0

AWS SDK for AWS Step Functions
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteStateMachineInput {
    /// <p>The Amazon Resource Name (ARN) of the state machine to delete.</p>
    pub state_machine_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteStateMachineInput {
    /// <p>The Amazon Resource Name (ARN) of the state machine to delete.</p>
    pub fn state_machine_arn(&self) -> ::std::option::Option<&str> {
        self.state_machine_arn.as_deref()
    }
}
impl DeleteStateMachineInput {
    /// Creates a new builder-style object to manufacture [`DeleteStateMachineInput`](crate::operation::delete_state_machine::DeleteStateMachineInput).
    pub fn builder() -> crate::operation::delete_state_machine::builders::DeleteStateMachineInputBuilder {
        crate::operation::delete_state_machine::builders::DeleteStateMachineInputBuilder::default()
    }
}

/// A builder for [`DeleteStateMachineInput`](crate::operation::delete_state_machine::DeleteStateMachineInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteStateMachineInputBuilder {
    pub(crate) state_machine_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteStateMachineInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the state machine to delete.</p>
    /// This field is required.
    pub fn state_machine_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.state_machine_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the state machine to delete.</p>
    pub fn set_state_machine_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.state_machine_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the state machine to delete.</p>
    pub fn get_state_machine_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.state_machine_arn
    }
    /// Consumes the builder and constructs a [`DeleteStateMachineInput`](crate::operation::delete_state_machine::DeleteStateMachineInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_state_machine::DeleteStateMachineInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_state_machine::DeleteStateMachineInput {
            state_machine_arn: self.state_machine_arn,
        })
    }
}