AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ControlOperationSummary.h
1
6#pragma once
7#include <aws/controltower/ControlTower_EXPORTS.h>
8#include <aws/controltower/model/ControlOperationStatus.h>
9#include <aws/controltower/model/ControlOperationType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ControlTower {
23namespace Model {
24
32 public:
33 AWS_CONTROLTOWER_API ControlOperationSummary() = default;
34 AWS_CONTROLTOWER_API ControlOperationSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ControlOperationType GetOperationType() const { return m_operationType; }
43 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
45 m_operationTypeHasBeenSet = true;
46 m_operationType = value;
47 }
49 SetOperationType(value);
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
59 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
60 template <typename StartTimeT = Aws::Utils::DateTime>
61 void SetStartTime(StartTimeT&& value) {
62 m_startTimeHasBeenSet = true;
63 m_startTime = std::forward<StartTimeT>(value);
64 }
65 template <typename StartTimeT = Aws::Utils::DateTime>
67 SetStartTime(std::forward<StartTimeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
77 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
78 template <typename EndTimeT = Aws::Utils::DateTime>
79 void SetEndTime(EndTimeT&& value) {
80 m_endTimeHasBeenSet = true;
81 m_endTime = std::forward<EndTimeT>(value);
82 }
83 template <typename EndTimeT = Aws::Utils::DateTime>
85 SetEndTime(std::forward<EndTimeT>(value));
86 return *this;
87 }
89
91
94 inline ControlOperationStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(ControlOperationStatus value) {
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
111 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
112 template <typename StatusMessageT = Aws::String>
113 void SetStatusMessage(StatusMessageT&& value) {
114 m_statusMessageHasBeenSet = true;
115 m_statusMessage = std::forward<StatusMessageT>(value);
116 }
117 template <typename StatusMessageT = Aws::String>
119 SetStatusMessage(std::forward<StatusMessageT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetOperationIdentifier() const { return m_operationIdentifier; }
129 inline bool OperationIdentifierHasBeenSet() const { return m_operationIdentifierHasBeenSet; }
130 template <typename OperationIdentifierT = Aws::String>
131 void SetOperationIdentifier(OperationIdentifierT&& value) {
132 m_operationIdentifierHasBeenSet = true;
133 m_operationIdentifier = std::forward<OperationIdentifierT>(value);
134 }
135 template <typename OperationIdentifierT = Aws::String>
136 ControlOperationSummary& WithOperationIdentifier(OperationIdentifierT&& value) {
137 SetOperationIdentifier(std::forward<OperationIdentifierT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetControlIdentifier() const { return m_controlIdentifier; }
147 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
148 template <typename ControlIdentifierT = Aws::String>
149 void SetControlIdentifier(ControlIdentifierT&& value) {
150 m_controlIdentifierHasBeenSet = true;
151 m_controlIdentifier = std::forward<ControlIdentifierT>(value);
152 }
153 template <typename ControlIdentifierT = Aws::String>
154 ControlOperationSummary& WithControlIdentifier(ControlIdentifierT&& value) {
155 SetControlIdentifier(std::forward<ControlIdentifierT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
165 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
166 template <typename TargetIdentifierT = Aws::String>
167 void SetTargetIdentifier(TargetIdentifierT&& value) {
168 m_targetIdentifierHasBeenSet = true;
169 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
170 }
171 template <typename TargetIdentifierT = Aws::String>
172 ControlOperationSummary& WithTargetIdentifier(TargetIdentifierT&& value) {
173 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetEnabledControlIdentifier() const { return m_enabledControlIdentifier; }
183 inline bool EnabledControlIdentifierHasBeenSet() const { return m_enabledControlIdentifierHasBeenSet; }
184 template <typename EnabledControlIdentifierT = Aws::String>
185 void SetEnabledControlIdentifier(EnabledControlIdentifierT&& value) {
186 m_enabledControlIdentifierHasBeenSet = true;
187 m_enabledControlIdentifier = std::forward<EnabledControlIdentifierT>(value);
188 }
189 template <typename EnabledControlIdentifierT = Aws::String>
190 ControlOperationSummary& WithEnabledControlIdentifier(EnabledControlIdentifierT&& value) {
191 SetEnabledControlIdentifier(std::forward<EnabledControlIdentifierT>(value));
192 return *this;
193 }
195 private:
197
198 Aws::Utils::DateTime m_startTime{};
199
200 Aws::Utils::DateTime m_endTime{};
201
203
204 Aws::String m_statusMessage;
205
206 Aws::String m_operationIdentifier;
207
208 Aws::String m_controlIdentifier;
209
210 Aws::String m_targetIdentifier;
211
212 Aws::String m_enabledControlIdentifier;
213 bool m_operationTypeHasBeenSet = false;
214 bool m_startTimeHasBeenSet = false;
215 bool m_endTimeHasBeenSet = false;
216 bool m_statusHasBeenSet = false;
217 bool m_statusMessageHasBeenSet = false;
218 bool m_operationIdentifierHasBeenSet = false;
219 bool m_controlIdentifierHasBeenSet = false;
220 bool m_targetIdentifierHasBeenSet = false;
221 bool m_enabledControlIdentifierHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace ControlTower
226} // namespace Aws
ControlOperationSummary & WithTargetIdentifier(TargetIdentifierT &&value)
ControlOperationSummary & WithStatus(ControlOperationStatus value)
ControlOperationSummary & WithOperationType(ControlOperationType value)
AWS_CONTROLTOWER_API ControlOperationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOperationIdentifier(OperationIdentifierT &&value)
ControlOperationSummary & WithStatusMessage(StatusMessageT &&value)
AWS_CONTROLTOWER_API ControlOperationSummary(Aws::Utils::Json::JsonView jsonValue)
ControlOperationSummary & WithOperationIdentifier(OperationIdentifierT &&value)
ControlOperationSummary & WithStartTime(StartTimeT &&value)
AWS_CONTROLTOWER_API ControlOperationSummary()=default
ControlOperationSummary & WithEnabledControlIdentifier(EnabledControlIdentifierT &&value)
ControlOperationSummary & WithControlIdentifier(ControlIdentifierT &&value)
void SetEnabledControlIdentifier(EnabledControlIdentifierT &&value)
AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const
ControlOperationSummary & WithEndTime(EndTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue