AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Region.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/RegionName.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/AvailabilityZone.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
34 class Region
35 {
36 public:
37 AWS_LIGHTSAIL_API Region();
38 AWS_LIGHTSAIL_API Region(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API Region& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetContinentCode() const{ return m_continentCode; }
48 inline bool ContinentCodeHasBeenSet() const { return m_continentCodeHasBeenSet; }
49 inline void SetContinentCode(const Aws::String& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
50 inline void SetContinentCode(Aws::String&& value) { m_continentCodeHasBeenSet = true; m_continentCode = std::move(value); }
51 inline void SetContinentCode(const char* value) { m_continentCodeHasBeenSet = true; m_continentCode.assign(value); }
52 inline Region& WithContinentCode(const Aws::String& value) { SetContinentCode(value); return *this;}
53 inline Region& WithContinentCode(Aws::String&& value) { SetContinentCode(std::move(value)); return *this;}
54 inline Region& WithContinentCode(const char* value) { SetContinentCode(value); return *this;}
56
58
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline Region& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline Region& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline Region& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
78 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
79 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
80 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
81 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
82 inline Region& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
83 inline Region& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
84 inline Region& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
86
88
91 inline const RegionName& GetName() const{ return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 inline void SetName(const RegionName& value) { m_nameHasBeenSet = true; m_name = value; }
94 inline void SetName(RegionName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 inline Region& WithName(const RegionName& value) { SetName(value); return *this;}
96 inline Region& WithName(RegionName&& value) { SetName(std::move(value)); return *this;}
98
100
104 inline const Aws::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
105 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
106 inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
107 inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
109 inline Region& WithAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
110 inline Region& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
111 inline Region& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
113
115
119 inline const Aws::Vector<AvailabilityZone>& GetRelationalDatabaseAvailabilityZones() const{ return m_relationalDatabaseAvailabilityZones; }
120 inline bool RelationalDatabaseAvailabilityZonesHasBeenSet() const { return m_relationalDatabaseAvailabilityZonesHasBeenSet; }
121 inline void SetRelationalDatabaseAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_relationalDatabaseAvailabilityZonesHasBeenSet = true; m_relationalDatabaseAvailabilityZones = value; }
122 inline void SetRelationalDatabaseAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_relationalDatabaseAvailabilityZonesHasBeenSet = true; m_relationalDatabaseAvailabilityZones = std::move(value); }
125 inline Region& AddRelationalDatabaseAvailabilityZones(const AvailabilityZone& value) { m_relationalDatabaseAvailabilityZonesHasBeenSet = true; m_relationalDatabaseAvailabilityZones.push_back(value); return *this; }
126 inline Region& AddRelationalDatabaseAvailabilityZones(AvailabilityZone&& value) { m_relationalDatabaseAvailabilityZonesHasBeenSet = true; m_relationalDatabaseAvailabilityZones.push_back(std::move(value)); return *this; }
128 private:
129
130 Aws::String m_continentCode;
131 bool m_continentCodeHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 Aws::String m_displayName;
137 bool m_displayNameHasBeenSet = false;
138
139 RegionName m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::Vector<AvailabilityZone> m_availabilityZones;
143 bool m_availabilityZonesHasBeenSet = false;
144
145 Aws::Vector<AvailabilityZone> m_relationalDatabaseAvailabilityZones;
146 bool m_relationalDatabaseAvailabilityZonesHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Lightsail
151} // namespace Aws
AWS_LIGHTSAIL_API Region & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRelationalDatabaseAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition Region.h:121
Region & WithAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition Region.h:109
void SetDisplayName(const char *value)
Definition Region.h:81
const Aws::Vector< AvailabilityZone > & GetRelationalDatabaseAvailabilityZones() const
Definition Region.h:119
void SetDisplayName(Aws::String &&value)
Definition Region.h:80
Region & WithContinentCode(const char *value)
Definition Region.h:54
Region & WithContinentCode(const Aws::String &value)
Definition Region.h:52
bool RelationalDatabaseAvailabilityZonesHasBeenSet() const
Definition Region.h:120
Region & WithName(RegionName &&value)
Definition Region.h:96
void SetAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition Region.h:107
Region & AddAvailabilityZones(const AvailabilityZone &value)
Definition Region.h:110
void SetContinentCode(const char *value)
Definition Region.h:51
bool AvailabilityZonesHasBeenSet() const
Definition Region.h:105
Region & AddAvailabilityZones(AvailabilityZone &&value)
Definition Region.h:111
bool NameHasBeenSet() const
Definition Region.h:92
void SetRelationalDatabaseAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition Region.h:122
Region & WithName(const RegionName &value)
Definition Region.h:95
Region & WithDisplayName(const char *value)
Definition Region.h:84
Region & WithDescription(const char *value)
Definition Region.h:70
const Aws::String & GetContinentCode() const
Definition Region.h:47
void SetDescription(const Aws::String &value)
Definition Region.h:65
bool DisplayNameHasBeenSet() const
Definition Region.h:78
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContinentCode(const Aws::String &value)
Definition Region.h:49
AWS_LIGHTSAIL_API Region(Aws::Utils::Json::JsonView jsonValue)
bool ContinentCodeHasBeenSet() const
Definition Region.h:48
void SetAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition Region.h:106
void SetDescription(const char *value)
Definition Region.h:67
void SetDescription(Aws::String &&value)
Definition Region.h:66
Region & WithRelationalDatabaseAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
Definition Region.h:124
void SetName(RegionName &&value)
Definition Region.h:94
void SetDisplayName(const Aws::String &value)
Definition Region.h:79
Region & WithDisplayName(Aws::String &&value)
Definition Region.h:83
bool DescriptionHasBeenSet() const
Definition Region.h:64
Region & WithAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition Region.h:108
Region & WithRelationalDatabaseAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
Definition Region.h:123
void SetName(const RegionName &value)
Definition Region.h:93
void SetContinentCode(Aws::String &&value)
Definition Region.h:50
Region & AddRelationalDatabaseAvailabilityZones(AvailabilityZone &&value)
Definition Region.h:126
Region & WithDisplayName(const Aws::String &value)
Definition Region.h:82
Region & WithContinentCode(Aws::String &&value)
Definition Region.h:53
const Aws::String & GetDisplayName() const
Definition Region.h:77
Region & AddRelationalDatabaseAvailabilityZones(const AvailabilityZone &value)
Definition Region.h:125
Region & WithDescription(Aws::String &&value)
Definition Region.h:69
const Aws::Vector< AvailabilityZone > & GetAvailabilityZones() const
Definition Region.h:104
Region & WithDescription(const Aws::String &value)
Definition Region.h:68
const RegionName & GetName() const
Definition Region.h:91
const Aws::String & GetDescription() const
Definition Region.h:63
AWS_LIGHTSAIL_API Region()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue