AWS SDK for C++

AWS SDK for C++ Version 1.11.895

Loading...
Searching...
No Matches
Outpost.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/Outposts_EXPORTS.h>
10#include <aws/outposts/model/OutpostGeneration.h>
11#include <aws/outposts/model/RackScalingType.h>
12#include <aws/outposts/model/SupportedHardwareType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Outposts {
24namespace Model {
25
31class Outpost {
32 public:
33 AWS_OUTPOSTS_API Outpost() = default;
34 AWS_OUTPOSTS_API Outpost(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OUTPOSTS_API Outpost& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
43 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
44 template <typename OutpostIdT = Aws::String>
45 void SetOutpostId(OutpostIdT&& value) {
46 m_outpostIdHasBeenSet = true;
47 m_outpostId = std::forward<OutpostIdT>(value);
48 }
49 template <typename OutpostIdT = Aws::String>
50 Outpost& WithOutpostId(OutpostIdT&& value) {
51 SetOutpostId(std::forward<OutpostIdT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
59 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
60 template <typename OwnerIdT = Aws::String>
61 void SetOwnerId(OwnerIdT&& value) {
62 m_ownerIdHasBeenSet = true;
63 m_ownerId = std::forward<OwnerIdT>(value);
64 }
65 template <typename OwnerIdT = Aws::String>
66 Outpost& WithOwnerId(OwnerIdT&& value) {
67 SetOwnerId(std::forward<OwnerIdT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
75 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
76 template <typename OutpostArnT = Aws::String>
77 void SetOutpostArn(OutpostArnT&& value) {
78 m_outpostArnHasBeenSet = true;
79 m_outpostArn = std::forward<OutpostArnT>(value);
80 }
81 template <typename OutpostArnT = Aws::String>
82 Outpost& WithOutpostArn(OutpostArnT&& value) {
83 SetOutpostArn(std::forward<OutpostArnT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetSiteId() const { return m_siteId; }
91 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
92 template <typename SiteIdT = Aws::String>
93 void SetSiteId(SiteIdT&& value) {
94 m_siteIdHasBeenSet = true;
95 m_siteId = std::forward<SiteIdT>(value);
96 }
97 template <typename SiteIdT = Aws::String>
98 Outpost& WithSiteId(SiteIdT&& value) {
99 SetSiteId(std::forward<SiteIdT>(value));
100 return *this;
101 }
103
105
106 inline const Aws::String& GetName() const { return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 template <typename NameT = Aws::String>
109 void SetName(NameT&& value) {
110 m_nameHasBeenSet = true;
111 m_name = std::forward<NameT>(value);
112 }
113 template <typename NameT = Aws::String>
114 Outpost& WithName(NameT&& value) {
115 SetName(std::forward<NameT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::String& GetDescription() const { return m_description; }
123 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
124 template <typename DescriptionT = Aws::String>
125 void SetDescription(DescriptionT&& value) {
126 m_descriptionHasBeenSet = true;
127 m_description = std::forward<DescriptionT>(value);
128 }
129 template <typename DescriptionT = Aws::String>
130 Outpost& WithDescription(DescriptionT&& value) {
131 SetDescription(std::forward<DescriptionT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetLifeCycleStatus() const { return m_lifeCycleStatus; }
139 inline bool LifeCycleStatusHasBeenSet() const { return m_lifeCycleStatusHasBeenSet; }
140 template <typename LifeCycleStatusT = Aws::String>
141 void SetLifeCycleStatus(LifeCycleStatusT&& value) {
142 m_lifeCycleStatusHasBeenSet = true;
143 m_lifeCycleStatus = std::forward<LifeCycleStatusT>(value);
144 }
145 template <typename LifeCycleStatusT = Aws::String>
146 Outpost& WithLifeCycleStatus(LifeCycleStatusT&& value) {
147 SetLifeCycleStatus(std::forward<LifeCycleStatusT>(value));
148 return *this;
149 }
151
153
154 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
155 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
156 template <typename AvailabilityZoneT = Aws::String>
157 void SetAvailabilityZone(AvailabilityZoneT&& value) {
158 m_availabilityZoneHasBeenSet = true;
159 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
160 }
161 template <typename AvailabilityZoneT = Aws::String>
162 Outpost& WithAvailabilityZone(AvailabilityZoneT&& value) {
163 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
164 return *this;
165 }
167
169
170 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
171 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
172 template <typename AvailabilityZoneIdT = Aws::String>
173 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
174 m_availabilityZoneIdHasBeenSet = true;
175 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
176 }
177 template <typename AvailabilityZoneIdT = Aws::String>
178 Outpost& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
179 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 void SetTags(TagsT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags = std::forward<TagsT>(value);
194 }
195 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 Outpost& WithTags(TagsT&& value) {
197 SetTags(std::forward<TagsT>(value));
198 return *this;
199 }
200 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
201 Outpost& AddTags(TagsKeyT&& key, TagsValueT&& value) {
202 m_tagsHasBeenSet = true;
203 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
204 return *this;
205 }
207
209
210 inline const Aws::String& GetSiteArn() const { return m_siteArn; }
211 inline bool SiteArnHasBeenSet() const { return m_siteArnHasBeenSet; }
212 template <typename SiteArnT = Aws::String>
213 void SetSiteArn(SiteArnT&& value) {
214 m_siteArnHasBeenSet = true;
215 m_siteArn = std::forward<SiteArnT>(value);
216 }
217 template <typename SiteArnT = Aws::String>
218 Outpost& WithSiteArn(SiteArnT&& value) {
219 SetSiteArn(std::forward<SiteArnT>(value));
220 return *this;
221 }
223
225
228 inline SupportedHardwareType GetSupportedHardwareType() const { return m_supportedHardwareType; }
229 inline bool SupportedHardwareTypeHasBeenSet() const { return m_supportedHardwareTypeHasBeenSet; }
231 m_supportedHardwareTypeHasBeenSet = true;
232 m_supportedHardwareType = value;
233 }
236 return *this;
237 }
239
241
246 inline OutpostGeneration GetGeneration() const { return m_generation; }
247 inline bool GenerationHasBeenSet() const { return m_generationHasBeenSet; }
248 inline void SetGeneration(OutpostGeneration value) {
249 m_generationHasBeenSet = true;
250 m_generation = value;
251 }
253 SetGeneration(value);
254 return *this;
255 }
257
259
264 inline RackScalingType GetRackScalingType() const { return m_rackScalingType; }
265 inline bool RackScalingTypeHasBeenSet() const { return m_rackScalingTypeHasBeenSet; }
267 m_rackScalingTypeHasBeenSet = true;
268 m_rackScalingType = value;
269 }
271 SetRackScalingType(value);
272 return *this;
273 }
275 private:
276 Aws::String m_outpostId;
277
278 Aws::String m_ownerId;
279
280 Aws::String m_outpostArn;
281
282 Aws::String m_siteId;
283
284 Aws::String m_name;
285
286 Aws::String m_description;
287
288 Aws::String m_lifeCycleStatus;
289
290 Aws::String m_availabilityZone;
291
292 Aws::String m_availabilityZoneId;
293
295
296 Aws::String m_siteArn;
297
299
301
302 RackScalingType m_rackScalingType{RackScalingType::NOT_SET};
303 bool m_outpostIdHasBeenSet = false;
304 bool m_ownerIdHasBeenSet = false;
305 bool m_outpostArnHasBeenSet = false;
306 bool m_siteIdHasBeenSet = false;
307 bool m_nameHasBeenSet = false;
308 bool m_descriptionHasBeenSet = false;
309 bool m_lifeCycleStatusHasBeenSet = false;
310 bool m_availabilityZoneHasBeenSet = false;
311 bool m_availabilityZoneIdHasBeenSet = false;
312 bool m_tagsHasBeenSet = false;
313 bool m_siteArnHasBeenSet = false;
314 bool m_supportedHardwareTypeHasBeenSet = false;
315 bool m_generationHasBeenSet = false;
316 bool m_rackScalingTypeHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace Outposts
321} // namespace Aws
OutpostGeneration GetGeneration() const
Definition Outpost.h:246
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Outpost.h:157
bool LifeCycleStatusHasBeenSet() const
Definition Outpost.h:139
Outpost & WithOutpostId(OutpostIdT &&value)
Definition Outpost.h:50
Outpost & WithName(NameT &&value)
Definition Outpost.h:114
bool OutpostArnHasBeenSet() const
Definition Outpost.h:75
void SetOutpostArn(OutpostArnT &&value)
Definition Outpost.h:77
Outpost & WithOutpostArn(OutpostArnT &&value)
Definition Outpost.h:82
AWS_OUTPOSTS_API Outpost(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Outpost.h:188
void SetGeneration(OutpostGeneration value)
Definition Outpost.h:248
AWS_OUTPOSTS_API Outpost & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
bool OutpostIdHasBeenSet() const
Definition Outpost.h:43
const Aws::String & GetLifeCycleStatus() const
Definition Outpost.h:138
const Aws::String & GetDescription() const
Definition Outpost.h:122
void SetDescription(DescriptionT &&value)
Definition Outpost.h:125
bool RackScalingTypeHasBeenSet() const
Definition Outpost.h:265
bool SiteArnHasBeenSet() const
Definition Outpost.h:211
Outpost & WithRackScalingType(RackScalingType value)
Definition Outpost.h:270
const Aws::String & GetOutpostId() const
Definition Outpost.h:42
void SetSupportedHardwareType(SupportedHardwareType value)
Definition Outpost.h:230
void SetName(NameT &&value)
Definition Outpost.h:109
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition Outpost.h:173
AWS_OUTPOSTS_API Outpost()=default
void SetLifeCycleStatus(LifeCycleStatusT &&value)
Definition Outpost.h:141
bool OwnerIdHasBeenSet() const
Definition Outpost.h:59
Outpost & WithLifeCycleStatus(LifeCycleStatusT &&value)
Definition Outpost.h:146
Outpost & WithGeneration(OutpostGeneration value)
Definition Outpost.h:252
bool GenerationHasBeenSet() const
Definition Outpost.h:247
Outpost & WithSiteArn(SiteArnT &&value)
Definition Outpost.h:218
Outpost & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Outpost.h:201
const Aws::String & GetOutpostArn() const
Definition Outpost.h:74
Outpost & WithOwnerId(OwnerIdT &&value)
Definition Outpost.h:66
void SetSiteId(SiteIdT &&value)
Definition Outpost.h:93
void SetOwnerId(OwnerIdT &&value)
Definition Outpost.h:61
const Aws::String & GetSiteId() const
Definition Outpost.h:90
const Aws::String & GetOwnerId() const
Definition Outpost.h:58
bool SiteIdHasBeenSet() const
Definition Outpost.h:91
bool AvailabilityZoneHasBeenSet() const
Definition Outpost.h:155
Outpost & WithSiteId(SiteIdT &&value)
Definition Outpost.h:98
void SetTags(TagsT &&value)
Definition Outpost.h:191
bool AvailabilityZoneIdHasBeenSet() const
Definition Outpost.h:171
RackScalingType GetRackScalingType() const
Definition Outpost.h:264
Outpost & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Outpost.h:162
bool DescriptionHasBeenSet() const
Definition Outpost.h:123
Outpost & WithSupportedHardwareType(SupportedHardwareType value)
Definition Outpost.h:234
bool SupportedHardwareTypeHasBeenSet() const
Definition Outpost.h:229
Outpost & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition Outpost.h:178
Outpost & WithTags(TagsT &&value)
Definition Outpost.h:196
SupportedHardwareType GetSupportedHardwareType() const
Definition Outpost.h:228
const Aws::String & GetAvailabilityZoneId() const
Definition Outpost.h:170
const Aws::String & GetName() const
Definition Outpost.h:106
const Aws::String & GetAvailabilityZone() const
Definition Outpost.h:154
void SetSiteArn(SiteArnT &&value)
Definition Outpost.h:213
void SetOutpostId(OutpostIdT &&value)
Definition Outpost.h:45
void SetRackScalingType(RackScalingType value)
Definition Outpost.h:266
Outpost & WithDescription(DescriptionT &&value)
Definition Outpost.h:130
const Aws::String & GetSiteArn() const
Definition Outpost.h:210
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue