aws-sdk-deadline 1.100.0

AWS SDK for AWSDeadlineCloud
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 BatchGetTaskInput {
    /// <p>The list of task identifiers to retrieve. You can specify up to 100 identifiers per request.</p>
    pub identifiers: ::std::option::Option<::std::vec::Vec<crate::types::BatchGetTaskIdentifier>>,
}
impl BatchGetTaskInput {
    /// <p>The list of task identifiers to retrieve. You can specify up to 100 identifiers per request.</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 `.identifiers.is_none()`.
    pub fn identifiers(&self) -> &[crate::types::BatchGetTaskIdentifier] {
        self.identifiers.as_deref().unwrap_or_default()
    }
}
impl BatchGetTaskInput {
    /// Creates a new builder-style object to manufacture [`BatchGetTaskInput`](crate::operation::batch_get_task::BatchGetTaskInput).
    pub fn builder() -> crate::operation::batch_get_task::builders::BatchGetTaskInputBuilder {
        crate::operation::batch_get_task::builders::BatchGetTaskInputBuilder::default()
    }
}

/// A builder for [`BatchGetTaskInput`](crate::operation::batch_get_task::BatchGetTaskInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchGetTaskInputBuilder {
    pub(crate) identifiers: ::std::option::Option<::std::vec::Vec<crate::types::BatchGetTaskIdentifier>>,
}
impl BatchGetTaskInputBuilder {
    /// Appends an item to `identifiers`.
    ///
    /// To override the contents of this collection use [`set_identifiers`](Self::set_identifiers).
    ///
    /// <p>The list of task identifiers to retrieve. You can specify up to 100 identifiers per request.</p>
    pub fn identifiers(mut self, input: crate::types::BatchGetTaskIdentifier) -> Self {
        let mut v = self.identifiers.unwrap_or_default();
        v.push(input);
        self.identifiers = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of task identifiers to retrieve. You can specify up to 100 identifiers per request.</p>
    pub fn set_identifiers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BatchGetTaskIdentifier>>) -> Self {
        self.identifiers = input;
        self
    }
    /// <p>The list of task identifiers to retrieve. You can specify up to 100 identifiers per request.</p>
    pub fn get_identifiers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BatchGetTaskIdentifier>> {
        &self.identifiers
    }
    /// Consumes the builder and constructs a [`BatchGetTaskInput`](crate::operation::batch_get_task::BatchGetTaskInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::batch_get_task::BatchGetTaskInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::batch_get_task::BatchGetTaskInput {
            identifiers: self.identifiers,
        })
    }
}