AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ControlOperationSummary.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
36 {
37 public:
38 AWS_CONTROLTOWER_API ControlOperationSummary() = default;
39 AWS_CONTROLTOWER_API ControlOperationSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetControlIdentifier() const { return m_controlIdentifier; }
49 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
50 template<typename ControlIdentifierT = Aws::String>
51 void SetControlIdentifier(ControlIdentifierT&& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = std::forward<ControlIdentifierT>(value); }
52 template<typename ControlIdentifierT = Aws::String>
53 ControlOperationSummary& WithControlIdentifier(ControlIdentifierT&& value) { SetControlIdentifier(std::forward<ControlIdentifierT>(value)); return *this;}
55
57
60 inline const Aws::String& GetEnabledControlIdentifier() const { return m_enabledControlIdentifier; }
61 inline bool EnabledControlIdentifierHasBeenSet() const { return m_enabledControlIdentifierHasBeenSet; }
62 template<typename EnabledControlIdentifierT = Aws::String>
63 void SetEnabledControlIdentifier(EnabledControlIdentifierT&& value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier = std::forward<EnabledControlIdentifierT>(value); }
64 template<typename EnabledControlIdentifierT = Aws::String>
65 ControlOperationSummary& WithEnabledControlIdentifier(EnabledControlIdentifierT&& value) { SetEnabledControlIdentifier(std::forward<EnabledControlIdentifierT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
73 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
74 template<typename EndTimeT = Aws::Utils::DateTime>
75 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
76 template<typename EndTimeT = Aws::Utils::DateTime>
77 ControlOperationSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
79
81
84 inline const Aws::String& GetOperationIdentifier() const { return m_operationIdentifier; }
85 inline bool OperationIdentifierHasBeenSet() const { return m_operationIdentifierHasBeenSet; }
86 template<typename OperationIdentifierT = Aws::String>
87 void SetOperationIdentifier(OperationIdentifierT&& value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier = std::forward<OperationIdentifierT>(value); }
88 template<typename OperationIdentifierT = Aws::String>
89 ControlOperationSummary& WithOperationIdentifier(OperationIdentifierT&& value) { SetOperationIdentifier(std::forward<OperationIdentifierT>(value)); return *this;}
91
93
96 inline ControlOperationType GetOperationType() const { return m_operationType; }
97 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
98 inline void SetOperationType(ControlOperationType value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
101
103
106 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
107 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
108 template<typename StartTimeT = Aws::Utils::DateTime>
109 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
110 template<typename StartTimeT = Aws::Utils::DateTime>
111 ControlOperationSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
113
115
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; }
123
125
128 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
129 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
130 template<typename StatusMessageT = Aws::String>
131 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
132 template<typename StatusMessageT = Aws::String>
133 ControlOperationSummary& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
135
137
140 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
141 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
142 template<typename TargetIdentifierT = Aws::String>
143 void SetTargetIdentifier(TargetIdentifierT&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::forward<TargetIdentifierT>(value); }
144 template<typename TargetIdentifierT = Aws::String>
145 ControlOperationSummary& WithTargetIdentifier(TargetIdentifierT&& value) { SetTargetIdentifier(std::forward<TargetIdentifierT>(value)); return *this;}
147 private:
148
149 Aws::String m_controlIdentifier;
150 bool m_controlIdentifierHasBeenSet = false;
151
152 Aws::String m_enabledControlIdentifier;
153 bool m_enabledControlIdentifierHasBeenSet = false;
154
155 Aws::Utils::DateTime m_endTime{};
156 bool m_endTimeHasBeenSet = false;
157
158 Aws::String m_operationIdentifier;
159 bool m_operationIdentifierHasBeenSet = false;
160
162 bool m_operationTypeHasBeenSet = false;
163
164 Aws::Utils::DateTime m_startTime{};
165 bool m_startTimeHasBeenSet = false;
166
168 bool m_statusHasBeenSet = false;
169
170 Aws::String m_statusMessage;
171 bool m_statusMessageHasBeenSet = false;
172
173 Aws::String m_targetIdentifier;
174 bool m_targetIdentifierHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace ControlTower
179} // 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