AWS SDK for C++  1.9.123
AWS SDK for C++
Region.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
28 
35  {
36  public:
37  Region();
41 
42 
46  inline const Aws::String& GetContinentCode() const{ return m_continentCode; }
47 
51  inline bool ContinentCodeHasBeenSet() const { return m_continentCodeHasBeenSet; }
52 
56  inline void SetContinentCode(const Aws::String& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
57 
61  inline void SetContinentCode(Aws::String&& value) { m_continentCodeHasBeenSet = true; m_continentCode = std::move(value); }
62 
66  inline void SetContinentCode(const char* value) { m_continentCodeHasBeenSet = true; m_continentCode.assign(value); }
67 
71  inline Region& WithContinentCode(const Aws::String& value) { SetContinentCode(value); return *this;}
72 
76  inline Region& WithContinentCode(Aws::String&& value) { SetContinentCode(std::move(value)); return *this;}
77 
81  inline Region& WithContinentCode(const char* value) { SetContinentCode(value); return *this;}
82 
83 
88  inline const Aws::String& GetDescription() const{ return m_description; }
89 
94  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 
100  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 
106  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
107 
112  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 
118  inline Region& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
119 
124  inline Region& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
125 
130  inline Region& WithDescription(const char* value) { SetDescription(value); return *this;}
131 
132 
136  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
137 
141  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
142 
146  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
147 
151  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
152 
156  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
157 
161  inline Region& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
162 
166  inline Region& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
167 
171  inline Region& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
172 
173 
177  inline const RegionName& GetName() const{ return m_name; }
178 
182  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
183 
187  inline void SetName(const RegionName& value) { m_nameHasBeenSet = true; m_name = value; }
188 
192  inline void SetName(RegionName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
193 
197  inline Region& WithName(const RegionName& value) { SetName(value); return *this;}
198 
202  inline Region& WithName(RegionName&& value) { SetName(std::move(value)); return *this;}
203 
204 
209  inline const Aws::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
210 
215  inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
216 
221  inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
222 
227  inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
228 
233  inline Region& WithAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { SetAvailabilityZones(value); return *this;}
234 
239  inline Region& WithAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
240 
245  inline Region& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
246 
251  inline Region& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
252 
253 
258  inline const Aws::Vector<AvailabilityZone>& GetRelationalDatabaseAvailabilityZones() const{ return m_relationalDatabaseAvailabilityZones; }
259 
264  inline bool RelationalDatabaseAvailabilityZonesHasBeenSet() const { return m_relationalDatabaseAvailabilityZonesHasBeenSet; }
265 
270  inline void SetRelationalDatabaseAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_relationalDatabaseAvailabilityZonesHasBeenSet = true; m_relationalDatabaseAvailabilityZones = value; }
271 
276  inline void SetRelationalDatabaseAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_relationalDatabaseAvailabilityZonesHasBeenSet = true; m_relationalDatabaseAvailabilityZones = std::move(value); }
277 
282  inline Region& WithRelationalDatabaseAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { SetRelationalDatabaseAvailabilityZones(value); return *this;}
283 
288  inline Region& WithRelationalDatabaseAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { SetRelationalDatabaseAvailabilityZones(std::move(value)); return *this;}
289 
294  inline Region& AddRelationalDatabaseAvailabilityZones(const AvailabilityZone& value) { m_relationalDatabaseAvailabilityZonesHasBeenSet = true; m_relationalDatabaseAvailabilityZones.push_back(value); return *this; }
295 
300  inline Region& AddRelationalDatabaseAvailabilityZones(AvailabilityZone&& value) { m_relationalDatabaseAvailabilityZonesHasBeenSet = true; m_relationalDatabaseAvailabilityZones.push_back(std::move(value)); return *this; }
301 
302  private:
303 
304  Aws::String m_continentCode;
305  bool m_continentCodeHasBeenSet;
306 
307  Aws::String m_description;
308  bool m_descriptionHasBeenSet;
309 
310  Aws::String m_displayName;
311  bool m_displayNameHasBeenSet;
312 
313  RegionName m_name;
314  bool m_nameHasBeenSet;
315 
316  Aws::Vector<AvailabilityZone> m_availabilityZones;
317  bool m_availabilityZonesHasBeenSet;
318 
319  Aws::Vector<AvailabilityZone> m_relationalDatabaseAvailabilityZones;
320  bool m_relationalDatabaseAvailabilityZonesHasBeenSet;
321  };
322 
323 } // namespace Model
324 } // namespace Lightsail
325 } // namespace Aws
Aws::Lightsail::Model::Region::WithAvailabilityZones
Region & WithAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition: Region.h:239
Aws::Lightsail::Model::RegionName
RegionName
Definition: RegionName.h:17
Aws::Lightsail::Model::Region::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::Region::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: Region.h:141
Aws::Lightsail::Model::Region::ContinentCodeHasBeenSet
bool ContinentCodeHasBeenSet() const
Definition: Region.h:51
Aws::Lightsail::Model::Region::GetAvailabilityZones
const Aws::Vector< AvailabilityZone > & GetAvailabilityZones() const
Definition: Region.h:209
Aws::Lightsail::Model::Region::SetRelationalDatabaseAvailabilityZones
void SetRelationalDatabaseAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition: Region.h:276
Aws::Lightsail::Model::Region::SetContinentCode
void SetContinentCode(Aws::String &&value)
Definition: Region.h:61
Aws::Lightsail::Model::Region::SetDisplayName
void SetDisplayName(const char *value)
Definition: Region.h:156
Aws::Lightsail::Model::Region
Definition: Region.h:35
Aws::Lightsail::Model::Region::WithDisplayName
Region & WithDisplayName(const char *value)
Definition: Region.h:171
Aws::Lightsail::Model::Region::SetContinentCode
void SetContinentCode(const char *value)
Definition: Region.h:66
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::Region::WithContinentCode
Region & WithContinentCode(const char *value)
Definition: Region.h:81
Aws::Lightsail::Model::Region::WithDescription
Region & WithDescription(Aws::String &&value)
Definition: Region.h:124
Aws::Lightsail::Model::Region::SetDescription
void SetDescription(Aws::String &&value)
Definition: Region.h:106
Aws::Lightsail::Model::Region::SetName
void SetName(RegionName &&value)
Definition: Region.h:192
Aws::Lightsail::Model::Region::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: Region.h:146
Aws::Lightsail::Model::Region::SetAvailabilityZones
void SetAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition: Region.h:227
Aws::Lightsail::Model::Region::GetName
const RegionName & GetName() const
Definition: Region.h:177
AWSVector.h
Aws::Lightsail::Model::Region::GetRelationalDatabaseAvailabilityZones
const Aws::Vector< AvailabilityZone > & GetRelationalDatabaseAvailabilityZones() const
Definition: Region.h:258
Aws::Lightsail::Model::Region::GetContinentCode
const Aws::String & GetContinentCode() const
Definition: Region.h:46
Aws::Lightsail::Model::Region::WithRelationalDatabaseAvailabilityZones
Region & WithRelationalDatabaseAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition: Region.h:288
Aws::Lightsail::Model::Region::AddRelationalDatabaseAvailabilityZones
Region & AddRelationalDatabaseAvailabilityZones(const AvailabilityZone &value)
Definition: Region.h:294
AvailabilityZone.h
Aws::Lightsail::Model::Region::AddAvailabilityZones
Region & AddAvailabilityZones(AvailabilityZone &&value)
Definition: Region.h:251
Aws::Lightsail::Model::Region::WithDisplayName
Region & WithDisplayName(Aws::String &&value)
Definition: Region.h:166
Aws::Lightsail::Model::Region::AvailabilityZonesHasBeenSet
bool AvailabilityZonesHasBeenSet() const
Definition: Region.h:215
Aws::Lightsail::Model::Region::SetName
void SetName(const RegionName &value)
Definition: Region.h:187
RegionName.h
Aws::Lightsail::Model::Region::SetRelationalDatabaseAvailabilityZones
void SetRelationalDatabaseAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition: Region.h:270
Aws::Lightsail::Model::Region::SetContinentCode
void SetContinentCode(const Aws::String &value)
Definition: Region.h:56
Aws::Lightsail::Model::Region::Region
Region(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Region::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Region.h:94
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::Region::WithName
Region & WithName(RegionName &&value)
Definition: Region.h:202
Aws::Lightsail::Model::Region::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: Region.h:151
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::Region::SetAvailabilityZones
void SetAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition: Region.h:221
Aws::Lightsail::Model::Region::GetDescription
const Aws::String & GetDescription() const
Definition: Region.h:88
Aws::Lightsail::Model::Region::WithContinentCode
Region & WithContinentCode(const Aws::String &value)
Definition: Region.h:71
Aws::Lightsail::Model::Region::WithDescription
Region & WithDescription(const char *value)
Definition: Region.h:130
Aws::Lightsail::Model::Region::WithContinentCode
Region & WithContinentCode(Aws::String &&value)
Definition: Region.h:76
Aws::Lightsail::Model::Region::WithAvailabilityZones
Region & WithAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition: Region.h:233
Lightsail_EXPORTS.h
Aws::Lightsail::Model::Region::AddRelationalDatabaseAvailabilityZones
Region & AddRelationalDatabaseAvailabilityZones(AvailabilityZone &&value)
Definition: Region.h:300
Aws::Lightsail::Model::Region::AddAvailabilityZones
Region & AddAvailabilityZones(const AvailabilityZone &value)
Definition: Region.h:245
Aws::Lightsail::Model::Region::WithDisplayName
Region & WithDisplayName(const Aws::String &value)
Definition: Region.h:161
Aws::Lightsail::Model::Region::SetDescription
void SetDescription(const Aws::String &value)
Definition: Region.h:100
Aws::Lightsail::Model::Region::Region
Region()
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AvailabilityZone
Definition: AvailabilityZone.h:32
Aws::Lightsail::Model::Region::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Region.h:182
Aws::Lightsail::Model::Region::WithName
Region & WithName(const RegionName &value)
Definition: Region.h:197
Aws::Lightsail::Model::Region::WithDescription
Region & WithDescription(const Aws::String &value)
Definition: Region.h:118
Aws::Lightsail::Model::Region::WithRelationalDatabaseAvailabilityZones
Region & WithRelationalDatabaseAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition: Region.h:282
Aws::Lightsail::Model::Region::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: Region.h:136
Aws::Lightsail::Model::Region::SetDescription
void SetDescription(const char *value)
Definition: Region.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::Region::RelationalDatabaseAvailabilityZonesHasBeenSet
bool RelationalDatabaseAvailabilityZonesHasBeenSet() const
Definition: Region.h:264
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::Region::operator=
Region & operator=(Aws::Utils::Json::JsonView jsonValue)