AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Site.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/RackPhysicalProperties.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 Site
34 {
35 public:
36 AWS_OUTPOSTS_API Site();
37 AWS_OUTPOSTS_API Site(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OUTPOSTS_API Site& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetSiteId() const{ return m_siteId; }
45 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
46 inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
47 inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
48 inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
49 inline Site& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
50 inline Site& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
51 inline Site& WithSiteId(const char* value) { SetSiteId(value); return *this;}
53
55
56 inline const Aws::String& GetAccountId() const{ return m_accountId; }
57 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
58 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
59 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
60 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
61 inline Site& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
62 inline Site& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
63 inline Site& WithAccountId(const char* value) { SetAccountId(value); return *this;}
65
67
68 inline const Aws::String& GetName() const{ return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
71 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 inline Site& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline Site& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline Site& WithName(const char* value) { SetName(value); return *this;}
77
79
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline Site& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline Site& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline Site& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
98 inline Site& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
99 inline Site& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
100 inline Site& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
101 inline Site& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
102 inline Site& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
103 inline Site& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
104 inline Site& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
105 inline Site& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
106 inline Site& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
108
110
111 inline const Aws::String& GetSiteArn() const{ return m_siteArn; }
112 inline bool SiteArnHasBeenSet() const { return m_siteArnHasBeenSet; }
113 inline void SetSiteArn(const Aws::String& value) { m_siteArnHasBeenSet = true; m_siteArn = value; }
114 inline void SetSiteArn(Aws::String&& value) { m_siteArnHasBeenSet = true; m_siteArn = std::move(value); }
115 inline void SetSiteArn(const char* value) { m_siteArnHasBeenSet = true; m_siteArn.assign(value); }
116 inline Site& WithSiteArn(const Aws::String& value) { SetSiteArn(value); return *this;}
117 inline Site& WithSiteArn(Aws::String&& value) { SetSiteArn(std::move(value)); return *this;}
118 inline Site& WithSiteArn(const char* value) { SetSiteArn(value); return *this;}
120
122
125 inline const Aws::String& GetNotes() const{ return m_notes; }
126 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
127 inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
128 inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
129 inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
130 inline Site& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
131 inline Site& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
132 inline Site& WithNotes(const char* value) { SetNotes(value); return *this;}
134
136
140 inline const Aws::String& GetOperatingAddressCountryCode() const{ return m_operatingAddressCountryCode; }
141 inline bool OperatingAddressCountryCodeHasBeenSet() const { return m_operatingAddressCountryCodeHasBeenSet; }
142 inline void SetOperatingAddressCountryCode(const Aws::String& value) { m_operatingAddressCountryCodeHasBeenSet = true; m_operatingAddressCountryCode = value; }
143 inline void SetOperatingAddressCountryCode(Aws::String&& value) { m_operatingAddressCountryCodeHasBeenSet = true; m_operatingAddressCountryCode = std::move(value); }
144 inline void SetOperatingAddressCountryCode(const char* value) { m_operatingAddressCountryCodeHasBeenSet = true; m_operatingAddressCountryCode.assign(value); }
146 inline Site& WithOperatingAddressCountryCode(Aws::String&& value) { SetOperatingAddressCountryCode(std::move(value)); return *this;}
147 inline Site& WithOperatingAddressCountryCode(const char* value) { SetOperatingAddressCountryCode(value); return *this;}
149
151
154 inline const Aws::String& GetOperatingAddressStateOrRegion() const{ return m_operatingAddressStateOrRegion; }
155 inline bool OperatingAddressStateOrRegionHasBeenSet() const { return m_operatingAddressStateOrRegionHasBeenSet; }
156 inline void SetOperatingAddressStateOrRegion(const Aws::String& value) { m_operatingAddressStateOrRegionHasBeenSet = true; m_operatingAddressStateOrRegion = value; }
157 inline void SetOperatingAddressStateOrRegion(Aws::String&& value) { m_operatingAddressStateOrRegionHasBeenSet = true; m_operatingAddressStateOrRegion = std::move(value); }
158 inline void SetOperatingAddressStateOrRegion(const char* value) { m_operatingAddressStateOrRegionHasBeenSet = true; m_operatingAddressStateOrRegion.assign(value); }
160 inline Site& WithOperatingAddressStateOrRegion(Aws::String&& value) { SetOperatingAddressStateOrRegion(std::move(value)); return *this;}
161 inline Site& WithOperatingAddressStateOrRegion(const char* value) { SetOperatingAddressStateOrRegion(value); return *this;}
163
165
168 inline const Aws::String& GetOperatingAddressCity() const{ return m_operatingAddressCity; }
169 inline bool OperatingAddressCityHasBeenSet() const { return m_operatingAddressCityHasBeenSet; }
170 inline void SetOperatingAddressCity(const Aws::String& value) { m_operatingAddressCityHasBeenSet = true; m_operatingAddressCity = value; }
171 inline void SetOperatingAddressCity(Aws::String&& value) { m_operatingAddressCityHasBeenSet = true; m_operatingAddressCity = std::move(value); }
172 inline void SetOperatingAddressCity(const char* value) { m_operatingAddressCityHasBeenSet = true; m_operatingAddressCity.assign(value); }
173 inline Site& WithOperatingAddressCity(const Aws::String& value) { SetOperatingAddressCity(value); return *this;}
174 inline Site& WithOperatingAddressCity(Aws::String&& value) { SetOperatingAddressCity(std::move(value)); return *this;}
175 inline Site& WithOperatingAddressCity(const char* value) { SetOperatingAddressCity(value); return *this;}
177
179
183 inline const RackPhysicalProperties& GetRackPhysicalProperties() const{ return m_rackPhysicalProperties; }
184 inline bool RackPhysicalPropertiesHasBeenSet() const { return m_rackPhysicalPropertiesHasBeenSet; }
185 inline void SetRackPhysicalProperties(const RackPhysicalProperties& value) { m_rackPhysicalPropertiesHasBeenSet = true; m_rackPhysicalProperties = value; }
186 inline void SetRackPhysicalProperties(RackPhysicalProperties&& value) { m_rackPhysicalPropertiesHasBeenSet = true; m_rackPhysicalProperties = std::move(value); }
188 inline Site& WithRackPhysicalProperties(RackPhysicalProperties&& value) { SetRackPhysicalProperties(std::move(value)); return *this;}
190 private:
191
192 Aws::String m_siteId;
193 bool m_siteIdHasBeenSet = false;
194
195 Aws::String m_accountId;
196 bool m_accountIdHasBeenSet = false;
197
198 Aws::String m_name;
199 bool m_nameHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
205 bool m_tagsHasBeenSet = false;
206
207 Aws::String m_siteArn;
208 bool m_siteArnHasBeenSet = false;
209
210 Aws::String m_notes;
211 bool m_notesHasBeenSet = false;
212
213 Aws::String m_operatingAddressCountryCode;
214 bool m_operatingAddressCountryCodeHasBeenSet = false;
215
216 Aws::String m_operatingAddressStateOrRegion;
217 bool m_operatingAddressStateOrRegionHasBeenSet = false;
218
219 Aws::String m_operatingAddressCity;
220 bool m_operatingAddressCityHasBeenSet = false;
221
222 RackPhysicalProperties m_rackPhysicalProperties;
223 bool m_rackPhysicalPropertiesHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace Outposts
228} // namespace Aws
Site & AddTags(const Aws::String &key, Aws::String &&value)
Definition Site.h:102
Site & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Site.h:99
Site & WithName(const char *value)
Definition Site.h:75
AWS_OUTPOSTS_API Site & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SiteIdHasBeenSet() const
Definition Site.h:45
bool SiteArnHasBeenSet() const
Definition Site.h:112
void SetAccountId(const char *value)
Definition Site.h:60
Site & WithName(Aws::String &&value)
Definition Site.h:74
bool RackPhysicalPropertiesHasBeenSet() const
Definition Site.h:184
Site & AddTags(const char *key, const char *value)
Definition Site.h:106
const Aws::String & GetSiteArn() const
Definition Site.h:111
Site & WithAccountId(Aws::String &&value)
Definition Site.h:62
bool OperatingAddressCityHasBeenSet() const
Definition Site.h:169
Site & WithDescription(const char *value)
Definition Site.h:87
Site & WithOperatingAddressCity(Aws::String &&value)
Definition Site.h:174
Site & WithName(const Aws::String &value)
Definition Site.h:73
void SetAccountId(const Aws::String &value)
Definition Site.h:58
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOperatingAddressCountryCode(Aws::String &&value)
Definition Site.h:143
Site & WithRackPhysicalProperties(const RackPhysicalProperties &value)
Definition Site.h:187
Site & WithOperatingAddressCountryCode(const Aws::String &value)
Definition Site.h:145
Site & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Site.h:98
Site & AddTags(const char *key, Aws::String &&value)
Definition Site.h:104
const Aws::String & GetOperatingAddressStateOrRegion() const
Definition Site.h:154
void SetDescription(Aws::String &&value)
Definition Site.h:83
void SetOperatingAddressCity(Aws::String &&value)
Definition Site.h:171
Site & AddTags(Aws::String &&key, Aws::String &&value)
Definition Site.h:103
void SetOperatingAddressCountryCode(const char *value)
Definition Site.h:144
const RackPhysicalProperties & GetRackPhysicalProperties() const
Definition Site.h:183
Site & WithSiteId(Aws::String &&value)
Definition Site.h:50
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Site.h:96
void SetName(const char *value)
Definition Site.h:72
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Site.h:94
Site & AddTags(Aws::String &&key, const char *value)
Definition Site.h:105
void SetSiteArn(const Aws::String &value)
Definition Site.h:113
Site & WithSiteArn(const char *value)
Definition Site.h:118
void SetOperatingAddressStateOrRegion(const char *value)
Definition Site.h:158
const Aws::String & GetOperatingAddressCountryCode() const
Definition Site.h:140
void SetSiteId(const Aws::String &value)
Definition Site.h:46
bool OperatingAddressStateOrRegionHasBeenSet() const
Definition Site.h:155
void SetName(Aws::String &&value)
Definition Site.h:71
Site & WithDescription(const Aws::String &value)
Definition Site.h:85
Site & AddTags(const Aws::String &key, const Aws::String &value)
Definition Site.h:100
void SetAccountId(Aws::String &&value)
Definition Site.h:59
void SetOperatingAddressCity(const Aws::String &value)
Definition Site.h:170
void SetSiteArn(Aws::String &&value)
Definition Site.h:114
void SetNotes(const Aws::String &value)
Definition Site.h:127
Site & WithOperatingAddressCountryCode(const char *value)
Definition Site.h:147
const Aws::String & GetDescription() const
Definition Site.h:80
bool AccountIdHasBeenSet() const
Definition Site.h:57
Site & WithDescription(Aws::String &&value)
Definition Site.h:86
bool NameHasBeenSet() const
Definition Site.h:69
Site & WithAccountId(const char *value)
Definition Site.h:63
const Aws::String & GetName() const
Definition Site.h:68
Site & WithSiteId(const char *value)
Definition Site.h:51
void SetOperatingAddressCity(const char *value)
Definition Site.h:172
Site & WithNotes(Aws::String &&value)
Definition Site.h:131
void SetName(const Aws::String &value)
Definition Site.h:70
void SetOperatingAddressStateOrRegion(const Aws::String &value)
Definition Site.h:156
const Aws::String & GetSiteId() const
Definition Site.h:44
Site & WithOperatingAddressCity(const char *value)
Definition Site.h:175
const Aws::String & GetAccountId() const
Definition Site.h:56
Site & WithNotes(const char *value)
Definition Site.h:132
void SetOperatingAddressStateOrRegion(Aws::String &&value)
Definition Site.h:157
Site & WithSiteId(const Aws::String &value)
Definition Site.h:49
void SetNotes(Aws::String &&value)
Definition Site.h:128
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Site.h:97
AWS_OUTPOSTS_API Site()
void SetSiteId(const char *value)
Definition Site.h:48
void SetDescription(const Aws::String &value)
Definition Site.h:82
Site & WithOperatingAddressStateOrRegion(const char *value)
Definition Site.h:161
Site & WithOperatingAddressCountryCode(Aws::String &&value)
Definition Site.h:146
AWS_OUTPOSTS_API Site(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetNotes() const
Definition Site.h:125
void SetRackPhysicalProperties(const RackPhysicalProperties &value)
Definition Site.h:185
void SetSiteId(Aws::String &&value)
Definition Site.h:47
void SetRackPhysicalProperties(RackPhysicalProperties &&value)
Definition Site.h:186
Site & WithOperatingAddressStateOrRegion(Aws::String &&value)
Definition Site.h:160
void SetNotes(const char *value)
Definition Site.h:129
Site & WithAccountId(const Aws::String &value)
Definition Site.h:61
Site & WithSiteArn(const Aws::String &value)
Definition Site.h:116
Site & WithNotes(const Aws::String &value)
Definition Site.h:130
void SetSiteArn(const char *value)
Definition Site.h:115
bool TagsHasBeenSet() const
Definition Site.h:95
void SetOperatingAddressCountryCode(const Aws::String &value)
Definition Site.h:142
bool NotesHasBeenSet() const
Definition Site.h:126
Site & AddTags(Aws::String &&key, const Aws::String &value)
Definition Site.h:101
const Aws::String & GetOperatingAddressCity() const
Definition Site.h:168
Site & WithOperatingAddressStateOrRegion(const Aws::String &value)
Definition Site.h:159
Site & WithOperatingAddressCity(const Aws::String &value)
Definition Site.h:173
Site & WithRackPhysicalProperties(RackPhysicalProperties &&value)
Definition Site.h:188
void SetDescription(const char *value)
Definition Site.h:84
Site & WithSiteArn(Aws::String &&value)
Definition Site.h:117
bool DescriptionHasBeenSet() const
Definition Site.h:81
bool OperatingAddressCountryCodeHasBeenSet() const
Definition Site.h:141
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