1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>A request for information about whether a specified geographic location is supported for Amazon Route 53 geolocation resource record sets.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetGeoLocationInput {
/// <p>For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:</p>
/// <ul>
/// <li>
/// <p><b>AF</b>: Africa</p></li>
/// <li>
/// <p><b>AN</b>: Antarctica</p></li>
/// <li>
/// <p><b>AS</b>: Asia</p></li>
/// <li>
/// <p><b>EU</b>: Europe</p></li>
/// <li>
/// <p><b>OC</b>: Oceania</p></li>
/// <li>
/// <p><b>NA</b>: North America</p></li>
/// <li>
/// <p><b>SA</b>: South America</p></li>
/// </ul>
pub continent_code: ::std::option::Option<::std::string::String>,
/// <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1 alpha-2</a>.</p>
/// <p>Route 53 also supports the country code <b>UA</b> for Ukraine.</p>
pub country_code: ::std::option::Option<::std::string::String>,
/// <p>The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see <a href="https://pe.usps.com/text/pub28/28apb.htm">Appendix B: Two–Letter State and Possession Abbreviations</a> on the United States Postal Service website. For a list of all supported subdivision codes, use the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html">ListGeoLocations</a> API.</p>
pub subdivision_code: ::std::option::Option<::std::string::String>,
}
impl GetGeoLocationInput {
/// <p>For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:</p>
/// <ul>
/// <li>
/// <p><b>AF</b>: Africa</p></li>
/// <li>
/// <p><b>AN</b>: Antarctica</p></li>
/// <li>
/// <p><b>AS</b>: Asia</p></li>
/// <li>
/// <p><b>EU</b>: Europe</p></li>
/// <li>
/// <p><b>OC</b>: Oceania</p></li>
/// <li>
/// <p><b>NA</b>: North America</p></li>
/// <li>
/// <p><b>SA</b>: South America</p></li>
/// </ul>
pub fn continent_code(&self) -> ::std::option::Option<&str> {
self.continent_code.as_deref()
}
/// <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1 alpha-2</a>.</p>
/// <p>Route 53 also supports the country code <b>UA</b> for Ukraine.</p>
pub fn country_code(&self) -> ::std::option::Option<&str> {
self.country_code.as_deref()
}
/// <p>The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see <a href="https://pe.usps.com/text/pub28/28apb.htm">Appendix B: Two–Letter State and Possession Abbreviations</a> on the United States Postal Service website. For a list of all supported subdivision codes, use the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html">ListGeoLocations</a> API.</p>
pub fn subdivision_code(&self) -> ::std::option::Option<&str> {
self.subdivision_code.as_deref()
}
}
impl GetGeoLocationInput {
/// Creates a new builder-style object to manufacture [`GetGeoLocationInput`](crate::operation::get_geo_location::GetGeoLocationInput).
pub fn builder() -> crate::operation::get_geo_location::builders::GetGeoLocationInputBuilder {
crate::operation::get_geo_location::builders::GetGeoLocationInputBuilder::default()
}
}
/// A builder for [`GetGeoLocationInput`](crate::operation::get_geo_location::GetGeoLocationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetGeoLocationInputBuilder {
pub(crate) continent_code: ::std::option::Option<::std::string::String>,
pub(crate) country_code: ::std::option::Option<::std::string::String>,
pub(crate) subdivision_code: ::std::option::Option<::std::string::String>,
}
impl GetGeoLocationInputBuilder {
/// <p>For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:</p>
/// <ul>
/// <li>
/// <p><b>AF</b>: Africa</p></li>
/// <li>
/// <p><b>AN</b>: Antarctica</p></li>
/// <li>
/// <p><b>AS</b>: Asia</p></li>
/// <li>
/// <p><b>EU</b>: Europe</p></li>
/// <li>
/// <p><b>OC</b>: Oceania</p></li>
/// <li>
/// <p><b>NA</b>: North America</p></li>
/// <li>
/// <p><b>SA</b>: South America</p></li>
/// </ul>
pub fn continent_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.continent_code = ::std::option::Option::Some(input.into());
self
}
/// <p>For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:</p>
/// <ul>
/// <li>
/// <p><b>AF</b>: Africa</p></li>
/// <li>
/// <p><b>AN</b>: Antarctica</p></li>
/// <li>
/// <p><b>AS</b>: Asia</p></li>
/// <li>
/// <p><b>EU</b>: Europe</p></li>
/// <li>
/// <p><b>OC</b>: Oceania</p></li>
/// <li>
/// <p><b>NA</b>: North America</p></li>
/// <li>
/// <p><b>SA</b>: South America</p></li>
/// </ul>
pub fn set_continent_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.continent_code = input;
self
}
/// <p>For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:</p>
/// <ul>
/// <li>
/// <p><b>AF</b>: Africa</p></li>
/// <li>
/// <p><b>AN</b>: Antarctica</p></li>
/// <li>
/// <p><b>AS</b>: Asia</p></li>
/// <li>
/// <p><b>EU</b>: Europe</p></li>
/// <li>
/// <p><b>OC</b>: Oceania</p></li>
/// <li>
/// <p><b>NA</b>: North America</p></li>
/// <li>
/// <p><b>SA</b>: South America</p></li>
/// </ul>
pub fn get_continent_code(&self) -> &::std::option::Option<::std::string::String> {
&self.continent_code
}
/// <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1 alpha-2</a>.</p>
/// <p>Route 53 also supports the country code <b>UA</b> for Ukraine.</p>
pub fn country_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.country_code = ::std::option::Option::Some(input.into());
self
}
/// <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1 alpha-2</a>.</p>
/// <p>Route 53 also supports the country code <b>UA</b> for Ukraine.</p>
pub fn set_country_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.country_code = input;
self
}
/// <p>Amazon Route 53 uses the two-letter country codes that are specified in <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1 alpha-2</a>.</p>
/// <p>Route 53 also supports the country code <b>UA</b> for Ukraine.</p>
pub fn get_country_code(&self) -> &::std::option::Option<::std::string::String> {
&self.country_code
}
/// <p>The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see <a href="https://pe.usps.com/text/pub28/28apb.htm">Appendix B: Two–Letter State and Possession Abbreviations</a> on the United States Postal Service website. For a list of all supported subdivision codes, use the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html">ListGeoLocations</a> API.</p>
pub fn subdivision_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.subdivision_code = ::std::option::Option::Some(input.into());
self
}
/// <p>The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see <a href="https://pe.usps.com/text/pub28/28apb.htm">Appendix B: Two–Letter State and Possession Abbreviations</a> on the United States Postal Service website. For a list of all supported subdivision codes, use the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html">ListGeoLocations</a> API.</p>
pub fn set_subdivision_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.subdivision_code = input;
self
}
/// <p>The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see <a href="https://pe.usps.com/text/pub28/28apb.htm">Appendix B: Two–Letter State and Possession Abbreviations</a> on the United States Postal Service website. For a list of all supported subdivision codes, use the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html">ListGeoLocations</a> API.</p>
pub fn get_subdivision_code(&self) -> &::std::option::Option<::std::string::String> {
&self.subdivision_code
}
/// Consumes the builder and constructs a [`GetGeoLocationInput`](crate::operation::get_geo_location::GetGeoLocationInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_geo_location::GetGeoLocationInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_geo_location::GetGeoLocationInput {
continent_code: self.continent_code,
country_code: self.country_code,
subdivision_code: self.subdivision_code,
})
}
}