AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AssociationExecution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/AlarmConfiguration.h>
12#include <aws/ssm/model/AlarmStateInformation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
25
33 public:
34 AWS_SSM_API AssociationExecution() = default;
38
40
43 inline const Aws::String& GetAssociationId() const { return m_associationId; }
44 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
45 template <typename AssociationIdT = Aws::String>
46 void SetAssociationId(AssociationIdT&& value) {
47 m_associationIdHasBeenSet = true;
48 m_associationId = std::forward<AssociationIdT>(value);
49 }
50 template <typename AssociationIdT = Aws::String>
51 AssociationExecution& WithAssociationId(AssociationIdT&& value) {
52 SetAssociationId(std::forward<AssociationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAssociationVersion() const { return m_associationVersion; }
62 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
63 template <typename AssociationVersionT = Aws::String>
64 void SetAssociationVersion(AssociationVersionT&& value) {
65 m_associationVersionHasBeenSet = true;
66 m_associationVersion = std::forward<AssociationVersionT>(value);
67 }
68 template <typename AssociationVersionT = Aws::String>
69 AssociationExecution& WithAssociationVersion(AssociationVersionT&& value) {
70 SetAssociationVersion(std::forward<AssociationVersionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetExecutionId() const { return m_executionId; }
80 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
81 template <typename ExecutionIdT = Aws::String>
82 void SetExecutionId(ExecutionIdT&& value) {
83 m_executionIdHasBeenSet = true;
84 m_executionId = std::forward<ExecutionIdT>(value);
85 }
86 template <typename ExecutionIdT = Aws::String>
87 AssociationExecution& WithExecutionId(ExecutionIdT&& value) {
88 SetExecutionId(std::forward<ExecutionIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 template <typename StatusT = Aws::String>
100 void SetStatus(StatusT&& value) {
101 m_statusHasBeenSet = true;
102 m_status = std::forward<StatusT>(value);
103 }
104 template <typename StatusT = Aws::String>
106 SetStatus(std::forward<StatusT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDetailedStatus() const { return m_detailedStatus; }
116 inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
117 template <typename DetailedStatusT = Aws::String>
118 void SetDetailedStatus(DetailedStatusT&& value) {
119 m_detailedStatusHasBeenSet = true;
120 m_detailedStatus = std::forward<DetailedStatusT>(value);
121 }
122 template <typename DetailedStatusT = Aws::String>
123 AssociationExecution& WithDetailedStatus(DetailedStatusT&& value) {
124 SetDetailedStatus(std::forward<DetailedStatusT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
134 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
135 template <typename CreatedTimeT = Aws::Utils::DateTime>
136 void SetCreatedTime(CreatedTimeT&& value) {
137 m_createdTimeHasBeenSet = true;
138 m_createdTime = std::forward<CreatedTimeT>(value);
139 }
140 template <typename CreatedTimeT = Aws::Utils::DateTime>
141 AssociationExecution& WithCreatedTime(CreatedTimeT&& value) {
142 SetCreatedTime(std::forward<CreatedTimeT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
152 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
153 template <typename LastExecutionDateT = Aws::Utils::DateTime>
154 void SetLastExecutionDate(LastExecutionDateT&& value) {
155 m_lastExecutionDateHasBeenSet = true;
156 m_lastExecutionDate = std::forward<LastExecutionDateT>(value);
157 }
158 template <typename LastExecutionDateT = Aws::Utils::DateTime>
159 AssociationExecution& WithLastExecutionDate(LastExecutionDateT&& value) {
160 SetLastExecutionDate(std::forward<LastExecutionDateT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetResourceCountByStatus() const { return m_resourceCountByStatus; }
171 inline bool ResourceCountByStatusHasBeenSet() const { return m_resourceCountByStatusHasBeenSet; }
172 template <typename ResourceCountByStatusT = Aws::String>
173 void SetResourceCountByStatus(ResourceCountByStatusT&& value) {
174 m_resourceCountByStatusHasBeenSet = true;
175 m_resourceCountByStatus = std::forward<ResourceCountByStatusT>(value);
176 }
177 template <typename ResourceCountByStatusT = Aws::String>
178 AssociationExecution& WithResourceCountByStatus(ResourceCountByStatusT&& value) {
179 SetResourceCountByStatus(std::forward<ResourceCountByStatusT>(value));
180 return *this;
181 }
183
185
186 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
187 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
188 template <typename AlarmConfigurationT = AlarmConfiguration>
189 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
190 m_alarmConfigurationHasBeenSet = true;
191 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
192 }
193 template <typename AlarmConfigurationT = AlarmConfiguration>
194 AssociationExecution& WithAlarmConfiguration(AlarmConfigurationT&& value) {
195 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Vector<AlarmStateInformation>& GetTriggeredAlarms() const { return m_triggeredAlarms; }
205 inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; }
206 template <typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
207 void SetTriggeredAlarms(TriggeredAlarmsT&& value) {
208 m_triggeredAlarmsHasBeenSet = true;
209 m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value);
210 }
211 template <typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
212 AssociationExecution& WithTriggeredAlarms(TriggeredAlarmsT&& value) {
213 SetTriggeredAlarms(std::forward<TriggeredAlarmsT>(value));
214 return *this;
215 }
216 template <typename TriggeredAlarmsT = AlarmStateInformation>
217 AssociationExecution& AddTriggeredAlarms(TriggeredAlarmsT&& value) {
218 m_triggeredAlarmsHasBeenSet = true;
219 m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_associationId;
225
226 Aws::String m_associationVersion;
227
228 Aws::String m_executionId;
229
230 Aws::String m_status;
231
232 Aws::String m_detailedStatus;
233
234 Aws::Utils::DateTime m_createdTime{};
235
236 Aws::Utils::DateTime m_lastExecutionDate{};
237
238 Aws::String m_resourceCountByStatus;
239
240 AlarmConfiguration m_alarmConfiguration;
241
242 Aws::Vector<AlarmStateInformation> m_triggeredAlarms;
243 bool m_associationIdHasBeenSet = false;
244 bool m_associationVersionHasBeenSet = false;
245 bool m_executionIdHasBeenSet = false;
246 bool m_statusHasBeenSet = false;
247 bool m_detailedStatusHasBeenSet = false;
248 bool m_createdTimeHasBeenSet = false;
249 bool m_lastExecutionDateHasBeenSet = false;
250 bool m_resourceCountByStatusHasBeenSet = false;
251 bool m_alarmConfigurationHasBeenSet = false;
252 bool m_triggeredAlarmsHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace SSM
257} // namespace Aws
void SetAssociationId(AssociationIdT &&value)
AssociationExecution & WithAssociationId(AssociationIdT &&value)
void SetAssociationVersion(AssociationVersionT &&value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
AssociationExecution & WithAssociationVersion(AssociationVersionT &&value)
AssociationExecution & WithDetailedStatus(DetailedStatusT &&value)
void SetLastExecutionDate(LastExecutionDateT &&value)
const AlarmConfiguration & GetAlarmConfiguration() const
AssociationExecution & WithAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::String & GetResourceCountByStatus() const
void SetTriggeredAlarms(TriggeredAlarmsT &&value)
const Aws::Utils::DateTime & GetLastExecutionDate() const
AssociationExecution & WithExecutionId(ExecutionIdT &&value)
AssociationExecution & WithLastExecutionDate(LastExecutionDateT &&value)
AWS_SSM_API AssociationExecution(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDetailedStatus() const
AssociationExecution & WithStatus(StatusT &&value)
const Aws::String & GetAssociationVersion() const
void SetDetailedStatus(DetailedStatusT &&value)
void SetResourceCountByStatus(ResourceCountByStatusT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AssociationExecution & WithTriggeredAlarms(TriggeredAlarmsT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
void SetExecutionId(ExecutionIdT &&value)
AssociationExecution & WithResourceCountByStatus(ResourceCountByStatusT &&value)
AWS_SSM_API AssociationExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociationExecution & WithCreatedTime(CreatedTimeT &&value)
const Aws::String & GetExecutionId() const
AWS_SSM_API AssociationExecution()=default
AssociationExecution & AddTriggeredAlarms(TriggeredAlarmsT &&value)
const Aws::String & GetAssociationId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue