aws-sdk-glue 1.149.0

AWS SDK for AWS Glue
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 BatchGetTriggersInput {
    /// <p>A list of trigger names, which may be the names returned from the <code>ListTriggers</code> operation.</p>
    pub trigger_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl BatchGetTriggersInput {
    /// <p>A list of trigger names, which may be the names returned from the <code>ListTriggers</code> operation.</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 `.trigger_names.is_none()`.
    pub fn trigger_names(&self) -> &[::std::string::String] {
        self.trigger_names.as_deref().unwrap_or_default()
    }
}
impl BatchGetTriggersInput {
    /// Creates a new builder-style object to manufacture [`BatchGetTriggersInput`](crate::operation::batch_get_triggers::BatchGetTriggersInput).
    pub fn builder() -> crate::operation::batch_get_triggers::builders::BatchGetTriggersInputBuilder {
        crate::operation::batch_get_triggers::builders::BatchGetTriggersInputBuilder::default()
    }
}

/// A builder for [`BatchGetTriggersInput`](crate::operation::batch_get_triggers::BatchGetTriggersInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchGetTriggersInputBuilder {
    pub(crate) trigger_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl BatchGetTriggersInputBuilder {
    /// Appends an item to `trigger_names`.
    ///
    /// To override the contents of this collection use [`set_trigger_names`](Self::set_trigger_names).
    ///
    /// <p>A list of trigger names, which may be the names returned from the <code>ListTriggers</code> operation.</p>
    pub fn trigger_names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.trigger_names.unwrap_or_default();
        v.push(input.into());
        self.trigger_names = ::std::option::Option::Some(v);
        self
    }
    /// <p>A list of trigger names, which may be the names returned from the <code>ListTriggers</code> operation.</p>
    pub fn set_trigger_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.trigger_names = input;
        self
    }
    /// <p>A list of trigger names, which may be the names returned from the <code>ListTriggers</code> operation.</p>
    pub fn get_trigger_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.trigger_names
    }
    /// Consumes the builder and constructs a [`BatchGetTriggersInput`](crate::operation::batch_get_triggers::BatchGetTriggersInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::batch_get_triggers::BatchGetTriggersInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::batch_get_triggers::BatchGetTriggersInput {
            trigger_names: self.trigger_names,
        })
    }
}