AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
43
44
46
49 inline const Aws::String& GetAssociationId() const { return m_associationId; }
50 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
51 template<typename AssociationIdT = Aws::String>
52 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
53 template<typename AssociationIdT = Aws::String>
54 AssociationExecution& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
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) { m_associationVersionHasBeenSet = true; m_associationVersion = std::forward<AssociationVersionT>(value); }
65 template<typename AssociationVersionT = Aws::String>
66 AssociationExecution& WithAssociationVersion(AssociationVersionT&& value) { SetAssociationVersion(std::forward<AssociationVersionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetExecutionId() const { return m_executionId; }
74 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
75 template<typename ExecutionIdT = Aws::String>
76 void SetExecutionId(ExecutionIdT&& value) { m_executionIdHasBeenSet = true; m_executionId = std::forward<ExecutionIdT>(value); }
77 template<typename ExecutionIdT = Aws::String>
78 AssociationExecution& WithExecutionId(ExecutionIdT&& value) { SetExecutionId(std::forward<ExecutionIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 template<typename StatusT = Aws::String>
88 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
89 template<typename StatusT = Aws::String>
90 AssociationExecution& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
92
94
97 inline const Aws::String& GetDetailedStatus() const { return m_detailedStatus; }
98 inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
99 template<typename DetailedStatusT = Aws::String>
100 void SetDetailedStatus(DetailedStatusT&& value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = std::forward<DetailedStatusT>(value); }
101 template<typename DetailedStatusT = Aws::String>
102 AssociationExecution& WithDetailedStatus(DetailedStatusT&& value) { SetDetailedStatus(std::forward<DetailedStatusT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
110 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
111 template<typename CreatedTimeT = Aws::Utils::DateTime>
112 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
113 template<typename CreatedTimeT = Aws::Utils::DateTime>
114 AssociationExecution& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
122 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
123 template<typename LastExecutionDateT = Aws::Utils::DateTime>
124 void SetLastExecutionDate(LastExecutionDateT&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::forward<LastExecutionDateT>(value); }
125 template<typename LastExecutionDateT = Aws::Utils::DateTime>
126 AssociationExecution& WithLastExecutionDate(LastExecutionDateT&& value) { SetLastExecutionDate(std::forward<LastExecutionDateT>(value)); return *this;}
128
130
134 inline const Aws::String& GetResourceCountByStatus() const { return m_resourceCountByStatus; }
135 inline bool ResourceCountByStatusHasBeenSet() const { return m_resourceCountByStatusHasBeenSet; }
136 template<typename ResourceCountByStatusT = Aws::String>
137 void SetResourceCountByStatus(ResourceCountByStatusT&& value) { m_resourceCountByStatusHasBeenSet = true; m_resourceCountByStatus = std::forward<ResourceCountByStatusT>(value); }
138 template<typename ResourceCountByStatusT = Aws::String>
139 AssociationExecution& WithResourceCountByStatus(ResourceCountByStatusT&& value) { SetResourceCountByStatus(std::forward<ResourceCountByStatusT>(value)); return *this;}
141
143
144 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
145 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
146 template<typename AlarmConfigurationT = AlarmConfiguration>
147 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
148 template<typename AlarmConfigurationT = AlarmConfiguration>
149 AssociationExecution& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
151
153
156 inline const Aws::Vector<AlarmStateInformation>& GetTriggeredAlarms() const { return m_triggeredAlarms; }
157 inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; }
158 template<typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
159 void SetTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value); }
160 template<typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
161 AssociationExecution& WithTriggeredAlarms(TriggeredAlarmsT&& value) { SetTriggeredAlarms(std::forward<TriggeredAlarmsT>(value)); return *this;}
162 template<typename TriggeredAlarmsT = AlarmStateInformation>
163 AssociationExecution& AddTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value)); return *this; }
165 private:
166
167 Aws::String m_associationId;
168 bool m_associationIdHasBeenSet = false;
169
170 Aws::String m_associationVersion;
171 bool m_associationVersionHasBeenSet = false;
172
173 Aws::String m_executionId;
174 bool m_executionIdHasBeenSet = false;
175
176 Aws::String m_status;
177 bool m_statusHasBeenSet = false;
178
179 Aws::String m_detailedStatus;
180 bool m_detailedStatusHasBeenSet = false;
181
182 Aws::Utils::DateTime m_createdTime{};
183 bool m_createdTimeHasBeenSet = false;
184
185 Aws::Utils::DateTime m_lastExecutionDate{};
186 bool m_lastExecutionDateHasBeenSet = false;
187
188 Aws::String m_resourceCountByStatus;
189 bool m_resourceCountByStatusHasBeenSet = false;
190
191 AlarmConfiguration m_alarmConfiguration;
192 bool m_alarmConfigurationHasBeenSet = false;
193
194 Aws::Vector<AlarmStateInformation> m_triggeredAlarms;
195 bool m_triggeredAlarmsHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace SSM
200} // 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