AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateInfoEntry.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/UpdateStatus.h>
11#include <aws/ds/model/UpdateValue.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 UpdateInfoEntry() = default;
34 AWS_DIRECTORYSERVICE_API UpdateInfoEntry(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTORYSERVICE_API UpdateInfoEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetRegion() const { return m_region; }
43 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
44 template <typename RegionT = Aws::String>
45 void SetRegion(RegionT&& value) {
46 m_regionHasBeenSet = true;
47 m_region = std::forward<RegionT>(value);
48 }
49 template <typename RegionT = Aws::String>
50 UpdateInfoEntry& WithRegion(RegionT&& value) {
51 SetRegion(std::forward<RegionT>(value));
52 return *this;
53 }
55
57
60 inline UpdateStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(UpdateStatus value) {
63 m_statusHasBeenSet = true;
64 m_status = value;
65 }
67 SetStatus(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
77 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
78 template <typename StatusReasonT = Aws::String>
79 void SetStatusReason(StatusReasonT&& value) {
80 m_statusReasonHasBeenSet = true;
81 m_statusReason = std::forward<StatusReasonT>(value);
82 }
83 template <typename StatusReasonT = Aws::String>
84 UpdateInfoEntry& WithStatusReason(StatusReasonT&& value) {
85 SetStatusReason(std::forward<StatusReasonT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetInitiatedBy() const { return m_initiatedBy; }
96 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
97 template <typename InitiatedByT = Aws::String>
98 void SetInitiatedBy(InitiatedByT&& value) {
99 m_initiatedByHasBeenSet = true;
100 m_initiatedBy = std::forward<InitiatedByT>(value);
101 }
102 template <typename InitiatedByT = Aws::String>
103 UpdateInfoEntry& WithInitiatedBy(InitiatedByT&& value) {
104 SetInitiatedBy(std::forward<InitiatedByT>(value));
105 return *this;
106 }
108
110
113 inline const UpdateValue& GetNewValue() const { return m_newValue; }
114 inline bool NewValueHasBeenSet() const { return m_newValueHasBeenSet; }
115 template <typename NewValueT = UpdateValue>
116 void SetNewValue(NewValueT&& value) {
117 m_newValueHasBeenSet = true;
118 m_newValue = std::forward<NewValueT>(value);
119 }
120 template <typename NewValueT = UpdateValue>
121 UpdateInfoEntry& WithNewValue(NewValueT&& value) {
122 SetNewValue(std::forward<NewValueT>(value));
123 return *this;
124 }
126
128
131 inline const UpdateValue& GetPreviousValue() const { return m_previousValue; }
132 inline bool PreviousValueHasBeenSet() const { return m_previousValueHasBeenSet; }
133 template <typename PreviousValueT = UpdateValue>
134 void SetPreviousValue(PreviousValueT&& value) {
135 m_previousValueHasBeenSet = true;
136 m_previousValue = std::forward<PreviousValueT>(value);
137 }
138 template <typename PreviousValueT = UpdateValue>
139 UpdateInfoEntry& WithPreviousValue(PreviousValueT&& value) {
140 SetPreviousValue(std::forward<PreviousValueT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
151 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
152 template <typename StartTimeT = Aws::Utils::DateTime>
153 void SetStartTime(StartTimeT&& value) {
154 m_startTimeHasBeenSet = true;
155 m_startTime = std::forward<StartTimeT>(value);
156 }
157 template <typename StartTimeT = Aws::Utils::DateTime>
158 UpdateInfoEntry& WithStartTime(StartTimeT&& value) {
159 SetStartTime(std::forward<StartTimeT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
169 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
170 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
171 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
172 m_lastUpdatedDateTimeHasBeenSet = true;
173 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
174 }
175 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
176 UpdateInfoEntry& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
177 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_region;
183
185
186 Aws::String m_statusReason;
187
188 Aws::String m_initiatedBy;
189
190 UpdateValue m_newValue;
191
192 UpdateValue m_previousValue;
193
194 Aws::Utils::DateTime m_startTime{};
195
196 Aws::Utils::DateTime m_lastUpdatedDateTime{};
197 bool m_regionHasBeenSet = false;
198 bool m_statusHasBeenSet = false;
199 bool m_statusReasonHasBeenSet = false;
200 bool m_initiatedByHasBeenSet = false;
201 bool m_newValueHasBeenSet = false;
202 bool m_previousValueHasBeenSet = false;
203 bool m_startTimeHasBeenSet = false;
204 bool m_lastUpdatedDateTimeHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace DirectoryService
209} // namespace Aws
UpdateInfoEntry & WithNewValue(NewValueT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetInitiatedBy() const
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const UpdateValue & GetNewValue() const
UpdateInfoEntry & WithPreviousValue(PreviousValueT &&value)
UpdateInfoEntry & WithStatus(UpdateStatus value)
AWS_DIRECTORYSERVICE_API UpdateInfoEntry()=default
void SetStartTime(StartTimeT &&value)
void SetNewValue(NewValueT &&value)
bool InitiatedByHasBeenSet() const
void SetInitiatedBy(InitiatedByT &&value)
const UpdateValue & GetPreviousValue() const
bool StartTimeHasBeenSet() const
bool PreviousValueHasBeenSet() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetStatusReason(StatusReasonT &&value)
AWS_DIRECTORYSERVICE_API UpdateInfoEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateInfoEntry & WithStatusReason(StatusReasonT &&value)
void SetStatus(UpdateStatus value)
void SetPreviousValue(PreviousValueT &&value)
AWS_DIRECTORYSERVICE_API UpdateInfoEntry(Aws::Utils::Json::JsonView jsonValue)
UpdateInfoEntry & WithInitiatedBy(InitiatedByT &&value)
UpdateInfoEntry & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
bool StatusReasonHasBeenSet() const
const Aws::String & GetStatusReason() const
bool LastUpdatedDateTimeHasBeenSet() const
const Aws::String & GetRegion() const
bool RegionHasBeenSet() const
UpdateInfoEntry & WithStartTime(StartTimeT &&value)
void SetRegion(RegionT &&value)
bool NewValueHasBeenSet() const
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
UpdateInfoEntry & WithRegion(RegionT &&value)
UpdateStatus GetStatus() const
bool StatusHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue