aws_sdk_sagemakergeospatial/operation/get_tile/
_get_tile_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetTileInput {
6 pub x: ::std::option::Option<i32>,
8 pub y: ::std::option::Option<i32>,
10 pub z: ::std::option::Option<i32>,
12 pub image_assets: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
14 pub target: ::std::option::Option<crate::types::TargetOptions>,
16 pub arn: ::std::option::Option<::std::string::String>,
18 pub image_mask: ::std::option::Option<bool>,
20 pub output_format: ::std::option::Option<::std::string::String>,
22 pub time_range_filter: ::std::option::Option<::std::string::String>,
24 pub property_filters: ::std::option::Option<::std::string::String>,
26 pub output_data_type: ::std::option::Option<crate::types::OutputType>,
28 pub execution_role_arn: ::std::option::Option<::std::string::String>,
30}
31impl GetTileInput {
32 pub fn x(&self) -> ::std::option::Option<i32> {
34 self.x
35 }
36 pub fn y(&self) -> ::std::option::Option<i32> {
38 self.y
39 }
40 pub fn z(&self) -> ::std::option::Option<i32> {
42 self.z
43 }
44 pub fn image_assets(&self) -> &[::std::string::String] {
48 self.image_assets.as_deref().unwrap_or_default()
49 }
50 pub fn target(&self) -> ::std::option::Option<&crate::types::TargetOptions> {
52 self.target.as_ref()
53 }
54 pub fn arn(&self) -> ::std::option::Option<&str> {
56 self.arn.as_deref()
57 }
58 pub fn image_mask(&self) -> ::std::option::Option<bool> {
60 self.image_mask
61 }
62 pub fn output_format(&self) -> ::std::option::Option<&str> {
64 self.output_format.as_deref()
65 }
66 pub fn time_range_filter(&self) -> ::std::option::Option<&str> {
68 self.time_range_filter.as_deref()
69 }
70 pub fn property_filters(&self) -> ::std::option::Option<&str> {
72 self.property_filters.as_deref()
73 }
74 pub fn output_data_type(&self) -> ::std::option::Option<&crate::types::OutputType> {
76 self.output_data_type.as_ref()
77 }
78 pub fn execution_role_arn(&self) -> ::std::option::Option<&str> {
80 self.execution_role_arn.as_deref()
81 }
82}
83impl GetTileInput {
84 pub fn builder() -> crate::operation::get_tile::builders::GetTileInputBuilder {
86 crate::operation::get_tile::builders::GetTileInputBuilder::default()
87 }
88}
89
90#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
92#[non_exhaustive]
93pub struct GetTileInputBuilder {
94 pub(crate) x: ::std::option::Option<i32>,
95 pub(crate) y: ::std::option::Option<i32>,
96 pub(crate) z: ::std::option::Option<i32>,
97 pub(crate) image_assets: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
98 pub(crate) target: ::std::option::Option<crate::types::TargetOptions>,
99 pub(crate) arn: ::std::option::Option<::std::string::String>,
100 pub(crate) image_mask: ::std::option::Option<bool>,
101 pub(crate) output_format: ::std::option::Option<::std::string::String>,
102 pub(crate) time_range_filter: ::std::option::Option<::std::string::String>,
103 pub(crate) property_filters: ::std::option::Option<::std::string::String>,
104 pub(crate) output_data_type: ::std::option::Option<crate::types::OutputType>,
105 pub(crate) execution_role_arn: ::std::option::Option<::std::string::String>,
106}
107impl GetTileInputBuilder {
108 pub fn x(mut self, input: i32) -> Self {
111 self.x = ::std::option::Option::Some(input);
112 self
113 }
114 pub fn set_x(mut self, input: ::std::option::Option<i32>) -> Self {
116 self.x = input;
117 self
118 }
119 pub fn get_x(&self) -> &::std::option::Option<i32> {
121 &self.x
122 }
123 pub fn y(mut self, input: i32) -> Self {
126 self.y = ::std::option::Option::Some(input);
127 self
128 }
129 pub fn set_y(mut self, input: ::std::option::Option<i32>) -> Self {
131 self.y = input;
132 self
133 }
134 pub fn get_y(&self) -> &::std::option::Option<i32> {
136 &self.y
137 }
138 pub fn z(mut self, input: i32) -> Self {
141 self.z = ::std::option::Option::Some(input);
142 self
143 }
144 pub fn set_z(mut self, input: ::std::option::Option<i32>) -> Self {
146 self.z = input;
147 self
148 }
149 pub fn get_z(&self) -> &::std::option::Option<i32> {
151 &self.z
152 }
153 pub fn image_assets(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
159 let mut v = self.image_assets.unwrap_or_default();
160 v.push(input.into());
161 self.image_assets = ::std::option::Option::Some(v);
162 self
163 }
164 pub fn set_image_assets(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
166 self.image_assets = input;
167 self
168 }
169 pub fn get_image_assets(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
171 &self.image_assets
172 }
173 pub fn target(mut self, input: crate::types::TargetOptions) -> Self {
176 self.target = ::std::option::Option::Some(input);
177 self
178 }
179 pub fn set_target(mut self, input: ::std::option::Option<crate::types::TargetOptions>) -> Self {
181 self.target = input;
182 self
183 }
184 pub fn get_target(&self) -> &::std::option::Option<crate::types::TargetOptions> {
186 &self.target
187 }
188 pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
191 self.arn = ::std::option::Option::Some(input.into());
192 self
193 }
194 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
196 self.arn = input;
197 self
198 }
199 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
201 &self.arn
202 }
203 pub fn image_mask(mut self, input: bool) -> Self {
205 self.image_mask = ::std::option::Option::Some(input);
206 self
207 }
208 pub fn set_image_mask(mut self, input: ::std::option::Option<bool>) -> Self {
210 self.image_mask = input;
211 self
212 }
213 pub fn get_image_mask(&self) -> &::std::option::Option<bool> {
215 &self.image_mask
216 }
217 pub fn output_format(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
219 self.output_format = ::std::option::Option::Some(input.into());
220 self
221 }
222 pub fn set_output_format(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
224 self.output_format = input;
225 self
226 }
227 pub fn get_output_format(&self) -> &::std::option::Option<::std::string::String> {
229 &self.output_format
230 }
231 pub fn time_range_filter(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
233 self.time_range_filter = ::std::option::Option::Some(input.into());
234 self
235 }
236 pub fn set_time_range_filter(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
238 self.time_range_filter = input;
239 self
240 }
241 pub fn get_time_range_filter(&self) -> &::std::option::Option<::std::string::String> {
243 &self.time_range_filter
244 }
245 pub fn property_filters(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
247 self.property_filters = ::std::option::Option::Some(input.into());
248 self
249 }
250 pub fn set_property_filters(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
252 self.property_filters = input;
253 self
254 }
255 pub fn get_property_filters(&self) -> &::std::option::Option<::std::string::String> {
257 &self.property_filters
258 }
259 pub fn output_data_type(mut self, input: crate::types::OutputType) -> Self {
261 self.output_data_type = ::std::option::Option::Some(input);
262 self
263 }
264 pub fn set_output_data_type(mut self, input: ::std::option::Option<crate::types::OutputType>) -> Self {
266 self.output_data_type = input;
267 self
268 }
269 pub fn get_output_data_type(&self) -> &::std::option::Option<crate::types::OutputType> {
271 &self.output_data_type
272 }
273 pub fn execution_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
275 self.execution_role_arn = ::std::option::Option::Some(input.into());
276 self
277 }
278 pub fn set_execution_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
280 self.execution_role_arn = input;
281 self
282 }
283 pub fn get_execution_role_arn(&self) -> &::std::option::Option<::std::string::String> {
285 &self.execution_role_arn
286 }
287 pub fn build(self) -> ::std::result::Result<crate::operation::get_tile::GetTileInput, ::aws_smithy_types::error::operation::BuildError> {
289 ::std::result::Result::Ok(crate::operation::get_tile::GetTileInput {
290 x: self.x,
291 y: self.y,
292 z: self.z,
293 image_assets: self.image_assets,
294 target: self.target,
295 arn: self.arn,
296 image_mask: self.image_mask,
297 output_format: self.output_format,
298 time_range_filter: self.time_range_filter,
299 property_filters: self.property_filters,
300 output_data_type: self.output_data_type,
301 execution_role_arn: self.execution_role_arn,
302 })
303 }
304}