aws_sdk_worklink/operation/associate_domain/
_associate_domain_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 AssociateDomainInput {
6    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
7    pub fleet_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The fully qualified domain name (FQDN).</p>
9    pub domain_name: ::std::option::Option<::std::string::String>,
10    /// <p>The name to display.</p>
11    pub display_name: ::std::option::Option<::std::string::String>,
12    /// <p>The ARN of an issued ACM certificate that is valid for the domain being associated.</p>
13    pub acm_certificate_arn: ::std::option::Option<::std::string::String>,
14}
15impl AssociateDomainInput {
16    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
17    pub fn fleet_arn(&self) -> ::std::option::Option<&str> {
18        self.fleet_arn.as_deref()
19    }
20    /// <p>The fully qualified domain name (FQDN).</p>
21    pub fn domain_name(&self) -> ::std::option::Option<&str> {
22        self.domain_name.as_deref()
23    }
24    /// <p>The name to display.</p>
25    pub fn display_name(&self) -> ::std::option::Option<&str> {
26        self.display_name.as_deref()
27    }
28    /// <p>The ARN of an issued ACM certificate that is valid for the domain being associated.</p>
29    pub fn acm_certificate_arn(&self) -> ::std::option::Option<&str> {
30        self.acm_certificate_arn.as_deref()
31    }
32}
33impl AssociateDomainInput {
34    /// Creates a new builder-style object to manufacture [`AssociateDomainInput`](crate::operation::associate_domain::AssociateDomainInput).
35    pub fn builder() -> crate::operation::associate_domain::builders::AssociateDomainInputBuilder {
36        crate::operation::associate_domain::builders::AssociateDomainInputBuilder::default()
37    }
38}
39
40/// A builder for [`AssociateDomainInput`](crate::operation::associate_domain::AssociateDomainInput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct AssociateDomainInputBuilder {
44    pub(crate) fleet_arn: ::std::option::Option<::std::string::String>,
45    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
46    pub(crate) display_name: ::std::option::Option<::std::string::String>,
47    pub(crate) acm_certificate_arn: ::std::option::Option<::std::string::String>,
48}
49impl AssociateDomainInputBuilder {
50    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
51    /// This field is required.
52    pub fn fleet_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.fleet_arn = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
57    pub fn set_fleet_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.fleet_arn = input;
59        self
60    }
61    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
62    pub fn get_fleet_arn(&self) -> &::std::option::Option<::std::string::String> {
63        &self.fleet_arn
64    }
65    /// <p>The fully qualified domain name (FQDN).</p>
66    /// This field is required.
67    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
68        self.domain_name = ::std::option::Option::Some(input.into());
69        self
70    }
71    /// <p>The fully qualified domain name (FQDN).</p>
72    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
73        self.domain_name = input;
74        self
75    }
76    /// <p>The fully qualified domain name (FQDN).</p>
77    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
78        &self.domain_name
79    }
80    /// <p>The name to display.</p>
81    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82        self.display_name = ::std::option::Option::Some(input.into());
83        self
84    }
85    /// <p>The name to display.</p>
86    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87        self.display_name = input;
88        self
89    }
90    /// <p>The name to display.</p>
91    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
92        &self.display_name
93    }
94    /// <p>The ARN of an issued ACM certificate that is valid for the domain being associated.</p>
95    /// This field is required.
96    pub fn acm_certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
97        self.acm_certificate_arn = ::std::option::Option::Some(input.into());
98        self
99    }
100    /// <p>The ARN of an issued ACM certificate that is valid for the domain being associated.</p>
101    pub fn set_acm_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
102        self.acm_certificate_arn = input;
103        self
104    }
105    /// <p>The ARN of an issued ACM certificate that is valid for the domain being associated.</p>
106    pub fn get_acm_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
107        &self.acm_certificate_arn
108    }
109    /// Consumes the builder and constructs a [`AssociateDomainInput`](crate::operation::associate_domain::AssociateDomainInput).
110    pub fn build(
111        self,
112    ) -> ::std::result::Result<crate::operation::associate_domain::AssociateDomainInput, ::aws_smithy_types::error::operation::BuildError> {
113        ::std::result::Result::Ok(crate::operation::associate_domain::AssociateDomainInput {
114            fleet_arn: self.fleet_arn,
115            domain_name: self.domain_name,
116            display_name: self.display_name,
117            acm_certificate_arn: self.acm_certificate_arn,
118        })
119    }
120}