AWS SDK for C++

AWS SDK for C++ Version 1.11.711

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/SupportedHardwareType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Outposts {
22namespace Model {
23
29class Outpost {
30 public:
31 AWS_OUTPOSTS_API Outpost() = default;
32 AWS_OUTPOSTS_API Outpost(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OUTPOSTS_API Outpost& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
41 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
42 template <typename OutpostIdT = Aws::String>
43 void SetOutpostId(OutpostIdT&& value) {
44 m_outpostIdHasBeenSet = true;
45 m_outpostId = std::forward<OutpostIdT>(value);
46 }
47 template <typename OutpostIdT = Aws::String>
48 Outpost& WithOutpostId(OutpostIdT&& value) {
49 SetOutpostId(std::forward<OutpostIdT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
57 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
58 template <typename OwnerIdT = Aws::String>
59 void SetOwnerId(OwnerIdT&& value) {
60 m_ownerIdHasBeenSet = true;
61 m_ownerId = std::forward<OwnerIdT>(value);
62 }
63 template <typename OwnerIdT = Aws::String>
64 Outpost& WithOwnerId(OwnerIdT&& value) {
65 SetOwnerId(std::forward<OwnerIdT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
73 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
74 template <typename OutpostArnT = Aws::String>
75 void SetOutpostArn(OutpostArnT&& value) {
76 m_outpostArnHasBeenSet = true;
77 m_outpostArn = std::forward<OutpostArnT>(value);
78 }
79 template <typename OutpostArnT = Aws::String>
80 Outpost& WithOutpostArn(OutpostArnT&& value) {
81 SetOutpostArn(std::forward<OutpostArnT>(value));
82 return *this;
83 }
85
87
88 inline const Aws::String& GetSiteId() const { return m_siteId; }
89 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
90 template <typename SiteIdT = Aws::String>
91 void SetSiteId(SiteIdT&& value) {
92 m_siteIdHasBeenSet = true;
93 m_siteId = std::forward<SiteIdT>(value);
94 }
95 template <typename SiteIdT = Aws::String>
96 Outpost& WithSiteId(SiteIdT&& value) {
97 SetSiteId(std::forward<SiteIdT>(value));
98 return *this;
99 }
101
103
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template <typename NameT = Aws::String>
107 void SetName(NameT&& value) {
108 m_nameHasBeenSet = true;
109 m_name = std::forward<NameT>(value);
110 }
111 template <typename NameT = Aws::String>
112 Outpost& WithName(NameT&& value) {
113 SetName(std::forward<NameT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetDescription() const { return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
128 Outpost& WithDescription(DescriptionT&& value) {
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
136 inline const Aws::String& GetLifeCycleStatus() const { return m_lifeCycleStatus; }
137 inline bool LifeCycleStatusHasBeenSet() const { return m_lifeCycleStatusHasBeenSet; }
138 template <typename LifeCycleStatusT = Aws::String>
139 void SetLifeCycleStatus(LifeCycleStatusT&& value) {
140 m_lifeCycleStatusHasBeenSet = true;
141 m_lifeCycleStatus = std::forward<LifeCycleStatusT>(value);
142 }
143 template <typename LifeCycleStatusT = Aws::String>
144 Outpost& WithLifeCycleStatus(LifeCycleStatusT&& value) {
145 SetLifeCycleStatus(std::forward<LifeCycleStatusT>(value));
146 return *this;
147 }
149
151
152 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
153 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
154 template <typename AvailabilityZoneT = Aws::String>
155 void SetAvailabilityZone(AvailabilityZoneT&& value) {
156 m_availabilityZoneHasBeenSet = true;
157 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
158 }
159 template <typename AvailabilityZoneT = Aws::String>
160 Outpost& WithAvailabilityZone(AvailabilityZoneT&& value) {
161 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
162 return *this;
163 }
165
167
168 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
169 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
170 template <typename AvailabilityZoneIdT = Aws::String>
171 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
172 m_availabilityZoneIdHasBeenSet = true;
173 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
174 }
175 template <typename AvailabilityZoneIdT = Aws::String>
176 Outpost& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
177 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags = std::forward<TagsT>(value);
192 }
193 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 Outpost& WithTags(TagsT&& value) {
195 SetTags(std::forward<TagsT>(value));
196 return *this;
197 }
198 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 Outpost& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
202 return *this;
203 }
205
207
208 inline const Aws::String& GetSiteArn() const { return m_siteArn; }
209 inline bool SiteArnHasBeenSet() const { return m_siteArnHasBeenSet; }
210 template <typename SiteArnT = Aws::String>
211 void SetSiteArn(SiteArnT&& value) {
212 m_siteArnHasBeenSet = true;
213 m_siteArn = std::forward<SiteArnT>(value);
214 }
215 template <typename SiteArnT = Aws::String>
216 Outpost& WithSiteArn(SiteArnT&& value) {
217 SetSiteArn(std::forward<SiteArnT>(value));
218 return *this;
219 }
221
223
226 inline SupportedHardwareType GetSupportedHardwareType() const { return m_supportedHardwareType; }
227 inline bool SupportedHardwareTypeHasBeenSet() const { return m_supportedHardwareTypeHasBeenSet; }
229 m_supportedHardwareTypeHasBeenSet = true;
230 m_supportedHardwareType = value;
231 }
234 return *this;
235 }
237 private:
238 Aws::String m_outpostId;
239
240 Aws::String m_ownerId;
241
242 Aws::String m_outpostArn;
243
244 Aws::String m_siteId;
245
246 Aws::String m_name;
247
248 Aws::String m_description;
249
250 Aws::String m_lifeCycleStatus;
251
252 Aws::String m_availabilityZone;
253
254 Aws::String m_availabilityZoneId;
255
257
258 Aws::String m_siteArn;
259
261 bool m_outpostIdHasBeenSet = false;
262 bool m_ownerIdHasBeenSet = false;
263 bool m_outpostArnHasBeenSet = false;
264 bool m_siteIdHasBeenSet = false;
265 bool m_nameHasBeenSet = false;
266 bool m_descriptionHasBeenSet = false;
267 bool m_lifeCycleStatusHasBeenSet = false;
268 bool m_availabilityZoneHasBeenSet = false;
269 bool m_availabilityZoneIdHasBeenSet = false;
270 bool m_tagsHasBeenSet = false;
271 bool m_siteArnHasBeenSet = false;
272 bool m_supportedHardwareTypeHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace Outposts
277} // namespace Aws
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Outpost.h:155
bool LifeCycleStatusHasBeenSet() const
Definition Outpost.h:137
Outpost & WithOutpostId(OutpostIdT &&value)
Definition Outpost.h:48
Outpost & WithName(NameT &&value)
Definition Outpost.h:112
bool OutpostArnHasBeenSet() const
Definition Outpost.h:73
void SetOutpostArn(OutpostArnT &&value)
Definition Outpost.h:75
Outpost & WithOutpostArn(OutpostArnT &&value)
Definition Outpost.h:80
AWS_OUTPOSTS_API Outpost(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Outpost.h:186
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:41
const Aws::String & GetLifeCycleStatus() const
Definition Outpost.h:136
const Aws::String & GetDescription() const
Definition Outpost.h:120
void SetDescription(DescriptionT &&value)
Definition Outpost.h:123
bool SiteArnHasBeenSet() const
Definition Outpost.h:209
const Aws::String & GetOutpostId() const
Definition Outpost.h:40
void SetSupportedHardwareType(SupportedHardwareType value)
Definition Outpost.h:228
void SetName(NameT &&value)
Definition Outpost.h:107
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition Outpost.h:171
AWS_OUTPOSTS_API Outpost()=default
void SetLifeCycleStatus(LifeCycleStatusT &&value)
Definition Outpost.h:139
bool OwnerIdHasBeenSet() const
Definition Outpost.h:57
Outpost & WithLifeCycleStatus(LifeCycleStatusT &&value)
Definition Outpost.h:144
Outpost & WithSiteArn(SiteArnT &&value)
Definition Outpost.h:216
Outpost & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Outpost.h:199
const Aws::String & GetOutpostArn() const
Definition Outpost.h:72
Outpost & WithOwnerId(OwnerIdT &&value)
Definition Outpost.h:64
void SetSiteId(SiteIdT &&value)
Definition Outpost.h:91
void SetOwnerId(OwnerIdT &&value)
Definition Outpost.h:59
const Aws::String & GetSiteId() const
Definition Outpost.h:88
const Aws::String & GetOwnerId() const
Definition Outpost.h:56
bool SiteIdHasBeenSet() const
Definition Outpost.h:89
bool AvailabilityZoneHasBeenSet() const
Definition Outpost.h:153
Outpost & WithSiteId(SiteIdT &&value)
Definition Outpost.h:96
void SetTags(TagsT &&value)
Definition Outpost.h:189
bool AvailabilityZoneIdHasBeenSet() const
Definition Outpost.h:169
Outpost & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Outpost.h:160
bool DescriptionHasBeenSet() const
Definition Outpost.h:121
Outpost & WithSupportedHardwareType(SupportedHardwareType value)
Definition Outpost.h:232
bool SupportedHardwareTypeHasBeenSet() const
Definition Outpost.h:227
Outpost & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition Outpost.h:176
Outpost & WithTags(TagsT &&value)
Definition Outpost.h:194
SupportedHardwareType GetSupportedHardwareType() const
Definition Outpost.h:226
const Aws::String & GetAvailabilityZoneId() const
Definition Outpost.h:168
const Aws::String & GetName() const
Definition Outpost.h:104
const Aws::String & GetAvailabilityZone() const
Definition Outpost.h:152
void SetSiteArn(SiteArnT &&value)
Definition Outpost.h:211
void SetOutpostId(OutpostIdT &&value)
Definition Outpost.h:43
Outpost & WithDescription(DescriptionT &&value)
Definition Outpost.h:128
const Aws::String & GetSiteArn() const
Definition Outpost.h:208
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