aws-sdk-lambda 1.119.0

AWS SDK for AWS Lambda
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 GetDurableExecutionInput {
    /// <p>The Amazon Resource Name (ARN) of the durable execution.</p>
    pub durable_execution_arn: ::std::option::Option<::std::string::String>,
}
impl GetDurableExecutionInput {
    /// <p>The Amazon Resource Name (ARN) of the durable execution.</p>
    pub fn durable_execution_arn(&self) -> ::std::option::Option<&str> {
        self.durable_execution_arn.as_deref()
    }
}
impl GetDurableExecutionInput {
    /// Creates a new builder-style object to manufacture [`GetDurableExecutionInput`](crate::operation::get_durable_execution::GetDurableExecutionInput).
    pub fn builder() -> crate::operation::get_durable_execution::builders::GetDurableExecutionInputBuilder {
        crate::operation::get_durable_execution::builders::GetDurableExecutionInputBuilder::default()
    }
}

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