AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
SettingEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ds/DirectoryService_EXPORTS.h>
11#include <aws/ds/model/DirectoryConfigurationStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DirectoryService {
23namespace Model {
24
32 public:
33 AWS_DIRECTORYSERVICE_API SettingEntry() = default;
34 AWS_DIRECTORYSERVICE_API SettingEntry(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTORYSERVICE_API SettingEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 template <typename TypeT = Aws::String>
47 void SetType(TypeT&& value) {
48 m_typeHasBeenSet = true;
49 m_type = std::forward<TypeT>(value);
50 }
51 template <typename TypeT = Aws::String>
52 SettingEntry& WithType(TypeT&& value) {
53 SetType(std::forward<TypeT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 SettingEntry& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetAllowedValues() const { return m_allowedValues; }
83 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
84 template <typename AllowedValuesT = Aws::String>
85 void SetAllowedValues(AllowedValuesT&& value) {
86 m_allowedValuesHasBeenSet = true;
87 m_allowedValues = std::forward<AllowedValuesT>(value);
88 }
89 template <typename AllowedValuesT = Aws::String>
90 SettingEntry& WithAllowedValues(AllowedValuesT&& value) {
91 SetAllowedValues(std::forward<AllowedValuesT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetAppliedValue() const { return m_appliedValue; }
101 inline bool AppliedValueHasBeenSet() const { return m_appliedValueHasBeenSet; }
102 template <typename AppliedValueT = Aws::String>
103 void SetAppliedValue(AppliedValueT&& value) {
104 m_appliedValueHasBeenSet = true;
105 m_appliedValue = std::forward<AppliedValueT>(value);
106 }
107 template <typename AppliedValueT = Aws::String>
108 SettingEntry& WithAppliedValue(AppliedValueT&& value) {
109 SetAppliedValue(std::forward<AppliedValueT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetRequestedValue() const { return m_requestedValue; }
119 inline bool RequestedValueHasBeenSet() const { return m_requestedValueHasBeenSet; }
120 template <typename RequestedValueT = Aws::String>
121 void SetRequestedValue(RequestedValueT&& value) {
122 m_requestedValueHasBeenSet = true;
123 m_requestedValue = std::forward<RequestedValueT>(value);
124 }
125 template <typename RequestedValueT = Aws::String>
126 SettingEntry& WithRequestedValue(RequestedValueT&& value) {
127 SetRequestedValue(std::forward<RequestedValueT>(value));
128 return *this;
129 }
131
133
138 inline DirectoryConfigurationStatus GetRequestStatus() const { return m_requestStatus; }
139 inline bool RequestStatusHasBeenSet() const { return m_requestStatusHasBeenSet; }
141 m_requestStatusHasBeenSet = true;
142 m_requestStatus = value;
143 }
145 SetRequestStatus(value);
146 return *this;
147 }
149
151
156 inline const Aws::Map<Aws::String, DirectoryConfigurationStatus>& GetRequestDetailedStatus() const { return m_requestDetailedStatus; }
157 inline bool RequestDetailedStatusHasBeenSet() const { return m_requestDetailedStatusHasBeenSet; }
158 template <typename RequestDetailedStatusT = Aws::Map<Aws::String, DirectoryConfigurationStatus>>
159 void SetRequestDetailedStatus(RequestDetailedStatusT&& value) {
160 m_requestDetailedStatusHasBeenSet = true;
161 m_requestDetailedStatus = std::forward<RequestDetailedStatusT>(value);
162 }
163 template <typename RequestDetailedStatusT = Aws::Map<Aws::String, DirectoryConfigurationStatus>>
164 SettingEntry& WithRequestDetailedStatus(RequestDetailedStatusT&& value) {
165 SetRequestDetailedStatus(std::forward<RequestDetailedStatusT>(value));
166 return *this;
167 }
169 m_requestDetailedStatusHasBeenSet = true;
170 m_requestDetailedStatus.emplace(key, value);
171 return *this;
172 }
174
176
179 inline const Aws::String& GetRequestStatusMessage() const { return m_requestStatusMessage; }
180 inline bool RequestStatusMessageHasBeenSet() const { return m_requestStatusMessageHasBeenSet; }
181 template <typename RequestStatusMessageT = Aws::String>
182 void SetRequestStatusMessage(RequestStatusMessageT&& value) {
183 m_requestStatusMessageHasBeenSet = true;
184 m_requestStatusMessage = std::forward<RequestStatusMessageT>(value);
185 }
186 template <typename RequestStatusMessageT = Aws::String>
187 SettingEntry& WithRequestStatusMessage(RequestStatusMessageT&& value) {
188 SetRequestStatusMessage(std::forward<RequestStatusMessageT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
198 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
199 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
200 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
201 m_lastUpdatedDateTimeHasBeenSet = true;
202 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
203 }
204 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
205 SettingEntry& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
206 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::Utils::DateTime& GetLastRequestedDateTime() const { return m_lastRequestedDateTime; }
217 inline bool LastRequestedDateTimeHasBeenSet() const { return m_lastRequestedDateTimeHasBeenSet; }
218 template <typename LastRequestedDateTimeT = Aws::Utils::DateTime>
219 void SetLastRequestedDateTime(LastRequestedDateTimeT&& value) {
220 m_lastRequestedDateTimeHasBeenSet = true;
221 m_lastRequestedDateTime = std::forward<LastRequestedDateTimeT>(value);
222 }
223 template <typename LastRequestedDateTimeT = Aws::Utils::DateTime>
224 SettingEntry& WithLastRequestedDateTime(LastRequestedDateTimeT&& value) {
225 SetLastRequestedDateTime(std::forward<LastRequestedDateTimeT>(value));
226 return *this;
227 }
229
231
236 inline const Aws::String& GetDataType() const { return m_dataType; }
237 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
238 template <typename DataTypeT = Aws::String>
239 void SetDataType(DataTypeT&& value) {
240 m_dataTypeHasBeenSet = true;
241 m_dataType = std::forward<DataTypeT>(value);
242 }
243 template <typename DataTypeT = Aws::String>
244 SettingEntry& WithDataType(DataTypeT&& value) {
245 SetDataType(std::forward<DataTypeT>(value));
246 return *this;
247 }
249 private:
250 Aws::String m_type;
251
252 Aws::String m_name;
253
254 Aws::String m_allowedValues;
255
256 Aws::String m_appliedValue;
257
258 Aws::String m_requestedValue;
259
261
263
264 Aws::String m_requestStatusMessage;
265
266 Aws::Utils::DateTime m_lastUpdatedDateTime{};
267
268 Aws::Utils::DateTime m_lastRequestedDateTime{};
269
270 Aws::String m_dataType;
271 bool m_typeHasBeenSet = false;
272 bool m_nameHasBeenSet = false;
273 bool m_allowedValuesHasBeenSet = false;
274 bool m_appliedValueHasBeenSet = false;
275 bool m_requestedValueHasBeenSet = false;
276 bool m_requestStatusHasBeenSet = false;
277 bool m_requestDetailedStatusHasBeenSet = false;
278 bool m_requestStatusMessageHasBeenSet = false;
279 bool m_lastUpdatedDateTimeHasBeenSet = false;
280 bool m_lastRequestedDateTimeHasBeenSet = false;
281 bool m_dataTypeHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace DirectoryService
286} // namespace Aws
void SetAllowedValues(AllowedValuesT &&value)
const Aws::String & GetAllowedValues() const
SettingEntry & WithAllowedValues(AllowedValuesT &&value)
const Aws::String & GetRequestedValue() const
SettingEntry & WithRequestStatusMessage(RequestStatusMessageT &&value)
const Aws::String & GetType() const
const Aws::Utils::DateTime & GetLastRequestedDateTime() const
SettingEntry & WithRequestStatus(DirectoryConfigurationStatus value)
bool RequestedValueHasBeenSet() const
bool NameHasBeenSet() const
void SetRequestStatusMessage(RequestStatusMessageT &&value)
void SetRequestedValue(RequestedValueT &&value)
bool AppliedValueHasBeenSet() const
const Aws::String & GetAppliedValue() const
bool TypeHasBeenSet() const
SettingEntry & WithDataType(DataTypeT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
bool AllowedValuesHasBeenSet() const
bool DataTypeHasBeenSet() const
SettingEntry & AddRequestDetailedStatus(Aws::String key, DirectoryConfigurationStatus value)
bool RequestStatusHasBeenSet() const
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
SettingEntry & WithAppliedValue(AppliedValueT &&value)
DirectoryConfigurationStatus GetRequestStatus() const
void SetType(TypeT &&value)
AWS_DIRECTORYSERVICE_API SettingEntry(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
SettingEntry & WithRequestDetailedStatus(RequestDetailedStatusT &&value)
AWS_DIRECTORYSERVICE_API SettingEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
SettingEntry & WithLastRequestedDateTime(LastRequestedDateTimeT &&value)
const Aws::Map< Aws::String, DirectoryConfigurationStatus > & GetRequestDetailedStatus() const
SettingEntry & WithType(TypeT &&value)
SettingEntry & WithRequestedValue(RequestedValueT &&value)
bool LastRequestedDateTimeHasBeenSet() const
void SetAppliedValue(AppliedValueT &&value)
SettingEntry & WithName(NameT &&value)
void SetDataType(DataTypeT &&value)
void SetName(NameT &&value)
const Aws::String & GetName() const
SettingEntry & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetRequestStatus(DirectoryConfigurationStatus value)
const Aws::String & GetRequestStatusMessage() const
void SetLastRequestedDateTime(LastRequestedDateTimeT &&value)
bool RequestDetailedStatusHasBeenSet() const
void SetRequestDetailedStatus(RequestDetailedStatusT &&value)
bool RequestStatusMessageHasBeenSet() const
const Aws::String & GetDataType() const
bool LastUpdatedDateTimeHasBeenSet() const
AWS_DIRECTORYSERVICE_API SettingEntry()=default
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