AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ControlOperation.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
31 public:
32 AWS_CONTROLTOWER_API ControlOperation() = default;
33 AWS_CONTROLTOWER_API ControlOperation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONTROLTOWER_API ControlOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ControlOperationType GetOperationType() const { return m_operationType; }
42 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
44 m_operationTypeHasBeenSet = true;
45 m_operationType = value;
46 }
48 SetOperationType(value);
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
58 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
59 template <typename StartTimeT = Aws::Utils::DateTime>
60 void SetStartTime(StartTimeT&& value) {
61 m_startTimeHasBeenSet = true;
62 m_startTime = std::forward<StartTimeT>(value);
63 }
64 template <typename StartTimeT = Aws::Utils::DateTime>
65 ControlOperation& WithStartTime(StartTimeT&& value) {
66 SetStartTime(std::forward<StartTimeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
76 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
77 template <typename EndTimeT = Aws::Utils::DateTime>
78 void SetEndTime(EndTimeT&& value) {
79 m_endTimeHasBeenSet = true;
80 m_endTime = std::forward<EndTimeT>(value);
81 }
82 template <typename EndTimeT = Aws::Utils::DateTime>
83 ControlOperation& WithEndTime(EndTimeT&& value) {
84 SetEndTime(std::forward<EndTimeT>(value));
85 return *this;
86 }
88
90
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
111 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
112 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
113 template <typename StatusMessageT = Aws::String>
114 void SetStatusMessage(StatusMessageT&& value) {
115 m_statusMessageHasBeenSet = true;
116 m_statusMessage = std::forward<StatusMessageT>(value);
117 }
118 template <typename StatusMessageT = Aws::String>
119 ControlOperation& WithStatusMessage(StatusMessageT&& value) {
120 SetStatusMessage(std::forward<StatusMessageT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetOperationIdentifier() const { return m_operationIdentifier; }
130 inline bool OperationIdentifierHasBeenSet() const { return m_operationIdentifierHasBeenSet; }
131 template <typename OperationIdentifierT = Aws::String>
132 void SetOperationIdentifier(OperationIdentifierT&& value) {
133 m_operationIdentifierHasBeenSet = true;
134 m_operationIdentifier = std::forward<OperationIdentifierT>(value);
135 }
136 template <typename OperationIdentifierT = Aws::String>
137 ControlOperation& WithOperationIdentifier(OperationIdentifierT&& value) {
138 SetOperationIdentifier(std::forward<OperationIdentifierT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetControlIdentifier() const { return m_controlIdentifier; }
148 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
149 template <typename ControlIdentifierT = Aws::String>
150 void SetControlIdentifier(ControlIdentifierT&& value) {
151 m_controlIdentifierHasBeenSet = true;
152 m_controlIdentifier = std::forward<ControlIdentifierT>(value);
153 }
154 template <typename ControlIdentifierT = Aws::String>
155 ControlOperation& WithControlIdentifier(ControlIdentifierT&& value) {
156 SetControlIdentifier(std::forward<ControlIdentifierT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
166 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
167 template <typename TargetIdentifierT = Aws::String>
168 void SetTargetIdentifier(TargetIdentifierT&& value) {
169 m_targetIdentifierHasBeenSet = true;
170 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
171 }
172 template <typename TargetIdentifierT = Aws::String>
173 ControlOperation& WithTargetIdentifier(TargetIdentifierT&& value) {
174 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetEnabledControlIdentifier() const { return m_enabledControlIdentifier; }
184 inline bool EnabledControlIdentifierHasBeenSet() const { return m_enabledControlIdentifierHasBeenSet; }
185 template <typename EnabledControlIdentifierT = Aws::String>
186 void SetEnabledControlIdentifier(EnabledControlIdentifierT&& value) {
187 m_enabledControlIdentifierHasBeenSet = true;
188 m_enabledControlIdentifier = std::forward<EnabledControlIdentifierT>(value);
189 }
190 template <typename EnabledControlIdentifierT = Aws::String>
191 ControlOperation& WithEnabledControlIdentifier(EnabledControlIdentifierT&& value) {
192 SetEnabledControlIdentifier(std::forward<EnabledControlIdentifierT>(value));
193 return *this;
194 }
196 private:
198
199 Aws::Utils::DateTime m_startTime{};
200
201 Aws::Utils::DateTime m_endTime{};
202
204
205 Aws::String m_statusMessage;
206
207 Aws::String m_operationIdentifier;
208
209 Aws::String m_controlIdentifier;
210
211 Aws::String m_targetIdentifier;
212
213 Aws::String m_enabledControlIdentifier;
214 bool m_operationTypeHasBeenSet = false;
215 bool m_startTimeHasBeenSet = false;
216 bool m_endTimeHasBeenSet = false;
217 bool m_statusHasBeenSet = false;
218 bool m_statusMessageHasBeenSet = false;
219 bool m_operationIdentifierHasBeenSet = false;
220 bool m_controlIdentifierHasBeenSet = false;
221 bool m_targetIdentifierHasBeenSet = false;
222 bool m_enabledControlIdentifierHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace ControlTower
227} // namespace Aws
AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONTROLTOWER_API ControlOperation()=default
const Aws::String & GetControlIdentifier() const
void SetEnabledControlIdentifier(EnabledControlIdentifierT &&value)
ControlOperationType GetOperationType() const
ControlOperationStatus GetStatus() const
void SetTargetIdentifier(TargetIdentifierT &&value)
void SetOperationType(ControlOperationType value)
ControlOperation & WithOperationIdentifier(OperationIdentifierT &&value)
void SetStatusMessage(StatusMessageT &&value)
ControlOperation & WithTargetIdentifier(TargetIdentifierT &&value)
const Aws::String & GetEnabledControlIdentifier() const
void SetOperationIdentifier(OperationIdentifierT &&value)
const Aws::Utils::DateTime & GetEndTime() const
ControlOperation & WithControlIdentifier(ControlIdentifierT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetStatusMessage() const
AWS_CONTROLTOWER_API ControlOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
ControlOperation & WithOperationType(ControlOperationType value)
ControlOperation & WithStartTime(StartTimeT &&value)
ControlOperation & WithEndTime(EndTimeT &&value)
void SetControlIdentifier(ControlIdentifierT &&value)
void SetStatus(ControlOperationStatus value)
ControlOperation & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetTargetIdentifier() const
const Aws::String & GetOperationIdentifier() const
AWS_CONTROLTOWER_API ControlOperation(Aws::Utils::Json::JsonView jsonValue)
ControlOperation & WithEnabledControlIdentifier(EnabledControlIdentifierT &&value)
ControlOperation & WithStatus(ControlOperationStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue