AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RegionDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ds/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/DirectoryStage.h>
11#include <aws/ds/model/DirectoryVpcSettings.h>
12#include <aws/ds/model/RegionType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DirectoryService {
24namespace Model {
25
33 public:
34 AWS_DIRECTORYSERVICE_API RegionDescription() = default;
35 AWS_DIRECTORYSERVICE_API RegionDescription(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DIRECTORYSERVICE_API RegionDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
44 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
45 template <typename DirectoryIdT = Aws::String>
46 void SetDirectoryId(DirectoryIdT&& value) {
47 m_directoryIdHasBeenSet = true;
48 m_directoryId = std::forward<DirectoryIdT>(value);
49 }
50 template <typename DirectoryIdT = Aws::String>
51 RegionDescription& WithDirectoryId(DirectoryIdT&& value) {
52 SetDirectoryId(std::forward<DirectoryIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRegionName() const { return m_regionName; }
62 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
63 template <typename RegionNameT = Aws::String>
64 void SetRegionName(RegionNameT&& value) {
65 m_regionNameHasBeenSet = true;
66 m_regionName = std::forward<RegionNameT>(value);
67 }
68 template <typename RegionNameT = Aws::String>
69 RegionDescription& WithRegionName(RegionNameT&& value) {
70 SetRegionName(std::forward<RegionNameT>(value));
71 return *this;
72 }
74
76
80 inline RegionType GetRegionType() const { return m_regionType; }
81 inline bool RegionTypeHasBeenSet() const { return m_regionTypeHasBeenSet; }
82 inline void SetRegionType(RegionType value) {
83 m_regionTypeHasBeenSet = true;
84 m_regionType = value;
85 }
87 SetRegionType(value);
88 return *this;
89 }
91
93
96 inline DirectoryStage GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(DirectoryStage value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
110 inline const DirectoryVpcSettings& GetVpcSettings() const { return m_vpcSettings; }
111 inline bool VpcSettingsHasBeenSet() const { return m_vpcSettingsHasBeenSet; }
112 template <typename VpcSettingsT = DirectoryVpcSettings>
113 void SetVpcSettings(VpcSettingsT&& value) {
114 m_vpcSettingsHasBeenSet = true;
115 m_vpcSettings = std::forward<VpcSettingsT>(value);
116 }
117 template <typename VpcSettingsT = DirectoryVpcSettings>
118 RegionDescription& WithVpcSettings(VpcSettingsT&& value) {
119 SetVpcSettings(std::forward<VpcSettingsT>(value));
120 return *this;
121 }
123
125
129 inline int GetDesiredNumberOfDomainControllers() const { return m_desiredNumberOfDomainControllers; }
130 inline bool DesiredNumberOfDomainControllersHasBeenSet() const { return m_desiredNumberOfDomainControllersHasBeenSet; }
131 inline void SetDesiredNumberOfDomainControllers(int value) {
132 m_desiredNumberOfDomainControllersHasBeenSet = true;
133 m_desiredNumberOfDomainControllers = value;
134 }
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetLaunchTime() const { return m_launchTime; }
146 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
147 template <typename LaunchTimeT = Aws::Utils::DateTime>
148 void SetLaunchTime(LaunchTimeT&& value) {
149 m_launchTimeHasBeenSet = true;
150 m_launchTime = std::forward<LaunchTimeT>(value);
151 }
152 template <typename LaunchTimeT = Aws::Utils::DateTime>
153 RegionDescription& WithLaunchTime(LaunchTimeT&& value) {
154 SetLaunchTime(std::forward<LaunchTimeT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetStatusLastUpdatedDateTime() const { return m_statusLastUpdatedDateTime; }
164 inline bool StatusLastUpdatedDateTimeHasBeenSet() const { return m_statusLastUpdatedDateTimeHasBeenSet; }
165 template <typename StatusLastUpdatedDateTimeT = Aws::Utils::DateTime>
166 void SetStatusLastUpdatedDateTime(StatusLastUpdatedDateTimeT&& value) {
167 m_statusLastUpdatedDateTimeHasBeenSet = true;
168 m_statusLastUpdatedDateTime = std::forward<StatusLastUpdatedDateTimeT>(value);
169 }
170 template <typename StatusLastUpdatedDateTimeT = Aws::Utils::DateTime>
171 RegionDescription& WithStatusLastUpdatedDateTime(StatusLastUpdatedDateTimeT&& value) {
172 SetStatusLastUpdatedDateTime(std::forward<StatusLastUpdatedDateTimeT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
182 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
183 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
184 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
185 m_lastUpdatedDateTimeHasBeenSet = true;
186 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
187 }
188 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
189 RegionDescription& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
190 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_directoryId;
196
197 Aws::String m_regionName;
198
199 RegionType m_regionType{RegionType::NOT_SET};
200
202
203 DirectoryVpcSettings m_vpcSettings;
204
205 int m_desiredNumberOfDomainControllers{0};
206
207 Aws::Utils::DateTime m_launchTime{};
208
209 Aws::Utils::DateTime m_statusLastUpdatedDateTime{};
210
211 Aws::Utils::DateTime m_lastUpdatedDateTime{};
212 bool m_directoryIdHasBeenSet = false;
213 bool m_regionNameHasBeenSet = false;
214 bool m_regionTypeHasBeenSet = false;
215 bool m_statusHasBeenSet = false;
216 bool m_vpcSettingsHasBeenSet = false;
217 bool m_desiredNumberOfDomainControllersHasBeenSet = false;
218 bool m_launchTimeHasBeenSet = false;
219 bool m_statusLastUpdatedDateTimeHasBeenSet = false;
220 bool m_lastUpdatedDateTimeHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace DirectoryService
225} // namespace Aws
RegionDescription & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const DirectoryVpcSettings & GetVpcSettings() const
AWS_DIRECTORYSERVICE_API RegionDescription()=default
RegionDescription & WithDesiredNumberOfDomainControllers(int value)
RegionDescription & WithDirectoryId(DirectoryIdT &&value)
RegionDescription & WithLaunchTime(LaunchTimeT &&value)
AWS_DIRECTORYSERVICE_API RegionDescription(Aws::Utils::Json::JsonView jsonValue)
RegionDescription & WithVpcSettings(VpcSettingsT &&value)
void SetStatusLastUpdatedDateTime(StatusLastUpdatedDateTimeT &&value)
RegionDescription & WithStatusLastUpdatedDateTime(StatusLastUpdatedDateTimeT &&value)
RegionDescription & WithRegionType(RegionType value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const Aws::Utils::DateTime & GetStatusLastUpdatedDateTime() const
RegionDescription & WithRegionName(RegionNameT &&value)
const Aws::Utils::DateTime & GetLaunchTime() const
RegionDescription & WithStatus(DirectoryStage value)
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DIRECTORYSERVICE_API RegionDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue