aws-sdk-ssm 1.112.0

AWS SDK for Amazon Simple Systems Manager (SSM)
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 GetAutomationExecutionInput {
    /// <p>The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation runbook is initiated.</p>
    pub automation_execution_id: ::std::option::Option<::std::string::String>,
}
impl GetAutomationExecutionInput {
    /// <p>The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation runbook is initiated.</p>
    pub fn automation_execution_id(&self) -> ::std::option::Option<&str> {
        self.automation_execution_id.as_deref()
    }
}
impl GetAutomationExecutionInput {
    /// Creates a new builder-style object to manufacture [`GetAutomationExecutionInput`](crate::operation::get_automation_execution::GetAutomationExecutionInput).
    pub fn builder() -> crate::operation::get_automation_execution::builders::GetAutomationExecutionInputBuilder {
        crate::operation::get_automation_execution::builders::GetAutomationExecutionInputBuilder::default()
    }
}

/// A builder for [`GetAutomationExecutionInput`](crate::operation::get_automation_execution::GetAutomationExecutionInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAutomationExecutionInputBuilder {
    pub(crate) automation_execution_id: ::std::option::Option<::std::string::String>,
}
impl GetAutomationExecutionInputBuilder {
    /// <p>The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation runbook is initiated.</p>
    /// This field is required.
    pub fn automation_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.automation_execution_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation runbook is initiated.</p>
    pub fn set_automation_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.automation_execution_id = input;
        self
    }
    /// <p>The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation runbook is initiated.</p>
    pub fn get_automation_execution_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.automation_execution_id
    }
    /// Consumes the builder and constructs a [`GetAutomationExecutionInput`](crate::operation::get_automation_execution::GetAutomationExecutionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::get_automation_execution::GetAutomationExecutionInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::get_automation_execution::GetAutomationExecutionInput {
            automation_execution_id: self.automation_execution_id,
        })
    }
}