aws-sdk-imagebuilder 1.110.0

AWS SDK for EC2 Image Builder
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 GetLifecycleExecutionInput {
    /// <p>Use the unique identifier for a runtime instance of the lifecycle policy to get runtime details.</p>
    pub lifecycle_execution_id: ::std::option::Option<::std::string::String>,
}
impl GetLifecycleExecutionInput {
    /// <p>Use the unique identifier for a runtime instance of the lifecycle policy to get runtime details.</p>
    pub fn lifecycle_execution_id(&self) -> ::std::option::Option<&str> {
        self.lifecycle_execution_id.as_deref()
    }
}
impl GetLifecycleExecutionInput {
    /// Creates a new builder-style object to manufacture [`GetLifecycleExecutionInput`](crate::operation::get_lifecycle_execution::GetLifecycleExecutionInput).
    pub fn builder() -> crate::operation::get_lifecycle_execution::builders::GetLifecycleExecutionInputBuilder {
        crate::operation::get_lifecycle_execution::builders::GetLifecycleExecutionInputBuilder::default()
    }
}

/// A builder for [`GetLifecycleExecutionInput`](crate::operation::get_lifecycle_execution::GetLifecycleExecutionInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetLifecycleExecutionInputBuilder {
    pub(crate) lifecycle_execution_id: ::std::option::Option<::std::string::String>,
}
impl GetLifecycleExecutionInputBuilder {
    /// <p>Use the unique identifier for a runtime instance of the lifecycle policy to get runtime details.</p>
    /// This field is required.
    pub fn lifecycle_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.lifecycle_execution_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Use the unique identifier for a runtime instance of the lifecycle policy to get runtime details.</p>
    pub fn set_lifecycle_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.lifecycle_execution_id = input;
        self
    }
    /// <p>Use the unique identifier for a runtime instance of the lifecycle policy to get runtime details.</p>
    pub fn get_lifecycle_execution_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.lifecycle_execution_id
    }
    /// Consumes the builder and constructs a [`GetLifecycleExecutionInput`](crate::operation::get_lifecycle_execution::GetLifecycleExecutionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_lifecycle_execution::GetLifecycleExecutionInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_lifecycle_execution::GetLifecycleExecutionInput {
            lifecycle_execution_id: self.lifecycle_execution_id,
        })
    }
}