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
// 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)]
pub struct GetMapSpritesInput {
/// <p>The map resource associated with the sprite file.</p>
#[doc(hidden)]
pub map_name: std::option::Option<std::string::String>,
/// <p>The name of the sprite file. Use the following file names for the sprite sheet:</p>
/// <ul>
/// <li> <p> <code>sprites.png</code> </p> </li>
/// <li> <p> <code>sprites@2x.png</code> for high pixel density displays</p> </li>
/// </ul>
/// <p>For the JSON document containing image offsets. Use the following file names:</p>
/// <ul>
/// <li> <p> <code>sprites.json</code> </p> </li>
/// <li> <p> <code>sprites@2x.json</code> for high pixel density displays</p> </li>
/// </ul>
#[doc(hidden)]
pub file_name: std::option::Option<std::string::String>,
/// <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize the request.</p>
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
}
impl GetMapSpritesInput {
/// <p>The map resource associated with the sprite file.</p>
pub fn map_name(&self) -> std::option::Option<&str> {
self.map_name.as_deref()
}
/// <p>The name of the sprite file. Use the following file names for the sprite sheet:</p>
/// <ul>
/// <li> <p> <code>sprites.png</code> </p> </li>
/// <li> <p> <code>sprites@2x.png</code> for high pixel density displays</p> </li>
/// </ul>
/// <p>For the JSON document containing image offsets. Use the following file names:</p>
/// <ul>
/// <li> <p> <code>sprites.json</code> </p> </li>
/// <li> <p> <code>sprites@2x.json</code> for high pixel density displays</p> </li>
/// </ul>
pub fn file_name(&self) -> std::option::Option<&str> {
self.file_name.as_deref()
}
/// <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize the request.</p>
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
}
impl std::fmt::Debug for GetMapSpritesInput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetMapSpritesInput");
formatter.field("map_name", &self.map_name);
formatter.field("file_name", &self.file_name);
formatter.field("key", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl GetMapSpritesInput {
/// Creates a new builder-style object to manufacture [`GetMapSpritesInput`](crate::operation::get_map_sprites::GetMapSpritesInput).
pub fn builder() -> crate::operation::get_map_sprites::builders::GetMapSpritesInputBuilder {
crate::operation::get_map_sprites::builders::GetMapSpritesInputBuilder::default()
}
}
/// A builder for [`GetMapSpritesInput`](crate::operation::get_map_sprites::GetMapSpritesInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct GetMapSpritesInputBuilder {
pub(crate) map_name: std::option::Option<std::string::String>,
pub(crate) file_name: std::option::Option<std::string::String>,
pub(crate) key: std::option::Option<std::string::String>,
}
impl GetMapSpritesInputBuilder {
/// <p>The map resource associated with the sprite file.</p>
pub fn map_name(mut self, input: impl Into<std::string::String>) -> Self {
self.map_name = Some(input.into());
self
}
/// <p>The map resource associated with the sprite file.</p>
pub fn set_map_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.map_name = input;
self
}
/// <p>The name of the sprite file. Use the following file names for the sprite sheet:</p>
/// <ul>
/// <li> <p> <code>sprites.png</code> </p> </li>
/// <li> <p> <code>sprites@2x.png</code> for high pixel density displays</p> </li>
/// </ul>
/// <p>For the JSON document containing image offsets. Use the following file names:</p>
/// <ul>
/// <li> <p> <code>sprites.json</code> </p> </li>
/// <li> <p> <code>sprites@2x.json</code> for high pixel density displays</p> </li>
/// </ul>
pub fn file_name(mut self, input: impl Into<std::string::String>) -> Self {
self.file_name = Some(input.into());
self
}
/// <p>The name of the sprite file. Use the following file names for the sprite sheet:</p>
/// <ul>
/// <li> <p> <code>sprites.png</code> </p> </li>
/// <li> <p> <code>sprites@2x.png</code> for high pixel density displays</p> </li>
/// </ul>
/// <p>For the JSON document containing image offsets. Use the following file names:</p>
/// <ul>
/// <li> <p> <code>sprites.json</code> </p> </li>
/// <li> <p> <code>sprites@2x.json</code> for high pixel density displays</p> </li>
/// </ul>
pub fn set_file_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.file_name = input;
self
}
/// <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize the request.</p>
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
/// <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize the request.</p>
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
/// Consumes the builder and constructs a [`GetMapSpritesInput`](crate::operation::get_map_sprites::GetMapSpritesInput).
pub fn build(
self,
) -> Result<
crate::operation::get_map_sprites::GetMapSpritesInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_map_sprites::GetMapSpritesInput {
map_name: self.map_name,
file_name: self.file_name,
key: self.key,
})
}
}
impl std::fmt::Debug for GetMapSpritesInputBuilder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetMapSpritesInputBuilder");
formatter.field("map_name", &self.map_name);
formatter.field("file_name", &self.file_name);
formatter.field("key", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}