AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AssociationExecutionTarget.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/OutputSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
31 public:
32 AWS_SSM_API AssociationExecutionTarget() = default;
36
38
41 inline const Aws::String& GetAssociationId() const { return m_associationId; }
42 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
43 template <typename AssociationIdT = Aws::String>
44 void SetAssociationId(AssociationIdT&& value) {
45 m_associationIdHasBeenSet = true;
46 m_associationId = std::forward<AssociationIdT>(value);
47 }
48 template <typename AssociationIdT = Aws::String>
50 SetAssociationId(std::forward<AssociationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAssociationVersion() const { return m_associationVersion; }
60 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
61 template <typename AssociationVersionT = Aws::String>
62 void SetAssociationVersion(AssociationVersionT&& value) {
63 m_associationVersionHasBeenSet = true;
64 m_associationVersion = std::forward<AssociationVersionT>(value);
65 }
66 template <typename AssociationVersionT = Aws::String>
67 AssociationExecutionTarget& WithAssociationVersion(AssociationVersionT&& value) {
68 SetAssociationVersion(std::forward<AssociationVersionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetExecutionId() const { return m_executionId; }
78 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
79 template <typename ExecutionIdT = Aws::String>
80 void SetExecutionId(ExecutionIdT&& value) {
81 m_executionIdHasBeenSet = true;
82 m_executionId = std::forward<ExecutionIdT>(value);
83 }
84 template <typename ExecutionIdT = Aws::String>
86 SetExecutionId(std::forward<ExecutionIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetResourceId() const { return m_resourceId; }
97 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
98 template <typename ResourceIdT = Aws::String>
99 void SetResourceId(ResourceIdT&& value) {
100 m_resourceIdHasBeenSet = true;
101 m_resourceId = std::forward<ResourceIdT>(value);
102 }
103 template <typename ResourceIdT = Aws::String>
105 SetResourceId(std::forward<ResourceIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetResourceType() const { return m_resourceType; }
115 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
116 template <typename ResourceTypeT = Aws::String>
117 void SetResourceType(ResourceTypeT&& value) {
118 m_resourceTypeHasBeenSet = true;
119 m_resourceType = std::forward<ResourceTypeT>(value);
120 }
121 template <typename ResourceTypeT = Aws::String>
123 SetResourceType(std::forward<ResourceTypeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 template <typename StatusT = Aws::String>
135 void SetStatus(StatusT&& value) {
136 m_statusHasBeenSet = true;
137 m_status = std::forward<StatusT>(value);
138 }
139 template <typename StatusT = Aws::String>
141 SetStatus(std::forward<StatusT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetDetailedStatus() const { return m_detailedStatus; }
151 inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
152 template <typename DetailedStatusT = Aws::String>
153 void SetDetailedStatus(DetailedStatusT&& value) {
154 m_detailedStatusHasBeenSet = true;
155 m_detailedStatus = std::forward<DetailedStatusT>(value);
156 }
157 template <typename DetailedStatusT = Aws::String>
159 SetDetailedStatus(std::forward<DetailedStatusT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
169 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
170 template <typename LastExecutionDateT = Aws::Utils::DateTime>
171 void SetLastExecutionDate(LastExecutionDateT&& value) {
172 m_lastExecutionDateHasBeenSet = true;
173 m_lastExecutionDate = std::forward<LastExecutionDateT>(value);
174 }
175 template <typename LastExecutionDateT = Aws::Utils::DateTime>
177 SetLastExecutionDate(std::forward<LastExecutionDateT>(value));
178 return *this;
179 }
181
183
186 inline const OutputSource& GetOutputSource() const { return m_outputSource; }
187 inline bool OutputSourceHasBeenSet() const { return m_outputSourceHasBeenSet; }
188 template <typename OutputSourceT = OutputSource>
189 void SetOutputSource(OutputSourceT&& value) {
190 m_outputSourceHasBeenSet = true;
191 m_outputSource = std::forward<OutputSourceT>(value);
192 }
193 template <typename OutputSourceT = OutputSource>
195 SetOutputSource(std::forward<OutputSourceT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_associationId;
201
202 Aws::String m_associationVersion;
203
204 Aws::String m_executionId;
205
206 Aws::String m_resourceId;
207
208 Aws::String m_resourceType;
209
210 Aws::String m_status;
211
212 Aws::String m_detailedStatus;
213
214 Aws::Utils::DateTime m_lastExecutionDate{};
215
216 OutputSource m_outputSource;
217 bool m_associationIdHasBeenSet = false;
218 bool m_associationVersionHasBeenSet = false;
219 bool m_executionIdHasBeenSet = false;
220 bool m_resourceIdHasBeenSet = false;
221 bool m_resourceTypeHasBeenSet = false;
222 bool m_statusHasBeenSet = false;
223 bool m_detailedStatusHasBeenSet = false;
224 bool m_lastExecutionDateHasBeenSet = false;
225 bool m_outputSourceHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace SSM
230} // namespace Aws
AssociationExecutionTarget & WithDetailedStatus(DetailedStatusT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AssociationExecutionTarget & WithStatus(StatusT &&value)
AssociationExecutionTarget & WithAssociationId(AssociationIdT &&value)
AWS_SSM_API AssociationExecutionTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastExecutionDate() const
AssociationExecutionTarget & WithAssociationVersion(AssociationVersionT &&value)
AssociationExecutionTarget & WithOutputSource(OutputSourceT &&value)
AssociationExecutionTarget & WithLastExecutionDate(LastExecutionDateT &&value)
void SetAssociationVersion(AssociationVersionT &&value)
AssociationExecutionTarget & WithResourceId(ResourceIdT &&value)
AssociationExecutionTarget & WithResourceType(ResourceTypeT &&value)
AssociationExecutionTarget & WithExecutionId(ExecutionIdT &&value)
AWS_SSM_API AssociationExecutionTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API AssociationExecutionTarget()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue