aws_sdk_cloudfront/operation/verify_dns_configuration/
_verify_dns_configuration_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct VerifyDnsConfigurationInput {
6    /// <p>The domain name that you're verifying.</p>
7    pub domain: ::std::option::Option<::std::string::String>,
8    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
9    pub identifier: ::std::option::Option<::std::string::String>,
10}
11impl VerifyDnsConfigurationInput {
12    /// <p>The domain name that you're verifying.</p>
13    pub fn domain(&self) -> ::std::option::Option<&str> {
14        self.domain.as_deref()
15    }
16    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
17    pub fn identifier(&self) -> ::std::option::Option<&str> {
18        self.identifier.as_deref()
19    }
20}
21impl VerifyDnsConfigurationInput {
22    /// Creates a new builder-style object to manufacture [`VerifyDnsConfigurationInput`](crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput).
23    pub fn builder() -> crate::operation::verify_dns_configuration::builders::VerifyDnsConfigurationInputBuilder {
24        crate::operation::verify_dns_configuration::builders::VerifyDnsConfigurationInputBuilder::default()
25    }
26}
27
28/// A builder for [`VerifyDnsConfigurationInput`](crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct VerifyDnsConfigurationInputBuilder {
32    pub(crate) domain: ::std::option::Option<::std::string::String>,
33    pub(crate) identifier: ::std::option::Option<::std::string::String>,
34}
35impl VerifyDnsConfigurationInputBuilder {
36    /// <p>The domain name that you're verifying.</p>
37    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
38        self.domain = ::std::option::Option::Some(input.into());
39        self
40    }
41    /// <p>The domain name that you're verifying.</p>
42    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
43        self.domain = input;
44        self
45    }
46    /// <p>The domain name that you're verifying.</p>
47    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
48        &self.domain
49    }
50    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
51    /// This field is required.
52    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.identifier = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
57    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.identifier = input;
59        self
60    }
61    /// <p>The identifier of the distribution tenant. You can specify the ARN, ID, or name of the distribution tenant.</p>
62    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
63        &self.identifier
64    }
65    /// Consumes the builder and constructs a [`VerifyDnsConfigurationInput`](crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput).
66    pub fn build(
67        self,
68    ) -> ::std::result::Result<
69        crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput,
70        ::aws_smithy_types::error::operation::BuildError,
71    > {
72        ::std::result::Result::Ok(crate::operation::verify_dns_configuration::VerifyDnsConfigurationInput {
73            domain: self.domain,
74            identifier: self.identifier,
75        })
76    }
77}