AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ControlOperation.h
1
6#pragma once
7#include <aws/controltower/ControlTower_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/controltower/model/ControlOperationType.h>
11#include <aws/controltower/model/ControlOperationStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ControlTower
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONTROLTOWER_API ControlOperation();
38 AWS_CONTROLTOWER_API ControlOperation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONTROLTOWER_API ControlOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetControlIdentifier() const{ return m_controlIdentifier; }
48 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
49 inline void SetControlIdentifier(const Aws::String& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = value; }
50 inline void SetControlIdentifier(Aws::String&& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = std::move(value); }
51 inline void SetControlIdentifier(const char* value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier.assign(value); }
52 inline ControlOperation& WithControlIdentifier(const Aws::String& value) { SetControlIdentifier(value); return *this;}
53 inline ControlOperation& WithControlIdentifier(Aws::String&& value) { SetControlIdentifier(std::move(value)); return *this;}
54 inline ControlOperation& WithControlIdentifier(const char* value) { SetControlIdentifier(value); return *this;}
56
58
61 inline const Aws::String& GetEnabledControlIdentifier() const{ return m_enabledControlIdentifier; }
62 inline bool EnabledControlIdentifierHasBeenSet() const { return m_enabledControlIdentifierHasBeenSet; }
63 inline void SetEnabledControlIdentifier(const Aws::String& value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier = value; }
64 inline void SetEnabledControlIdentifier(Aws::String&& value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier = std::move(value); }
65 inline void SetEnabledControlIdentifier(const char* value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier.assign(value); }
67 inline ControlOperation& WithEnabledControlIdentifier(Aws::String&& value) { SetEnabledControlIdentifier(std::move(value)); return *this;}
68 inline ControlOperation& WithEnabledControlIdentifier(const char* value) { SetEnabledControlIdentifier(value); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
76 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
77 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
78 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
79 inline ControlOperation& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
80 inline ControlOperation& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetOperationIdentifier() const{ return m_operationIdentifier; }
88 inline bool OperationIdentifierHasBeenSet() const { return m_operationIdentifierHasBeenSet; }
89 inline void SetOperationIdentifier(const Aws::String& value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier = value; }
90 inline void SetOperationIdentifier(Aws::String&& value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier = std::move(value); }
91 inline void SetOperationIdentifier(const char* value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier.assign(value); }
92 inline ControlOperation& WithOperationIdentifier(const Aws::String& value) { SetOperationIdentifier(value); return *this;}
93 inline ControlOperation& WithOperationIdentifier(Aws::String&& value) { SetOperationIdentifier(std::move(value)); return *this;}
94 inline ControlOperation& WithOperationIdentifier(const char* value) { SetOperationIdentifier(value); return *this;}
96
98
101 inline const ControlOperationType& GetOperationType() const{ return m_operationType; }
102 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
103 inline void SetOperationType(const ControlOperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
104 inline void SetOperationType(ControlOperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); }
105 inline ControlOperation& WithOperationType(const ControlOperationType& value) { SetOperationType(value); return *this;}
106 inline ControlOperation& WithOperationType(ControlOperationType&& value) { SetOperationType(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
114 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
115 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
116 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
117 inline ControlOperation& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
118 inline ControlOperation& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
120
122
126 inline const ControlOperationStatus& GetStatus() const{ return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 inline void SetStatus(const ControlOperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
129 inline void SetStatus(ControlOperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
130 inline ControlOperation& WithStatus(const ControlOperationStatus& value) { SetStatus(value); return *this;}
131 inline ControlOperation& WithStatus(ControlOperationStatus&& value) { SetStatus(std::move(value)); return *this;}
133
135
139 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
140 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
141 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
142 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
143 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
144 inline ControlOperation& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
145 inline ControlOperation& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
146 inline ControlOperation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
148
150
153 inline const Aws::String& GetTargetIdentifier() const{ return m_targetIdentifier; }
154 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
155 inline void SetTargetIdentifier(const Aws::String& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = value; }
156 inline void SetTargetIdentifier(Aws::String&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::move(value); }
157 inline void SetTargetIdentifier(const char* value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier.assign(value); }
158 inline ControlOperation& WithTargetIdentifier(const Aws::String& value) { SetTargetIdentifier(value); return *this;}
159 inline ControlOperation& WithTargetIdentifier(Aws::String&& value) { SetTargetIdentifier(std::move(value)); return *this;}
160 inline ControlOperation& WithTargetIdentifier(const char* value) { SetTargetIdentifier(value); return *this;}
162 private:
163
164 Aws::String m_controlIdentifier;
165 bool m_controlIdentifierHasBeenSet = false;
166
167 Aws::String m_enabledControlIdentifier;
168 bool m_enabledControlIdentifierHasBeenSet = false;
169
170 Aws::Utils::DateTime m_endTime;
171 bool m_endTimeHasBeenSet = false;
172
173 Aws::String m_operationIdentifier;
174 bool m_operationIdentifierHasBeenSet = false;
175
176 ControlOperationType m_operationType;
177 bool m_operationTypeHasBeenSet = false;
178
179 Aws::Utils::DateTime m_startTime;
180 bool m_startTimeHasBeenSet = false;
181
182 ControlOperationStatus m_status;
183 bool m_statusHasBeenSet = false;
184
185 Aws::String m_statusMessage;
186 bool m_statusMessageHasBeenSet = false;
187
188 Aws::String m_targetIdentifier;
189 bool m_targetIdentifierHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace ControlTower
194} // namespace Aws
const ControlOperationStatus & GetStatus() const
ControlOperation & WithTargetIdentifier(const Aws::String &value)
void SetEndTime(const Aws::Utils::DateTime &value)
AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetControlIdentifier() const
ControlOperation & WithOperationIdentifier(const char *value)
ControlOperation & WithStatusMessage(const char *value)
ControlOperation & WithControlIdentifier(Aws::String &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetOperationIdentifier(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
ControlOperation & WithEnabledControlIdentifier(const char *value)
ControlOperation & WithStatusMessage(const Aws::String &value)
const Aws::String & GetEnabledControlIdentifier() const
ControlOperation & WithControlIdentifier(const char *value)
void SetTargetIdentifier(const Aws::String &value)
void SetOperationType(const ControlOperationType &value)
ControlOperation & WithOperationType(const ControlOperationType &value)
void SetControlIdentifier(const Aws::String &value)
const Aws::Utils::DateTime & GetEndTime() const
ControlOperation & WithControlIdentifier(const Aws::String &value)
const ControlOperationType & GetOperationType() const
ControlOperation & WithOperationType(ControlOperationType &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetStatusMessage() const
ControlOperation & WithTargetIdentifier(const char *value)
void SetEnabledControlIdentifier(const Aws::String &value)
AWS_CONTROLTOWER_API ControlOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
ControlOperation & WithStartTime(Aws::Utils::DateTime &&value)
ControlOperation & WithEnabledControlIdentifier(const Aws::String &value)
ControlOperation & WithStatus(ControlOperationStatus &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetStatus(ControlOperationStatus &&value)
void SetEnabledControlIdentifier(const char *value)
void SetOperationIdentifier(Aws::String &&value)
ControlOperation & WithOperationIdentifier(const Aws::String &value)
void SetControlIdentifier(Aws::String &&value)
ControlOperation & WithOperationIdentifier(Aws::String &&value)
ControlOperation & WithStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetTargetIdentifier() const
const Aws::String & GetOperationIdentifier() const
ControlOperation & WithEnabledControlIdentifier(Aws::String &&value)
void SetEnabledControlIdentifier(Aws::String &&value)
ControlOperation & WithEndTime(Aws::Utils::DateTime &&value)
ControlOperation & WithTargetIdentifier(Aws::String &&value)
AWS_CONTROLTOWER_API ControlOperation(Aws::Utils::Json::JsonView jsonValue)
ControlOperation & WithStatusMessage(Aws::String &&value)
void SetStatusMessage(const Aws::String &value)
void SetStatus(const ControlOperationStatus &value)
ControlOperation & WithStatus(const ControlOperationStatus &value)
ControlOperation & WithEndTime(const Aws::Utils::DateTime &value)
void SetOperationType(ControlOperationType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue