aws-sdk-opsworks 1.17.0

AWS SDK for AWS OpsWorks
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 StartStackInput {
    /// <p>The stack ID.</p>
    pub stack_id: ::std::option::Option<::std::string::String>,
}
impl StartStackInput {
    /// <p>The stack ID.</p>
    pub fn stack_id(&self) -> ::std::option::Option<&str> {
        self.stack_id.as_deref()
    }
}
impl StartStackInput {
    /// Creates a new builder-style object to manufacture [`StartStackInput`](crate::operation::start_stack::StartStackInput).
    pub fn builder() -> crate::operation::start_stack::builders::StartStackInputBuilder {
        crate::operation::start_stack::builders::StartStackInputBuilder::default()
    }
}

/// A builder for [`StartStackInput`](crate::operation::start_stack::StartStackInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StartStackInputBuilder {
    pub(crate) stack_id: ::std::option::Option<::std::string::String>,
}
impl StartStackInputBuilder {
    /// <p>The stack ID.</p>
    /// This field is required.
    pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stack_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The stack ID.</p>
    pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stack_id = input;
        self
    }
    /// <p>The stack ID.</p>
    pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.stack_id
    }
    /// Consumes the builder and constructs a [`StartStackInput`](crate::operation::start_stack::StartStackInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::start_stack::StartStackInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::start_stack::StartStackInput { stack_id: self.stack_id })
    }
}