aws-sdk-outposts 1.106.0

AWS SDK for AWS Outposts
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 GetCapacityTaskInput {
    /// <p>ID of the capacity task.</p>
    pub capacity_task_id: ::std::option::Option<::std::string::String>,
    /// <p>ID or ARN of the Outpost associated with the specified capacity task.</p>
    pub outpost_identifier: ::std::option::Option<::std::string::String>,
}
impl GetCapacityTaskInput {
    /// <p>ID of the capacity task.</p>
    pub fn capacity_task_id(&self) -> ::std::option::Option<&str> {
        self.capacity_task_id.as_deref()
    }
    /// <p>ID or ARN of the Outpost associated with the specified capacity task.</p>
    pub fn outpost_identifier(&self) -> ::std::option::Option<&str> {
        self.outpost_identifier.as_deref()
    }
}
impl GetCapacityTaskInput {
    /// Creates a new builder-style object to manufacture [`GetCapacityTaskInput`](crate::operation::get_capacity_task::GetCapacityTaskInput).
    pub fn builder() -> crate::operation::get_capacity_task::builders::GetCapacityTaskInputBuilder {
        crate::operation::get_capacity_task::builders::GetCapacityTaskInputBuilder::default()
    }
}

/// A builder for [`GetCapacityTaskInput`](crate::operation::get_capacity_task::GetCapacityTaskInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCapacityTaskInputBuilder {
    pub(crate) capacity_task_id: ::std::option::Option<::std::string::String>,
    pub(crate) outpost_identifier: ::std::option::Option<::std::string::String>,
}
impl GetCapacityTaskInputBuilder {
    /// <p>ID of the capacity task.</p>
    /// This field is required.
    pub fn capacity_task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.capacity_task_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>ID of the capacity task.</p>
    pub fn set_capacity_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.capacity_task_id = input;
        self
    }
    /// <p>ID of the capacity task.</p>
    pub fn get_capacity_task_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.capacity_task_id
    }
    /// <p>ID or ARN of the Outpost associated with the specified capacity task.</p>
    /// This field is required.
    pub fn outpost_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.outpost_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>ID or ARN of the Outpost associated with the specified capacity task.</p>
    pub fn set_outpost_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.outpost_identifier = input;
        self
    }
    /// <p>ID or ARN of the Outpost associated with the specified capacity task.</p>
    pub fn get_outpost_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.outpost_identifier
    }
    /// Consumes the builder and constructs a [`GetCapacityTaskInput`](crate::operation::get_capacity_task::GetCapacityTaskInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_capacity_task::GetCapacityTaskInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_capacity_task::GetCapacityTaskInput {
            capacity_task_id: self.capacity_task_id,
            outpost_identifier: self.outpost_identifier,
        })
    }
}