AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociationExecution.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm/model/AlarmConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/AlarmStateInformation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SSM_API AssociationExecution();
43
44
46
49 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
50 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
51 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
52 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
53 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
54 inline AssociationExecution& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
55 inline AssociationExecution& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
56 inline AssociationExecution& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
58
60
63 inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
64 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
65 inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
66 inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
67 inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
69 inline AssociationExecution& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
70 inline AssociationExecution& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
72
74
77 inline const Aws::String& GetExecutionId() const{ return m_executionId; }
78 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
79 inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; }
80 inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); }
81 inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); }
82 inline AssociationExecution& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;}
83 inline AssociationExecution& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;}
84 inline AssociationExecution& WithExecutionId(const char* value) { SetExecutionId(value); return *this;}
86
88
91 inline const Aws::String& GetStatus() const{ return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
94 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
95 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
96 inline AssociationExecution& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
97 inline AssociationExecution& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
98 inline AssociationExecution& WithStatus(const char* value) { SetStatus(value); return *this;}
100
102
105 inline const Aws::String& GetDetailedStatus() const{ return m_detailedStatus; }
106 inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
107 inline void SetDetailedStatus(const Aws::String& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = value; }
108 inline void SetDetailedStatus(Aws::String&& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = std::move(value); }
109 inline void SetDetailedStatus(const char* value) { m_detailedStatusHasBeenSet = true; m_detailedStatus.assign(value); }
110 inline AssociationExecution& WithDetailedStatus(const Aws::String& value) { SetDetailedStatus(value); return *this;}
111 inline AssociationExecution& WithDetailedStatus(Aws::String&& value) { SetDetailedStatus(std::move(value)); return *this;}
112 inline AssociationExecution& WithDetailedStatus(const char* value) { SetDetailedStatus(value); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
120 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
121 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
122 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
123 inline AssociationExecution& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
124 inline AssociationExecution& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetLastExecutionDate() const{ return m_lastExecutionDate; }
132 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
133 inline void SetLastExecutionDate(const Aws::Utils::DateTime& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = value; }
134 inline void SetLastExecutionDate(Aws::Utils::DateTime&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::move(value); }
136 inline AssociationExecution& WithLastExecutionDate(Aws::Utils::DateTime&& value) { SetLastExecutionDate(std::move(value)); return *this;}
138
140
144 inline const Aws::String& GetResourceCountByStatus() const{ return m_resourceCountByStatus; }
145 inline bool ResourceCountByStatusHasBeenSet() const { return m_resourceCountByStatusHasBeenSet; }
146 inline void SetResourceCountByStatus(const Aws::String& value) { m_resourceCountByStatusHasBeenSet = true; m_resourceCountByStatus = value; }
147 inline void SetResourceCountByStatus(Aws::String&& value) { m_resourceCountByStatusHasBeenSet = true; m_resourceCountByStatus = std::move(value); }
148 inline void SetResourceCountByStatus(const char* value) { m_resourceCountByStatusHasBeenSet = true; m_resourceCountByStatus.assign(value); }
150 inline AssociationExecution& WithResourceCountByStatus(Aws::String&& value) { SetResourceCountByStatus(std::move(value)); return *this;}
151 inline AssociationExecution& WithResourceCountByStatus(const char* value) { SetResourceCountByStatus(value); return *this;}
153
155
156 inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; }
157 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
158 inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = value; }
159 inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::move(value); }
161 inline AssociationExecution& WithAlarmConfiguration(AlarmConfiguration&& value) { SetAlarmConfiguration(std::move(value)); return *this;}
163
165
168 inline const Aws::Vector<AlarmStateInformation>& GetTriggeredAlarms() const{ return m_triggeredAlarms; }
169 inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; }
170 inline void SetTriggeredAlarms(const Aws::Vector<AlarmStateInformation>& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms = value; }
171 inline void SetTriggeredAlarms(Aws::Vector<AlarmStateInformation>&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms = std::move(value); }
174 inline AssociationExecution& AddTriggeredAlarms(const AlarmStateInformation& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms.push_back(value); return *this; }
175 inline AssociationExecution& AddTriggeredAlarms(AlarmStateInformation&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms.push_back(std::move(value)); return *this; }
177 private:
178
179 Aws::String m_associationId;
180 bool m_associationIdHasBeenSet = false;
181
182 Aws::String m_associationVersion;
183 bool m_associationVersionHasBeenSet = false;
184
185 Aws::String m_executionId;
186 bool m_executionIdHasBeenSet = false;
187
188 Aws::String m_status;
189 bool m_statusHasBeenSet = false;
190
191 Aws::String m_detailedStatus;
192 bool m_detailedStatusHasBeenSet = false;
193
194 Aws::Utils::DateTime m_createdTime;
195 bool m_createdTimeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_lastExecutionDate;
198 bool m_lastExecutionDateHasBeenSet = false;
199
200 Aws::String m_resourceCountByStatus;
201 bool m_resourceCountByStatusHasBeenSet = false;
202
203 AlarmConfiguration m_alarmConfiguration;
204 bool m_alarmConfigurationHasBeenSet = false;
205
206 Aws::Vector<AlarmStateInformation> m_triggeredAlarms;
207 bool m_triggeredAlarmsHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace SSM
212} // namespace Aws
void SetTriggeredAlarms(Aws::Vector< AlarmStateInformation > &&value)
AssociationExecution & WithAssociationId(const Aws::String &value)
AssociationExecution & WithCreatedTime(Aws::Utils::DateTime &&value)
AssociationExecution & WithStatus(Aws::String &&value)
void SetAssociationVersion(const Aws::String &value)
AssociationExecution & WithResourceCountByStatus(const char *value)
AssociationExecution & WithAssociationVersion(const char *value)
AssociationExecution & WithExecutionId(const char *value)
void SetLastExecutionDate(Aws::Utils::DateTime &&value)
const AlarmConfiguration & GetAlarmConfiguration() const
void SetAlarmConfiguration(AlarmConfiguration &&value)
const Aws::String & GetResourceCountByStatus() const
AssociationExecution & WithExecutionId(Aws::String &&value)
AssociationExecution & WithAssociationId(Aws::String &&value)
const Aws::Utils::DateTime & GetLastExecutionDate() const
AssociationExecution & WithAlarmConfiguration(const AlarmConfiguration &value)
void SetDetailedStatus(const Aws::String &value)
AssociationExecution & WithLastExecutionDate(const Aws::Utils::DateTime &value)
AssociationExecution & WithDetailedStatus(const Aws::String &value)
AssociationExecution & WithCreatedTime(const Aws::Utils::DateTime &value)
AssociationExecution & WithAssociationVersion(const Aws::String &value)
AssociationExecution & WithStatus(const Aws::String &value)
AssociationExecution & WithStatus(const char *value)
AWS_SSM_API AssociationExecution(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDetailedStatus() const
const Aws::String & GetAssociationVersion() const
AssociationExecution & WithDetailedStatus(const char *value)
AssociationExecution & WithLastExecutionDate(Aws::Utils::DateTime &&value)
void SetExecutionId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedTime() const
void SetLastExecutionDate(const Aws::Utils::DateTime &value)
AssociationExecution & WithResourceCountByStatus(const Aws::String &value)
AssociationExecution & WithAssociationVersion(Aws::String &&value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
AssociationExecution & WithAlarmConfiguration(AlarmConfiguration &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceCountByStatus(Aws::String &&value)
void SetAssociationVersion(Aws::String &&value)
AssociationExecution & WithResourceCountByStatus(Aws::String &&value)
AssociationExecution & AddTriggeredAlarms(AlarmStateInformation &&value)
AssociationExecution & AddTriggeredAlarms(const AlarmStateInformation &value)
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
void SetAssociationId(const Aws::String &value)
AWS_SSM_API AssociationExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceCountByStatus(const Aws::String &value)
AssociationExecution & WithTriggeredAlarms(const Aws::Vector< AlarmStateInformation > &value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
void SetStatus(const Aws::String &value)
AssociationExecution & WithDetailedStatus(Aws::String &&value)
void SetAlarmConfiguration(const AlarmConfiguration &value)
AssociationExecution & WithAssociationId(const char *value)
AssociationExecution & WithExecutionId(const Aws::String &value)
const Aws::String & GetExecutionId() const
AssociationExecution & WithTriggeredAlarms(Aws::Vector< AlarmStateInformation > &&value)
void SetTriggeredAlarms(const Aws::Vector< AlarmStateInformation > &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