aws-sdk-appsync 1.109.0

AWS SDK for AWS AppSync
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 GetDomainNameInput {
    /// <p>The domain name.</p>
    pub domain_name: ::std::option::Option<::std::string::String>,
}
impl GetDomainNameInput {
    /// <p>The domain name.</p>
    pub fn domain_name(&self) -> ::std::option::Option<&str> {
        self.domain_name.as_deref()
    }
}
impl GetDomainNameInput {
    /// Creates a new builder-style object to manufacture [`GetDomainNameInput`](crate::operation::get_domain_name::GetDomainNameInput).
    pub fn builder() -> crate::operation::get_domain_name::builders::GetDomainNameInputBuilder {
        crate::operation::get_domain_name::builders::GetDomainNameInputBuilder::default()
    }
}

/// A builder for [`GetDomainNameInput`](crate::operation::get_domain_name::GetDomainNameInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDomainNameInputBuilder {
    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
}
impl GetDomainNameInputBuilder {
    /// <p>The domain name.</p>
    /// This field is required.
    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The domain name.</p>
    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_name = input;
        self
    }
    /// <p>The domain name.</p>
    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_name
    }
    /// Consumes the builder and constructs a [`GetDomainNameInput`](crate::operation::get_domain_name::GetDomainNameInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_domain_name::GetDomainNameInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_domain_name::GetDomainNameInput {
            domain_name: self.domain_name,
        })
    }
}