aws-sdk-datazone 1.137.0

AWS SDK for Amazon DataZone
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)]
pub struct UpdateGlossaryTermInput {
    /// <p>The identifier of the Amazon DataZone domain in which a business glossary term is to be updated.</p>
    pub domain_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the business glossary in which a term is to be updated.</p>
    pub glossary_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the business glossary term that is to be updated.</p>
    pub identifier: ::std::option::Option<::std::string::String>,
    /// <p>The name to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The short description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub short_description: ::std::option::Option<::std::string::String>,
    /// <p>The long description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub long_description: ::std::option::Option<::std::string::String>,
    /// <p>The term relations to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub term_relations: ::std::option::Option<crate::types::TermRelations>,
    /// <p>The status to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub status: ::std::option::Option<crate::types::GlossaryTermStatus>,
}
impl UpdateGlossaryTermInput {
    /// <p>The identifier of the Amazon DataZone domain in which a business glossary term is to be updated.</p>
    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
        self.domain_identifier.as_deref()
    }
    /// <p>The identifier of the business glossary in which a term is to be updated.</p>
    pub fn glossary_identifier(&self) -> ::std::option::Option<&str> {
        self.glossary_identifier.as_deref()
    }
    /// <p>The identifier of the business glossary term that is to be updated.</p>
    pub fn identifier(&self) -> ::std::option::Option<&str> {
        self.identifier.as_deref()
    }
    /// <p>The name to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The short description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn short_description(&self) -> ::std::option::Option<&str> {
        self.short_description.as_deref()
    }
    /// <p>The long description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn long_description(&self) -> ::std::option::Option<&str> {
        self.long_description.as_deref()
    }
    /// <p>The term relations to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn term_relations(&self) -> ::std::option::Option<&crate::types::TermRelations> {
        self.term_relations.as_ref()
    }
    /// <p>The status to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::GlossaryTermStatus> {
        self.status.as_ref()
    }
}
impl ::std::fmt::Debug for UpdateGlossaryTermInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateGlossaryTermInput");
        formatter.field("domain_identifier", &self.domain_identifier);
        formatter.field("glossary_identifier", &self.glossary_identifier);
        formatter.field("identifier", &self.identifier);
        formatter.field("name", &"*** Sensitive Data Redacted ***");
        formatter.field("short_description", &"*** Sensitive Data Redacted ***");
        formatter.field("long_description", &"*** Sensitive Data Redacted ***");
        formatter.field("term_relations", &self.term_relations);
        formatter.field("status", &self.status);
        formatter.finish()
    }
}
impl UpdateGlossaryTermInput {
    /// Creates a new builder-style object to manufacture [`UpdateGlossaryTermInput`](crate::operation::update_glossary_term::UpdateGlossaryTermInput).
    pub fn builder() -> crate::operation::update_glossary_term::builders::UpdateGlossaryTermInputBuilder {
        crate::operation::update_glossary_term::builders::UpdateGlossaryTermInputBuilder::default()
    }
}

/// A builder for [`UpdateGlossaryTermInput`](crate::operation::update_glossary_term::UpdateGlossaryTermInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateGlossaryTermInputBuilder {
    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) glossary_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) identifier: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) short_description: ::std::option::Option<::std::string::String>,
    pub(crate) long_description: ::std::option::Option<::std::string::String>,
    pub(crate) term_relations: ::std::option::Option<crate::types::TermRelations>,
    pub(crate) status: ::std::option::Option<crate::types::GlossaryTermStatus>,
}
impl UpdateGlossaryTermInputBuilder {
    /// <p>The identifier of the Amazon DataZone domain in which a business glossary term is to be updated.</p>
    /// This field is required.
    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the Amazon DataZone domain in which a business glossary term is to be updated.</p>
    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_identifier = input;
        self
    }
    /// <p>The identifier of the Amazon DataZone domain in which a business glossary term is to be updated.</p>
    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_identifier
    }
    /// <p>The identifier of the business glossary in which a term is to be updated.</p>
    pub fn glossary_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.glossary_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the business glossary in which a term is to be updated.</p>
    pub fn set_glossary_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.glossary_identifier = input;
        self
    }
    /// <p>The identifier of the business glossary in which a term is to be updated.</p>
    pub fn get_glossary_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.glossary_identifier
    }
    /// <p>The identifier of the business glossary term that is to be updated.</p>
    /// This field is required.
    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the business glossary term that is to be updated.</p>
    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.identifier = input;
        self
    }
    /// <p>The identifier of the business glossary term that is to be updated.</p>
    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.identifier
    }
    /// <p>The name to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    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 to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The short description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn short_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.short_description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The short description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn set_short_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.short_description = input;
        self
    }
    /// <p>The short description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn get_short_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.short_description
    }
    /// <p>The long description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn long_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.long_description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The long description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn set_long_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.long_description = input;
        self
    }
    /// <p>The long description to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn get_long_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.long_description
    }
    /// <p>The term relations to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn term_relations(mut self, input: crate::types::TermRelations) -> Self {
        self.term_relations = ::std::option::Option::Some(input);
        self
    }
    /// <p>The term relations to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn set_term_relations(mut self, input: ::std::option::Option<crate::types::TermRelations>) -> Self {
        self.term_relations = input;
        self
    }
    /// <p>The term relations to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn get_term_relations(&self) -> &::std::option::Option<crate::types::TermRelations> {
        &self.term_relations
    }
    /// <p>The status to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn status(mut self, input: crate::types::GlossaryTermStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::GlossaryTermStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status to be updated as part of the <code>UpdateGlossaryTerm</code> action.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::GlossaryTermStatus> {
        &self.status
    }
    /// Consumes the builder and constructs a [`UpdateGlossaryTermInput`](crate::operation::update_glossary_term::UpdateGlossaryTermInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_glossary_term::UpdateGlossaryTermInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_glossary_term::UpdateGlossaryTermInput {
            domain_identifier: self.domain_identifier,
            glossary_identifier: self.glossary_identifier,
            identifier: self.identifier,
            name: self.name,
            short_description: self.short_description,
            long_description: self.long_description,
            term_relations: self.term_relations,
            status: self.status,
        })
    }
}
impl ::std::fmt::Debug for UpdateGlossaryTermInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateGlossaryTermInputBuilder");
        formatter.field("domain_identifier", &self.domain_identifier);
        formatter.field("glossary_identifier", &self.glossary_identifier);
        formatter.field("identifier", &self.identifier);
        formatter.field("name", &"*** Sensitive Data Redacted ***");
        formatter.field("short_description", &"*** Sensitive Data Redacted ***");
        formatter.field("long_description", &"*** Sensitive Data Redacted ***");
        formatter.field("term_relations", &self.term_relations);
        formatter.field("status", &self.status);
        formatter.finish()
    }
}