aws-sdk-cloudfront 1.115.0

AWS SDK for Amazon CloudFront
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 VerifyDnsConfigurationInput {
    /// <p>The domain name that you're verifying.</p>
    pub domain: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
    pub identifier: ::std::option::Option<::std::string::String>,
}
impl VerifyDnsConfigurationInput {
    /// <p>The domain name that you're verifying.</p>
    pub fn domain(&self) -> ::std::option::Option<&str> {
        self.domain.as_deref()
    }
    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
    pub fn identifier(&self) -> ::std::option::Option<&str> {
        self.identifier.as_deref()
    }
}
impl VerifyDnsConfigurationInput {
    /// Creates a new builder-style object to manufacture [`VerifyDnsConfigurationInput`](crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput).
    pub fn builder() -> crate::operation::verify_dns_configuration::builders::VerifyDnsConfigurationInputBuilder {
        crate::operation::verify_dns_configuration::builders::VerifyDnsConfigurationInputBuilder::default()
    }
}

/// A builder for [`VerifyDnsConfigurationInput`](crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct VerifyDnsConfigurationInputBuilder {
    pub(crate) domain: ::std::option::Option<::std::string::String>,
    pub(crate) identifier: ::std::option::Option<::std::string::String>,
}
impl VerifyDnsConfigurationInputBuilder {
    /// <p>The domain name that you're verifying.</p>
    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The domain name that you're verifying.</p>
    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain = input;
        self
    }
    /// <p>The domain name that you're verifying.</p>
    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain
    }
    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</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 distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.identifier = input;
        self
    }
    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.identifier
    }
    /// Consumes the builder and constructs a [`VerifyDnsConfigurationInput`](crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput {
            domain: self.domain,
            identifier: self.identifier,
        })
    }
}