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 UpdateBlueprintInput {
    /// <p>The name of the blueprint.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>A description of the blueprint.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>Specifies a path in Amazon S3 where the blueprint is published.</p>
    pub blueprint_location: ::std::option::Option<::std::string::String>,
}
impl UpdateBlueprintInput {
    /// <p>The name of the blueprint.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>A description of the blueprint.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>Specifies a path in Amazon S3 where the blueprint is published.</p>
    pub fn blueprint_location(&self) -> ::std::option::Option<&str> {
        self.blueprint_location.as_deref()
    }
}
impl UpdateBlueprintInput {
    /// Creates a new builder-style object to manufacture [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
    pub fn builder() -> crate::operation::update_blueprint::builders::UpdateBlueprintInputBuilder {
        crate::operation::update_blueprint::builders::UpdateBlueprintInputBuilder::default()
    }
}

/// A builder for [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateBlueprintInputBuilder {
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) blueprint_location: ::std::option::Option<::std::string::String>,
}
impl UpdateBlueprintInputBuilder {
    /// <p>The name of the blueprint.</p>
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the blueprint.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the blueprint.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>A description of the blueprint.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description of the blueprint.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A description of the blueprint.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>Specifies a path in Amazon S3 where the blueprint is published.</p>
    /// This field is required.
    pub fn blueprint_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.blueprint_location = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies a path in Amazon S3 where the blueprint is published.</p>
    pub fn set_blueprint_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.blueprint_location = input;
        self
    }
    /// <p>Specifies a path in Amazon S3 where the blueprint is published.</p>
    pub fn get_blueprint_location(&self) -> &::std::option::Option<::std::string::String> {
        &self.blueprint_location
    }
    /// Consumes the builder and constructs a [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_blueprint::UpdateBlueprintInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_blueprint::UpdateBlueprintInput {
            name: self.name,
            description: self.description,
            blueprint_location: self.blueprint_location,
        })
    }
}