aws-sdk-opsworks 0.27.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>
    #[doc(hidden)]
    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>
    pub fn stack_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.stack_id = 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
    }
    /// Consumes the builder and constructs a [`StartStackInput`](crate::operation::start_stack::StartStackInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::start_stack::StartStackInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::start_stack::StartStackInput {
            stack_id: self.stack_id,
        })
    }
}