aws-sdk-ecs 1.128.0

AWS SDK for Amazon EC2 Container Service
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 DescribeDaemonDeploymentsInput {
    /// <p>The ARN of the daemon deployments to describe. You can specify up to 20 ARNs.</p>
    pub daemon_deployment_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DescribeDaemonDeploymentsInput {
    /// <p>The ARN of the daemon deployments to describe. You can specify up to 20 ARNs.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.daemon_deployment_arns.is_none()`.
    pub fn daemon_deployment_arns(&self) -> &[::std::string::String] {
        self.daemon_deployment_arns.as_deref().unwrap_or_default()
    }
}
impl DescribeDaemonDeploymentsInput {
    /// Creates a new builder-style object to manufacture [`DescribeDaemonDeploymentsInput`](crate::operation::describe_daemon_deployments::DescribeDaemonDeploymentsInput).
    pub fn builder() -> crate::operation::describe_daemon_deployments::builders::DescribeDaemonDeploymentsInputBuilder {
        crate::operation::describe_daemon_deployments::builders::DescribeDaemonDeploymentsInputBuilder::default()
    }
}

/// A builder for [`DescribeDaemonDeploymentsInput`](crate::operation::describe_daemon_deployments::DescribeDaemonDeploymentsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeDaemonDeploymentsInputBuilder {
    pub(crate) daemon_deployment_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DescribeDaemonDeploymentsInputBuilder {
    /// Appends an item to `daemon_deployment_arns`.
    ///
    /// To override the contents of this collection use [`set_daemon_deployment_arns`](Self::set_daemon_deployment_arns).
    ///
    /// <p>The ARN of the daemon deployments to describe. You can specify up to 20 ARNs.</p>
    pub fn daemon_deployment_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.daemon_deployment_arns.unwrap_or_default();
        v.push(input.into());
        self.daemon_deployment_arns = ::std::option::Option::Some(v);
        self
    }
    /// <p>The ARN of the daemon deployments to describe. You can specify up to 20 ARNs.</p>
    pub fn set_daemon_deployment_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.daemon_deployment_arns = input;
        self
    }
    /// <p>The ARN of the daemon deployments to describe. You can specify up to 20 ARNs.</p>
    pub fn get_daemon_deployment_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.daemon_deployment_arns
    }
    /// Consumes the builder and constructs a [`DescribeDaemonDeploymentsInput`](crate::operation::describe_daemon_deployments::DescribeDaemonDeploymentsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_daemon_deployments::DescribeDaemonDeploymentsInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_daemon_deployments::DescribeDaemonDeploymentsInput {
            daemon_deployment_arns: self.daemon_deployment_arns,
        })
    }
}