AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Operation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm-sap/SsmSap_EXPORTS.h>
11#include <aws/ssm-sap/model/OperationStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SsmSap {
23namespace Model {
24
31class Operation {
32 public:
33 AWS_SSMSAP_API Operation() = default;
34 AWS_SSMSAP_API Operation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 Operation& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template <typename TypeT = Aws::String>
63 void SetType(TypeT&& value) {
64 m_typeHasBeenSet = true;
65 m_type = std::forward<TypeT>(value);
66 }
67 template <typename TypeT = Aws::String>
68 Operation& WithType(TypeT&& value) {
69 SetType(std::forward<TypeT>(value));
70 return *this;
71 }
73
75
78 inline OperationStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(OperationStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
95 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
96 template <typename StatusMessageT = Aws::String>
97 void SetStatusMessage(StatusMessageT&& value) {
98 m_statusMessageHasBeenSet = true;
99 m_statusMessage = std::forward<StatusMessageT>(value);
100 }
101 template <typename StatusMessageT = Aws::String>
102 Operation& WithStatusMessage(StatusMessageT&& value) {
103 SetStatusMessage(std::forward<StatusMessageT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
113 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
114 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
115 void SetProperties(PropertiesT&& value) {
116 m_propertiesHasBeenSet = true;
117 m_properties = std::forward<PropertiesT>(value);
118 }
119 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
120 Operation& WithProperties(PropertiesT&& value) {
121 SetProperties(std::forward<PropertiesT>(value));
122 return *this;
123 }
124 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
125 Operation& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
126 m_propertiesHasBeenSet = true;
127 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetResourceType() const { return m_resourceType; }
137 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
138 template <typename ResourceTypeT = Aws::String>
139 void SetResourceType(ResourceTypeT&& value) {
140 m_resourceTypeHasBeenSet = true;
141 m_resourceType = std::forward<ResourceTypeT>(value);
142 }
143 template <typename ResourceTypeT = Aws::String>
144 Operation& WithResourceType(ResourceTypeT&& value) {
145 SetResourceType(std::forward<ResourceTypeT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetResourceId() const { return m_resourceId; }
155 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
156 template <typename ResourceIdT = Aws::String>
157 void SetResourceId(ResourceIdT&& value) {
158 m_resourceIdHasBeenSet = true;
159 m_resourceId = std::forward<ResourceIdT>(value);
160 }
161 template <typename ResourceIdT = Aws::String>
162 Operation& WithResourceId(ResourceIdT&& value) {
163 SetResourceId(std::forward<ResourceIdT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
173 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
174 template <typename ResourceArnT = Aws::String>
175 void SetResourceArn(ResourceArnT&& value) {
176 m_resourceArnHasBeenSet = true;
177 m_resourceArn = std::forward<ResourceArnT>(value);
178 }
179 template <typename ResourceArnT = Aws::String>
180 Operation& WithResourceArn(ResourceArnT&& value) {
181 SetResourceArn(std::forward<ResourceArnT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
191 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
192 template <typename StartTimeT = Aws::Utils::DateTime>
193 void SetStartTime(StartTimeT&& value) {
194 m_startTimeHasBeenSet = true;
195 m_startTime = std::forward<StartTimeT>(value);
196 }
197 template <typename StartTimeT = Aws::Utils::DateTime>
198 Operation& WithStartTime(StartTimeT&& value) {
199 SetStartTime(std::forward<StartTimeT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
209 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
210 template <typename EndTimeT = Aws::Utils::DateTime>
211 void SetEndTime(EndTimeT&& value) {
212 m_endTimeHasBeenSet = true;
213 m_endTime = std::forward<EndTimeT>(value);
214 }
215 template <typename EndTimeT = Aws::Utils::DateTime>
216 Operation& WithEndTime(EndTimeT&& value) {
217 SetEndTime(std::forward<EndTimeT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
227 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
228 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
229 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
230 m_lastUpdatedTimeHasBeenSet = true;
231 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
232 }
233 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
234 Operation& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
235 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_id;
241
242 Aws::String m_type;
243
245
246 Aws::String m_statusMessage;
247
249
250 Aws::String m_resourceType;
251
252 Aws::String m_resourceId;
253
254 Aws::String m_resourceArn;
255
256 Aws::Utils::DateTime m_startTime{};
257
258 Aws::Utils::DateTime m_endTime{};
259
260 Aws::Utils::DateTime m_lastUpdatedTime{};
261 bool m_idHasBeenSet = false;
262 bool m_typeHasBeenSet = false;
263 bool m_statusHasBeenSet = false;
264 bool m_statusMessageHasBeenSet = false;
265 bool m_propertiesHasBeenSet = false;
266 bool m_resourceTypeHasBeenSet = false;
267 bool m_resourceIdHasBeenSet = false;
268 bool m_resourceArnHasBeenSet = false;
269 bool m_startTimeHasBeenSet = false;
270 bool m_endTimeHasBeenSet = false;
271 bool m_lastUpdatedTimeHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace SsmSap
276} // namespace Aws
const Aws::String & GetResourceArn() const
Definition Operation.h:172
void SetResourceArn(ResourceArnT &&value)
Definition Operation.h:175
bool ResourceIdHasBeenSet() const
Definition Operation.h:155
bool PropertiesHasBeenSet() const
Definition Operation.h:113
bool ResourceTypeHasBeenSet() const
Definition Operation.h:137
void SetStartTime(StartTimeT &&value)
Definition Operation.h:193
const Aws::Utils::DateTime & GetEndTime() const
Definition Operation.h:208
void SetResourceType(ResourceTypeT &&value)
Definition Operation.h:139
Operation & WithId(IdT &&value)
Definition Operation.h:50
const Aws::Utils::DateTime & GetStartTime() const
Definition Operation.h:190
const Aws::String & GetStatusMessage() const
Definition Operation.h:94
OperationStatus GetStatus() const
Definition Operation.h:78
Operation & WithResourceType(ResourceTypeT &&value)
Definition Operation.h:144
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition Operation.h:112
Operation & WithType(TypeT &&value)
Definition Operation.h:68
bool StatusMessageHasBeenSet() const
Definition Operation.h:95
const Aws::String & GetId() const
Definition Operation.h:42
Operation & WithStartTime(StartTimeT &&value)
Definition Operation.h:198
void SetType(TypeT &&value)
Definition Operation.h:63
Operation & WithEndTime(EndTimeT &&value)
Definition Operation.h:216
AWS_SSMSAP_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceId() const
Definition Operation.h:154
void SetId(IdT &&value)
Definition Operation.h:45
void SetProperties(PropertiesT &&value)
Definition Operation.h:115
void SetStatusMessage(StatusMessageT &&value)
Definition Operation.h:97
Operation & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Operation.h:234
Operation & WithResourceId(ResourceIdT &&value)
Definition Operation.h:162
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Operation.h:226
Operation & WithProperties(PropertiesT &&value)
Definition Operation.h:120
Operation & WithStatusMessage(StatusMessageT &&value)
Definition Operation.h:102
void SetStatus(OperationStatus value)
Definition Operation.h:80
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
Operation & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
Definition Operation.h:125
AWS_SSMSAP_API Operation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceType() const
Definition Operation.h:136
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Operation.h:229
const Aws::String & GetType() const
Definition Operation.h:60
Operation & WithStatus(OperationStatus value)
Definition Operation.h:84
void SetEndTime(EndTimeT &&value)
Definition Operation.h:211
bool ResourceArnHasBeenSet() const
Definition Operation.h:173
void SetResourceId(ResourceIdT &&value)
Definition Operation.h:157
AWS_SSMSAP_API Operation()=default
bool LastUpdatedTimeHasBeenSet() const
Definition Operation.h:227
Operation & WithResourceArn(ResourceArnT &&value)
Definition Operation.h:180
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue