aws-sdk-glue 1.163.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 GetGlossaryTermOutput {
    /// <p>The unique identifier of the glossary term.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the glossary containing this term.</p>
    pub glossary_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the glossary term.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The short description of the glossary term.</p>
    pub short_description: ::std::option::Option<::std::string::String>,
    /// <p>The long description of the glossary term.</p>
    pub long_description: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetGlossaryTermOutput {
    /// <p>The unique identifier of the glossary term.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The unique identifier of the glossary containing this term.</p>
    pub fn glossary_id(&self) -> ::std::option::Option<&str> {
        self.glossary_id.as_deref()
    }
    /// <p>The name of the glossary term.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The short description of the glossary term.</p>
    pub fn short_description(&self) -> ::std::option::Option<&str> {
        self.short_description.as_deref()
    }
    /// <p>The long description of the glossary term.</p>
    pub fn long_description(&self) -> ::std::option::Option<&str> {
        self.long_description.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for GetGlossaryTermOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetGlossaryTermOutput {
    /// Creates a new builder-style object to manufacture [`GetGlossaryTermOutput`](crate::operation::get_glossary_term::GetGlossaryTermOutput).
    pub fn builder() -> crate::operation::get_glossary_term::builders::GetGlossaryTermOutputBuilder {
        crate::operation::get_glossary_term::builders::GetGlossaryTermOutputBuilder::default()
    }
}

/// A builder for [`GetGlossaryTermOutput`](crate::operation::get_glossary_term::GetGlossaryTermOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetGlossaryTermOutputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) glossary_id: ::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>,
    _request_id: Option<String>,
}
impl GetGlossaryTermOutputBuilder {
    /// <p>The unique identifier of the glossary term.</p>
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the glossary term.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The unique identifier of the glossary term.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The unique identifier of the glossary containing this term.</p>
    pub fn glossary_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.glossary_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the glossary containing this term.</p>
    pub fn set_glossary_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.glossary_id = input;
        self
    }
    /// <p>The unique identifier of the glossary containing this term.</p>
    pub fn get_glossary_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.glossary_id
    }
    /// <p>The name of the glossary term.</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 of the glossary term.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the glossary term.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The short description of the glossary term.</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 of the glossary term.</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 of the glossary term.</p>
    pub fn get_short_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.short_description
    }
    /// <p>The long description of the glossary term.</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 of the glossary term.</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 of the glossary term.</p>
    pub fn get_long_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.long_description
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetGlossaryTermOutput`](crate::operation::get_glossary_term::GetGlossaryTermOutput).
    pub fn build(self) -> crate::operation::get_glossary_term::GetGlossaryTermOutput {
        crate::operation::get_glossary_term::GetGlossaryTermOutput {
            id: self.id,
            glossary_id: self.glossary_id,
            name: self.name,
            short_description: self.short_description,
            long_description: self.long_description,
            _request_id: self._request_id,
        }
    }
}