AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Outpost.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/outposts/model/SupportedHardwareType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Outposts
24{
25namespace Model
26{
27
33 class Outpost
34 {
35 public:
36 AWS_OUTPOSTS_API Outpost() = default;
37 AWS_OUTPOSTS_API Outpost(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OUTPOSTS_API Outpost& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
47 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
48 template<typename OutpostIdT = Aws::String>
49 void SetOutpostId(OutpostIdT&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::forward<OutpostIdT>(value); }
50 template<typename OutpostIdT = Aws::String>
51 Outpost& WithOutpostId(OutpostIdT&& value) { SetOutpostId(std::forward<OutpostIdT>(value)); return *this;}
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) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
60 template<typename OwnerIdT = Aws::String>
61 Outpost& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
63
65
66 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
67 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
68 template<typename OutpostArnT = Aws::String>
69 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::forward<OutpostArnT>(value); }
70 template<typename OutpostArnT = Aws::String>
71 Outpost& WithOutpostArn(OutpostArnT&& value) { SetOutpostArn(std::forward<OutpostArnT>(value)); return *this;}
73
75
76 inline const Aws::String& GetSiteId() const { return m_siteId; }
77 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
78 template<typename SiteIdT = Aws::String>
79 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
80 template<typename SiteIdT = Aws::String>
81 Outpost& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
83
85
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 Outpost& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template<typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
100 template<typename DescriptionT = Aws::String>
101 Outpost& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
103
105
106 inline const Aws::String& GetLifeCycleStatus() const { return m_lifeCycleStatus; }
107 inline bool LifeCycleStatusHasBeenSet() const { return m_lifeCycleStatusHasBeenSet; }
108 template<typename LifeCycleStatusT = Aws::String>
109 void SetLifeCycleStatus(LifeCycleStatusT&& value) { m_lifeCycleStatusHasBeenSet = true; m_lifeCycleStatus = std::forward<LifeCycleStatusT>(value); }
110 template<typename LifeCycleStatusT = Aws::String>
111 Outpost& WithLifeCycleStatus(LifeCycleStatusT&& value) { SetLifeCycleStatus(std::forward<LifeCycleStatusT>(value)); return *this;}
113
115
116 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
117 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
118 template<typename AvailabilityZoneT = Aws::String>
119 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
120 template<typename AvailabilityZoneT = Aws::String>
121 Outpost& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
123
125
126 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
127 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
128 template<typename AvailabilityZoneIdT = Aws::String>
129 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
130 template<typename AvailabilityZoneIdT = Aws::String>
131 Outpost& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
133
135
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
142 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 Outpost& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
144 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 Outpost& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
147 }
149
151
152 inline const Aws::String& GetSiteArn() const { return m_siteArn; }
153 inline bool SiteArnHasBeenSet() const { return m_siteArnHasBeenSet; }
154 template<typename SiteArnT = Aws::String>
155 void SetSiteArn(SiteArnT&& value) { m_siteArnHasBeenSet = true; m_siteArn = std::forward<SiteArnT>(value); }
156 template<typename SiteArnT = Aws::String>
157 Outpost& WithSiteArn(SiteArnT&& value) { SetSiteArn(std::forward<SiteArnT>(value)); return *this;}
159
161
164 inline SupportedHardwareType GetSupportedHardwareType() const { return m_supportedHardwareType; }
165 inline bool SupportedHardwareTypeHasBeenSet() const { return m_supportedHardwareTypeHasBeenSet; }
166 inline void SetSupportedHardwareType(SupportedHardwareType value) { m_supportedHardwareTypeHasBeenSet = true; m_supportedHardwareType = value; }
169 private:
170
171 Aws::String m_outpostId;
172 bool m_outpostIdHasBeenSet = false;
173
174 Aws::String m_ownerId;
175 bool m_ownerIdHasBeenSet = false;
176
177 Aws::String m_outpostArn;
178 bool m_outpostArnHasBeenSet = false;
179
180 Aws::String m_siteId;
181 bool m_siteIdHasBeenSet = false;
182
183 Aws::String m_name;
184 bool m_nameHasBeenSet = false;
185
186 Aws::String m_description;
187 bool m_descriptionHasBeenSet = false;
188
189 Aws::String m_lifeCycleStatus;
190 bool m_lifeCycleStatusHasBeenSet = false;
191
192 Aws::String m_availabilityZone;
193 bool m_availabilityZoneHasBeenSet = false;
194
195 Aws::String m_availabilityZoneId;
196 bool m_availabilityZoneIdHasBeenSet = false;
197
199 bool m_tagsHasBeenSet = false;
200
201 Aws::String m_siteArn;
202 bool m_siteArnHasBeenSet = false;
203
205 bool m_supportedHardwareTypeHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace Outposts
210} // namespace Aws
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Outpost.h:119
bool LifeCycleStatusHasBeenSet() const
Definition Outpost.h:107
Outpost & WithOutpostId(OutpostIdT &&value)
Definition Outpost.h:51
Outpost & WithName(NameT &&value)
Definition Outpost.h:91
bool OutpostArnHasBeenSet() const
Definition Outpost.h:67
void SetOutpostArn(OutpostArnT &&value)
Definition Outpost.h:69
Outpost & WithOutpostArn(OutpostArnT &&value)
Definition Outpost.h:71
AWS_OUTPOSTS_API Outpost(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Outpost.h:138
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:47
const Aws::String & GetLifeCycleStatus() const
Definition Outpost.h:106
const Aws::String & GetDescription() const
Definition Outpost.h:96
void SetDescription(DescriptionT &&value)
Definition Outpost.h:99
bool SiteArnHasBeenSet() const
Definition Outpost.h:153
const Aws::String & GetOutpostId() const
Definition Outpost.h:46
void SetSupportedHardwareType(SupportedHardwareType value)
Definition Outpost.h:166
void SetName(NameT &&value)
Definition Outpost.h:89
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition Outpost.h:129
AWS_OUTPOSTS_API Outpost()=default
void SetLifeCycleStatus(LifeCycleStatusT &&value)
Definition Outpost.h:109
bool OwnerIdHasBeenSet() const
Definition Outpost.h:57
Outpost & WithLifeCycleStatus(LifeCycleStatusT &&value)
Definition Outpost.h:111
Outpost & WithSiteArn(SiteArnT &&value)
Definition Outpost.h:157
Outpost & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Outpost.h:145
const Aws::String & GetOutpostArn() const
Definition Outpost.h:66
Outpost & WithOwnerId(OwnerIdT &&value)
Definition Outpost.h:61
void SetSiteId(SiteIdT &&value)
Definition Outpost.h:79
void SetOwnerId(OwnerIdT &&value)
Definition Outpost.h:59
const Aws::String & GetSiteId() const
Definition Outpost.h:76
const Aws::String & GetOwnerId() const
Definition Outpost.h:56
bool SiteIdHasBeenSet() const
Definition Outpost.h:77
bool AvailabilityZoneHasBeenSet() const
Definition Outpost.h:117
Outpost & WithSiteId(SiteIdT &&value)
Definition Outpost.h:81
void SetTags(TagsT &&value)
Definition Outpost.h:141
bool AvailabilityZoneIdHasBeenSet() const
Definition Outpost.h:127
Outpost & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Outpost.h:121
bool DescriptionHasBeenSet() const
Definition Outpost.h:97
Outpost & WithSupportedHardwareType(SupportedHardwareType value)
Definition Outpost.h:167
bool SupportedHardwareTypeHasBeenSet() const
Definition Outpost.h:165
Outpost & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition Outpost.h:131
Outpost & WithTags(TagsT &&value)
Definition Outpost.h:143
SupportedHardwareType GetSupportedHardwareType() const
Definition Outpost.h:164
const Aws::String & GetAvailabilityZoneId() const
Definition Outpost.h:126
const Aws::String & GetName() const
Definition Outpost.h:86
const Aws::String & GetAvailabilityZone() const
Definition Outpost.h:116
void SetSiteArn(SiteArnT &&value)
Definition Outpost.h:155
void SetOutpostId(OutpostIdT &&value)
Definition Outpost.h:49
bool NameHasBeenSet() const
Definition Outpost.h:87
Outpost & WithDescription(DescriptionT &&value)
Definition Outpost.h:101
const Aws::String & GetSiteArn() const
Definition Outpost.h:152
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