aws-sdk-appsync 1.111.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 GetDomainNameOutput {
    /// <p>The configuration for the <code>DomainName</code>.</p>
    pub domain_name_config: ::std::option::Option<crate::types::DomainNameConfig>,
    _request_id: Option<String>,
}
impl GetDomainNameOutput {
    /// <p>The configuration for the <code>DomainName</code>.</p>
    pub fn domain_name_config(&self) -> ::std::option::Option<&crate::types::DomainNameConfig> {
        self.domain_name_config.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetDomainNameOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetDomainNameOutput {
    /// Creates a new builder-style object to manufacture [`GetDomainNameOutput`](crate::operation::get_domain_name::GetDomainNameOutput).
    pub fn builder() -> crate::operation::get_domain_name::builders::GetDomainNameOutputBuilder {
        crate::operation::get_domain_name::builders::GetDomainNameOutputBuilder::default()
    }
}

/// A builder for [`GetDomainNameOutput`](crate::operation::get_domain_name::GetDomainNameOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDomainNameOutputBuilder {
    pub(crate) domain_name_config: ::std::option::Option<crate::types::DomainNameConfig>,
    _request_id: Option<String>,
}
impl GetDomainNameOutputBuilder {
    /// <p>The configuration for the <code>DomainName</code>.</p>
    pub fn domain_name_config(mut self, input: crate::types::DomainNameConfig) -> Self {
        self.domain_name_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration for the <code>DomainName</code>.</p>
    pub fn set_domain_name_config(mut self, input: ::std::option::Option<crate::types::DomainNameConfig>) -> Self {
        self.domain_name_config = input;
        self
    }
    /// <p>The configuration for the <code>DomainName</code>.</p>
    pub fn get_domain_name_config(&self) -> &::std::option::Option<crate::types::DomainNameConfig> {
        &self.domain_name_config
    }
    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 [`GetDomainNameOutput`](crate::operation::get_domain_name::GetDomainNameOutput).
    pub fn build(self) -> crate::operation::get_domain_name::GetDomainNameOutput {
        crate::operation::get_domain_name::GetDomainNameOutput {
            domain_name_config: self.domain_name_config,
            _request_id: self._request_id,
        }
    }
}