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 BatchGetBlueprintsInput {
    /// <p>A list of blueprint names.</p>
    pub names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Specifies whether or not to include the blueprint in the response.</p>
    pub include_blueprint: ::std::option::Option<bool>,
    /// <p>Specifies whether or not to include the parameters, as a JSON string, for the blueprint in the response.</p>
    pub include_parameter_spec: ::std::option::Option<bool>,
}
impl BatchGetBlueprintsInput {
    /// <p>A list of blueprint names.</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 `.names.is_none()`.
    pub fn names(&self) -> &[::std::string::String] {
        self.names.as_deref().unwrap_or_default()
    }
    /// <p>Specifies whether or not to include the blueprint in the response.</p>
    pub fn include_blueprint(&self) -> ::std::option::Option<bool> {
        self.include_blueprint
    }
    /// <p>Specifies whether or not to include the parameters, as a JSON string, for the blueprint in the response.</p>
    pub fn include_parameter_spec(&self) -> ::std::option::Option<bool> {
        self.include_parameter_spec
    }
}
impl BatchGetBlueprintsInput {
    /// Creates a new builder-style object to manufacture [`BatchGetBlueprintsInput`](crate::operation::batch_get_blueprints::BatchGetBlueprintsInput).
    pub fn builder() -> crate::operation::batch_get_blueprints::builders::BatchGetBlueprintsInputBuilder {
        crate::operation::batch_get_blueprints::builders::BatchGetBlueprintsInputBuilder::default()
    }
}

/// A builder for [`BatchGetBlueprintsInput`](crate::operation::batch_get_blueprints::BatchGetBlueprintsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchGetBlueprintsInputBuilder {
    pub(crate) names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) include_blueprint: ::std::option::Option<bool>,
    pub(crate) include_parameter_spec: ::std::option::Option<bool>,
}
impl BatchGetBlueprintsInputBuilder {
    /// Appends an item to `names`.
    ///
    /// To override the contents of this collection use [`set_names`](Self::set_names).
    ///
    /// <p>A list of blueprint names.</p>
    pub fn names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.names.unwrap_or_default();
        v.push(input.into());
        self.names = ::std::option::Option::Some(v);
        self
    }
    /// <p>A list of blueprint names.</p>
    pub fn set_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.names = input;
        self
    }
    /// <p>A list of blueprint names.</p>
    pub fn get_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.names
    }
    /// <p>Specifies whether or not to include the blueprint in the response.</p>
    pub fn include_blueprint(mut self, input: bool) -> Self {
        self.include_blueprint = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether or not to include the blueprint in the response.</p>
    pub fn set_include_blueprint(mut self, input: ::std::option::Option<bool>) -> Self {
        self.include_blueprint = input;
        self
    }
    /// <p>Specifies whether or not to include the blueprint in the response.</p>
    pub fn get_include_blueprint(&self) -> &::std::option::Option<bool> {
        &self.include_blueprint
    }
    /// <p>Specifies whether or not to include the parameters, as a JSON string, for the blueprint in the response.</p>
    pub fn include_parameter_spec(mut self, input: bool) -> Self {
        self.include_parameter_spec = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether or not to include the parameters, as a JSON string, for the blueprint in the response.</p>
    pub fn set_include_parameter_spec(mut self, input: ::std::option::Option<bool>) -> Self {
        self.include_parameter_spec = input;
        self
    }
    /// <p>Specifies whether or not to include the parameters, as a JSON string, for the blueprint in the response.</p>
    pub fn get_include_parameter_spec(&self) -> &::std::option::Option<bool> {
        &self.include_parameter_spec
    }
    /// Consumes the builder and constructs a [`BatchGetBlueprintsInput`](crate::operation::batch_get_blueprints::BatchGetBlueprintsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::batch_get_blueprints::BatchGetBlueprintsInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::batch_get_blueprints::BatchGetBlueprintsInput {
            names: self.names,
            include_blueprint: self.include_blueprint,
            include_parameter_spec: self.include_parameter_spec,
        })
    }
}