AWS SDK for C++  1.9.153
AWS SDK for C++
CreateOutpostRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Outposts
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateOutpost"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
36 
37  inline const Aws::String& GetName() const{ return m_name; }
38 
39 
40  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 
42 
43  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 
45 
46  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 
48 
49  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 
51 
52  inline CreateOutpostRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 
54 
55  inline CreateOutpostRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 
57 
58  inline CreateOutpostRequest& WithName(const char* value) { SetName(value); return *this;}
59 
60 
61 
62  inline const Aws::String& GetDescription() const{ return m_description; }
63 
64 
65  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 
67 
68  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
69 
70 
71  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
72 
73 
74  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 
76 
77  inline CreateOutpostRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 
79 
80  inline CreateOutpostRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 
82 
83  inline CreateOutpostRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84 
85 
86 
87  inline const Aws::String& GetSiteId() const{ return m_siteId; }
88 
89 
90  inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
91 
92 
93  inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
94 
95 
96  inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
97 
98 
99  inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
100 
101 
102  inline CreateOutpostRequest& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
103 
104 
105  inline CreateOutpostRequest& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
106 
107 
108  inline CreateOutpostRequest& WithSiteId(const char* value) { SetSiteId(value); return *this;}
109 
110 
111 
112  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
113 
114 
115  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
116 
117 
118  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
119 
120 
121  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
122 
123 
124  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
125 
126 
127  inline CreateOutpostRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
128 
129 
130  inline CreateOutpostRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
131 
132 
133  inline CreateOutpostRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
134 
135 
136 
137  inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
138 
139 
140  inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
141 
142 
143  inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
144 
145 
146  inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
147 
148 
149  inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
150 
151 
152  inline CreateOutpostRequest& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
153 
154 
155  inline CreateOutpostRequest& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
156 
157 
158  inline CreateOutpostRequest& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
159 
160 
164  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
165 
169  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 
174  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
175 
179  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
180 
184  inline CreateOutpostRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
185 
189  inline CreateOutpostRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
190 
194  inline CreateOutpostRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
195 
199  inline CreateOutpostRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
200 
204  inline CreateOutpostRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
205 
209  inline CreateOutpostRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
210 
214  inline CreateOutpostRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
215 
219  inline CreateOutpostRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
220 
224  inline CreateOutpostRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
225 
226  private:
227 
228  Aws::String m_name;
229  bool m_nameHasBeenSet;
230 
231  Aws::String m_description;
232  bool m_descriptionHasBeenSet;
233 
234  Aws::String m_siteId;
235  bool m_siteIdHasBeenSet;
236 
237  Aws::String m_availabilityZone;
238  bool m_availabilityZoneHasBeenSet;
239 
240  Aws::String m_availabilityZoneId;
241  bool m_availabilityZoneIdHasBeenSet;
242 
244  bool m_tagsHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace Outposts
249 } // namespace Aws
Aws::Outposts::Model::CreateOutpostRequest::WithAvailabilityZone
CreateOutpostRequest & WithAvailabilityZone(Aws::String &&value)
Definition: CreateOutpostRequest.h:130
Aws::Outposts::Model::CreateOutpostRequest::AvailabilityZoneIdHasBeenSet
bool AvailabilityZoneIdHasBeenSet() const
Definition: CreateOutpostRequest.h:140
Aws::Outposts::Model::CreateOutpostRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Outposts::Model::CreateOutpostRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateOutpostRequest.h:65
OutpostsRequest.h
Aws::Outposts::Model::CreateOutpostRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateOutpostRequest.h:174
Aws::Outposts::Model::CreateOutpostRequest::WithAvailabilityZone
CreateOutpostRequest & WithAvailabilityZone(const char *value)
Definition: CreateOutpostRequest.h:133
Aws::Outposts::Model::CreateOutpostRequest::WithName
CreateOutpostRequest & WithName(const Aws::String &value)
Definition: CreateOutpostRequest.h:52
Aws::Outposts::Model::CreateOutpostRequest::WithTags
CreateOutpostRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateOutpostRequest.h:184
Aws::Outposts::Model::CreateOutpostRequest::AddTags
CreateOutpostRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateOutpostRequest.h:194
Aws::Outposts::Model::CreateOutpostRequest::WithTags
CreateOutpostRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateOutpostRequest.h:189
Aws::Outposts::Model::CreateOutpostRequest::SiteIdHasBeenSet
bool SiteIdHasBeenSet() const
Definition: CreateOutpostRequest.h:90
Aws::Outposts::Model::CreateOutpostRequest::SetSiteId
void SetSiteId(const char *value)
Definition: CreateOutpostRequest.h:99
Aws::Outposts::Model::CreateOutpostRequest::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: CreateOutpostRequest.h:115
Aws::Outposts::Model::CreateOutpostRequest::WithDescription
CreateOutpostRequest & WithDescription(const Aws::String &value)
Definition: CreateOutpostRequest.h:77
Aws::Outposts::Model::CreateOutpostRequest::SetAvailabilityZoneId
void SetAvailabilityZoneId(const Aws::String &value)
Definition: CreateOutpostRequest.h:143
Aws::Outposts::Model::CreateOutpostRequest::SetSiteId
void SetSiteId(const Aws::String &value)
Definition: CreateOutpostRequest.h:93
Aws::Outposts::Model::CreateOutpostRequest::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: CreateOutpostRequest.h:124
Aws::Outposts::Model::CreateOutpostRequest::AddTags
CreateOutpostRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateOutpostRequest.h:199
Aws::Outposts::Model::CreateOutpostRequest::AddTags
CreateOutpostRequest & AddTags(const char *key, const char *value)
Definition: CreateOutpostRequest.h:224
Aws::Outposts::Model::CreateOutpostRequest::WithAvailabilityZone
CreateOutpostRequest & WithAvailabilityZone(const Aws::String &value)
Definition: CreateOutpostRequest.h:127
Aws::Outposts::Model::CreateOutpostRequest::WithName
CreateOutpostRequest & WithName(const char *value)
Definition: CreateOutpostRequest.h:58
Aws::Outposts::Model::CreateOutpostRequest::SetName
void SetName(const char *value)
Definition: CreateOutpostRequest.h:49
Aws::Outposts::Model::CreateOutpostRequest::WithSiteId
CreateOutpostRequest & WithSiteId(const Aws::String &value)
Definition: CreateOutpostRequest.h:102
Aws::Outposts::Model::CreateOutpostRequest::AddTags
CreateOutpostRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateOutpostRequest.h:214
Aws::Outposts::Model::CreateOutpostRequest::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: CreateOutpostRequest.h:121
Aws::Outposts::Model::CreateOutpostRequest::WithAvailabilityZoneId
CreateOutpostRequest & WithAvailabilityZoneId(Aws::String &&value)
Definition: CreateOutpostRequest.h:155
Aws::Outposts::Model::CreateOutpostRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateOutpostRequest.h:43
Aws::Outposts::Model::CreateOutpostRequest::WithSiteId
CreateOutpostRequest & WithSiteId(Aws::String &&value)
Definition: CreateOutpostRequest.h:105
Aws::Outposts::Model::CreateOutpostRequest::AddTags
CreateOutpostRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateOutpostRequest.h:219
Aws::Outposts::Model::CreateOutpostRequest::WithAvailabilityZoneId
CreateOutpostRequest & WithAvailabilityZoneId(const char *value)
Definition: CreateOutpostRequest.h:158
Aws::Outposts::Model::CreateOutpostRequest::GetSiteId
const Aws::String & GetSiteId() const
Definition: CreateOutpostRequest.h:87
Aws::Outposts::Model::CreateOutpostRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateOutpostRequest.h:40
Aws::Outposts::Model::CreateOutpostRequest::SetAvailabilityZoneId
void SetAvailabilityZoneId(Aws::String &&value)
Definition: CreateOutpostRequest.h:146
Aws::Outposts::Model::CreateOutpostRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateOutpostRequest.h:164
Aws::Outposts::Model::CreateOutpostRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateOutpostRequest.h:68
AWSString.h
Aws::Outposts::Model::CreateOutpostRequest::AddTags
CreateOutpostRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateOutpostRequest.h:209
Aws::Outposts::Model::CreateOutpostRequest::AddTags
CreateOutpostRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateOutpostRequest.h:204
AWS_OUTPOSTS_API
#define AWS_OUTPOSTS_API
Definition: Outposts_EXPORTS.h:28
Aws::Outposts::Model::CreateOutpostRequest::WithName
CreateOutpostRequest & WithName(Aws::String &&value)
Definition: CreateOutpostRequest.h:55
Aws::Outposts::Model::CreateOutpostRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateOutpostRequest.h:31
Aws::Outposts::Model::CreateOutpostRequest::WithDescription
CreateOutpostRequest & WithDescription(const char *value)
Definition: CreateOutpostRequest.h:83
Aws::Outposts::Model::CreateOutpostRequest::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: CreateOutpostRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::Outposts::Model::CreateOutpostRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateOutpostRequest.h:169
Aws::Outposts::Model::CreateOutpostRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateOutpostRequest.h:62
Aws::Outposts::Model::CreateOutpostRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateOutpostRequest.h:46
Aws::Outposts::Model::CreateOutpostRequest::SetSiteId
void SetSiteId(Aws::String &&value)
Definition: CreateOutpostRequest.h:96
Aws::Outposts::Model::CreateOutpostRequest::WithDescription
CreateOutpostRequest & WithDescription(Aws::String &&value)
Definition: CreateOutpostRequest.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Outposts::Model::CreateOutpostRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateOutpostRequest.h:74
Outposts_EXPORTS.h
Aws::Outposts::Model::CreateOutpostRequest::WithAvailabilityZoneId
CreateOutpostRequest & WithAvailabilityZoneId(const Aws::String &value)
Definition: CreateOutpostRequest.h:152
Aws::Outposts::Model::CreateOutpostRequest::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: CreateOutpostRequest.h:118
Aws::Outposts::Model::CreateOutpostRequest::GetName
const Aws::String & GetName() const
Definition: CreateOutpostRequest.h:37
Aws::Outposts::Model::CreateOutpostRequest::WithSiteId
CreateOutpostRequest & WithSiteId(const char *value)
Definition: CreateOutpostRequest.h:108
Aws::Outposts::Model::CreateOutpostRequest::SetAvailabilityZoneId
void SetAvailabilityZoneId(const char *value)
Definition: CreateOutpostRequest.h:149
Aws::Outposts::Model::CreateOutpostRequest::GetAvailabilityZoneId
const Aws::String & GetAvailabilityZoneId() const
Definition: CreateOutpostRequest.h:137
Aws::Outposts::OutpostsRequest
Definition: OutpostsRequest.h:17
AWSMap.h
Aws::Outposts::Model::CreateOutpostRequest::CreateOutpostRequest
CreateOutpostRequest()
Aws::Outposts::Model::CreateOutpostRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateOutpostRequest.h:71
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Outposts::Model::CreateOutpostRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateOutpostRequest.h:179
Aws::Outposts::Model::CreateOutpostRequest
Definition: CreateOutpostRequest.h:23