AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ControlIdentifierT = Aws::String>
50 void SetControlIdentifier(ControlIdentifierT&& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = std::forward<ControlIdentifierT>(value); }
51 template<typename ControlIdentifierT = Aws::String>
52 ControlOperation& WithControlIdentifier(ControlIdentifierT&& value) { SetControlIdentifier(std::forward<ControlIdentifierT>(value)); return *this;}
54
56
59 inline const Aws::String& GetEnabledControlIdentifier() const { return m_enabledControlIdentifier; }
60 inline bool EnabledControlIdentifierHasBeenSet() const { return m_enabledControlIdentifierHasBeenSet; }
61 template<typename EnabledControlIdentifierT = Aws::String>
62 void SetEnabledControlIdentifier(EnabledControlIdentifierT&& value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier = std::forward<EnabledControlIdentifierT>(value); }
63 template<typename EnabledControlIdentifierT = Aws::String>
64 ControlOperation& WithEnabledControlIdentifier(EnabledControlIdentifierT&& value) { SetEnabledControlIdentifier(std::forward<EnabledControlIdentifierT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
72 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
73 template<typename EndTimeT = Aws::Utils::DateTime>
74 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
75 template<typename EndTimeT = Aws::Utils::DateTime>
76 ControlOperation& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
78
80
83 inline const Aws::String& GetOperationIdentifier() const { return m_operationIdentifier; }
84 inline bool OperationIdentifierHasBeenSet() const { return m_operationIdentifierHasBeenSet; }
85 template<typename OperationIdentifierT = Aws::String>
86 void SetOperationIdentifier(OperationIdentifierT&& value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier = std::forward<OperationIdentifierT>(value); }
87 template<typename OperationIdentifierT = Aws::String>
88 ControlOperation& WithOperationIdentifier(OperationIdentifierT&& value) { SetOperationIdentifier(std::forward<OperationIdentifierT>(value)); return *this;}
90
92
95 inline ControlOperationType GetOperationType() const { return m_operationType; }
96 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
97 inline void SetOperationType(ControlOperationType value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
100
102
105 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
106 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
107 template<typename StartTimeT = Aws::Utils::DateTime>
108 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
109 template<typename StartTimeT = Aws::Utils::DateTime>
110 ControlOperation& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
112
114
118 inline ControlOperationStatus GetStatus() const { return m_status; }
119 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 inline void SetStatus(ControlOperationStatus value) { m_statusHasBeenSet = true; m_status = value; }
121 inline ControlOperation& WithStatus(ControlOperationStatus value) { SetStatus(value); return *this;}
123
125
129 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
130 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
131 template<typename StatusMessageT = Aws::String>
132 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
133 template<typename StatusMessageT = Aws::String>
134 ControlOperation& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
136
138
141 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
142 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
143 template<typename TargetIdentifierT = Aws::String>
144 void SetTargetIdentifier(TargetIdentifierT&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::forward<TargetIdentifierT>(value); }
145 template<typename TargetIdentifierT = Aws::String>
146 ControlOperation& WithTargetIdentifier(TargetIdentifierT&& value) { SetTargetIdentifier(std::forward<TargetIdentifierT>(value)); return *this;}
148 private:
149
150 Aws::String m_controlIdentifier;
151 bool m_controlIdentifierHasBeenSet = false;
152
153 Aws::String m_enabledControlIdentifier;
154 bool m_enabledControlIdentifierHasBeenSet = false;
155
156 Aws::Utils::DateTime m_endTime{};
157 bool m_endTimeHasBeenSet = false;
158
159 Aws::String m_operationIdentifier;
160 bool m_operationIdentifierHasBeenSet = false;
161
163 bool m_operationTypeHasBeenSet = false;
164
165 Aws::Utils::DateTime m_startTime{};
166 bool m_startTimeHasBeenSet = false;
167
169 bool m_statusHasBeenSet = false;
170
171 Aws::String m_statusMessage;
172 bool m_statusMessageHasBeenSet = false;
173
174 Aws::String m_targetIdentifier;
175 bool m_targetIdentifierHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace ControlTower
180} // 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