AWS SDK for C++  1.9.15
AWS SDK for C++
Operation.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace Lightsail
27 {
28 namespace Model
29 {
30 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 
58  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 
68  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 
73  inline Operation& WithId(const Aws::String& value) { SetId(value); return *this;}
74 
78  inline Operation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
79 
83  inline Operation& WithId(const char* value) { SetId(value); return *this;}
84 
85 
89  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
90 
94  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
95 
99  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
100 
104  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
105 
109  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
110 
114  inline Operation& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
115 
119  inline Operation& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
120 
124  inline Operation& WithResourceName(const char* value) { SetResourceName(value); return *this;}
125 
126 
130  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
131 
135  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
136 
140  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
141 
145  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
146 
150  inline Operation& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
151 
155  inline Operation& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
156 
157 
162  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
163 
168  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
169 
174  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
175 
180  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
181 
186  inline Operation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
187 
192  inline Operation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
193 
194 
198  inline const ResourceLocation& GetLocation() const{ return m_location; }
199 
203  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
204 
208  inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
209 
213  inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
214 
218  inline Operation& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
219 
223  inline Operation& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
224 
225 
229  inline bool GetIsTerminal() const{ return m_isTerminal; }
230 
234  inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
235 
239  inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
240 
244  inline Operation& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
245 
246 
250  inline const Aws::String& GetOperationDetails() const{ return m_operationDetails; }
251 
255  inline bool OperationDetailsHasBeenSet() const { return m_operationDetailsHasBeenSet; }
256 
260  inline void SetOperationDetails(const Aws::String& value) { m_operationDetailsHasBeenSet = true; m_operationDetails = value; }
261 
265  inline void SetOperationDetails(Aws::String&& value) { m_operationDetailsHasBeenSet = true; m_operationDetails = std::move(value); }
266 
270  inline void SetOperationDetails(const char* value) { m_operationDetailsHasBeenSet = true; m_operationDetails.assign(value); }
271 
275  inline Operation& WithOperationDetails(const Aws::String& value) { SetOperationDetails(value); return *this;}
276 
280  inline Operation& WithOperationDetails(Aws::String&& value) { SetOperationDetails(std::move(value)); return *this;}
281 
285  inline Operation& WithOperationDetails(const char* value) { SetOperationDetails(value); return *this;}
286 
287 
291  inline const OperationType& GetOperationType() const{ return m_operationType; }
292 
296  inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
297 
301  inline void SetOperationType(const OperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
302 
306  inline void SetOperationType(OperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); }
307 
311  inline Operation& WithOperationType(const OperationType& value) { SetOperationType(value); return *this;}
312 
316  inline Operation& WithOperationType(OperationType&& value) { SetOperationType(std::move(value)); return *this;}
317 
318 
322  inline const OperationStatus& GetStatus() const{ return m_status; }
323 
327  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
328 
332  inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
333 
337  inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
338 
342  inline Operation& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;}
343 
347  inline Operation& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;}
348 
349 
354  inline const Aws::Utils::DateTime& GetStatusChangedAt() const{ return m_statusChangedAt; }
355 
360  inline bool StatusChangedAtHasBeenSet() const { return m_statusChangedAtHasBeenSet; }
361 
366  inline void SetStatusChangedAt(const Aws::Utils::DateTime& value) { m_statusChangedAtHasBeenSet = true; m_statusChangedAt = value; }
367 
372  inline void SetStatusChangedAt(Aws::Utils::DateTime&& value) { m_statusChangedAtHasBeenSet = true; m_statusChangedAt = std::move(value); }
373 
378  inline Operation& WithStatusChangedAt(const Aws::Utils::DateTime& value) { SetStatusChangedAt(value); return *this;}
379 
384  inline Operation& WithStatusChangedAt(Aws::Utils::DateTime&& value) { SetStatusChangedAt(std::move(value)); return *this;}
385 
386 
390  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
391 
395  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
396 
400  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
401 
405  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
406 
410  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
411 
415  inline Operation& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
416 
420  inline Operation& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
421 
425  inline Operation& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
426 
427 
431  inline const Aws::String& GetErrorDetails() const{ return m_errorDetails; }
432 
436  inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
437 
441  inline void SetErrorDetails(const Aws::String& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
442 
446  inline void SetErrorDetails(Aws::String&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
447 
451  inline void SetErrorDetails(const char* value) { m_errorDetailsHasBeenSet = true; m_errorDetails.assign(value); }
452 
456  inline Operation& WithErrorDetails(const Aws::String& value) { SetErrorDetails(value); return *this;}
457 
461  inline Operation& WithErrorDetails(Aws::String&& value) { SetErrorDetails(std::move(value)); return *this;}
462 
466  inline Operation& WithErrorDetails(const char* value) { SetErrorDetails(value); return *this;}
467 
468  private:
469 
470  Aws::String m_id;
471  bool m_idHasBeenSet;
472 
473  Aws::String m_resourceName;
474  bool m_resourceNameHasBeenSet;
475 
476  ResourceType m_resourceType;
477  bool m_resourceTypeHasBeenSet;
478 
479  Aws::Utils::DateTime m_createdAt;
480  bool m_createdAtHasBeenSet;
481 
482  ResourceLocation m_location;
483  bool m_locationHasBeenSet;
484 
485  bool m_isTerminal;
486  bool m_isTerminalHasBeenSet;
487 
488  Aws::String m_operationDetails;
489  bool m_operationDetailsHasBeenSet;
490 
491  OperationType m_operationType;
492  bool m_operationTypeHasBeenSet;
493 
494  OperationStatus m_status;
495  bool m_statusHasBeenSet;
496 
497  Aws::Utils::DateTime m_statusChangedAt;
498  bool m_statusChangedAtHasBeenSet;
499 
500  Aws::String m_errorCode;
501  bool m_errorCodeHasBeenSet;
502 
503  Aws::String m_errorDetails;
504  bool m_errorDetailsHasBeenSet;
505  };
506 
507 } // namespace Model
508 } // namespace Lightsail
509 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::Operation::Operation
Operation(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Operation::SetErrorDetails
void SetErrorDetails(const Aws::String &value)
Definition: Operation.h:441
Aws::Lightsail::Model::Operation::WithErrorDetails
Operation & WithErrorDetails(const char *value)
Definition: Operation.h:466
Aws::Lightsail::Model::Operation::GetId
const Aws::String & GetId() const
Definition: Operation.h:48
ResourceType.h
Aws::Lightsail::Model::Operation::WithStatus
Operation & WithStatus(OperationStatus &&value)
Definition: Operation.h:347
Aws::Lightsail::Model::Operation::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: Operation.h:145
Aws::Lightsail::Model::Operation::WithId
Operation & WithId(const char *value)
Definition: Operation.h:83
Aws::Lightsail::Model::Operation::GetOperationDetails
const Aws::String & GetOperationDetails() const
Definition: Operation.h:250
Aws::Lightsail::Model::Operation::WithErrorCode
Operation & WithErrorCode(const Aws::String &value)
Definition: Operation.h:415
Aws::Lightsail::Model::Operation::WithCreatedAt
Operation & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: Operation.h:192
Aws::Lightsail::Model::Operation::SetId
void SetId(Aws::String &&value)
Definition: Operation.h:63
Aws::Lightsail::Model::Operation::ErrorDetailsHasBeenSet
bool ErrorDetailsHasBeenSet() const
Definition: Operation.h:436
DateTime.h
Aws::Lightsail::Model::Operation::GetResourceName
const Aws::String & GetResourceName() const
Definition: Operation.h:89
Aws::Lightsail::Model::Operation::OperationTypeHasBeenSet
bool OperationTypeHasBeenSet() const
Definition: Operation.h:296
Aws::Lightsail::Model::Operation
Definition: Operation.h:37
Aws::Lightsail::Model::Operation::WithResourceName
Operation & WithResourceName(const Aws::String &value)
Definition: Operation.h:114
Aws::Lightsail::Model::Operation::WithOperationDetails
Operation & WithOperationDetails(const char *value)
Definition: Operation.h:285
Aws::Lightsail::Model::Operation::WithStatusChangedAt
Operation & WithStatusChangedAt(Aws::Utils::DateTime &&value)
Definition: Operation.h:384
Aws::Lightsail::Model::Operation::operator=
Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Operation::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: Operation.h:405
Aws::Lightsail::Model::Operation::WithOperationDetails
Operation & WithOperationDetails(Aws::String &&value)
Definition: Operation.h:280
Aws::Lightsail::Model::Operation::GetErrorDetails
const Aws::String & GetErrorDetails() const
Definition: Operation.h:431
Aws::Lightsail::Model::Operation::SetOperationDetails
void SetOperationDetails(Aws::String &&value)
Definition: Operation.h:265
Aws::Lightsail::Model::OperationStatus
OperationStatus
Definition: OperationStatus.h:17
Aws::Lightsail::Model::Operation::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: Operation.h:140
Aws::Lightsail::Model::Operation::WithIsTerminal
Operation & WithIsTerminal(bool value)
Definition: Operation.h:244
Aws::Lightsail::Model::Operation::WithResourceName
Operation & WithResourceName(Aws::String &&value)
Definition: Operation.h:119
Aws::Lightsail::Model::Operation::SetStatusChangedAt
void SetStatusChangedAt(const Aws::Utils::DateTime &value)
Definition: Operation.h:366
Aws::Lightsail::Model::Operation::Operation
Operation()
Aws::Lightsail::Model::Operation::StatusChangedAtHasBeenSet
bool StatusChangedAtHasBeenSet() const
Definition: Operation.h:360
Aws::Lightsail::Model::Operation::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: Operation.h:180
OperationStatus.h
Aws::Lightsail::Model::Operation::GetOperationType
const OperationType & GetOperationType() const
Definition: Operation.h:291
Aws::Lightsail::Model::Operation::WithOperationType
Operation & WithOperationType(OperationType &&value)
Definition: Operation.h:316
Aws::Lightsail::Model::Operation::WithOperationType
Operation & WithOperationType(const OperationType &value)
Definition: Operation.h:311
Aws::Lightsail::Model::Operation::WithErrorCode
Operation & WithErrorCode(Aws::String &&value)
Definition: Operation.h:420
Aws::Lightsail::Model::Operation::IsTerminalHasBeenSet
bool IsTerminalHasBeenSet() const
Definition: Operation.h:234
Aws::Lightsail::Model::Operation::GetLocation
const ResourceLocation & GetLocation() const
Definition: Operation.h:198
Aws::Lightsail::Model::Operation::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::Operation::SetResourceName
void SetResourceName(const char *value)
Definition: Operation.h:109
Aws::Lightsail::Model::Operation::WithErrorDetails
Operation & WithErrorDetails(Aws::String &&value)
Definition: Operation.h:461
Aws::Lightsail::Model::Operation::SetErrorDetails
void SetErrorDetails(Aws::String &&value)
Definition: Operation.h:446
Aws::Lightsail::Model::Operation::WithOperationDetails
Operation & WithOperationDetails(const Aws::String &value)
Definition: Operation.h:275
Aws::Lightsail::Model::Operation::SetOperationDetails
void SetOperationDetails(const char *value)
Definition: Operation.h:270
Aws::Lightsail::Model::Operation::WithErrorDetails
Operation & WithErrorDetails(const Aws::String &value)
Definition: Operation.h:456
Aws::Lightsail::Model::Operation::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: Operation.h:203
Aws::Lightsail::Model::Operation::SetOperationType
void SetOperationType(OperationType &&value)
Definition: Operation.h:306
Aws::Lightsail::Model::ResourceLocation
Definition: ResourceLocation.h:33
Aws::Lightsail::Model::Operation::WithId
Operation & WithId(const Aws::String &value)
Definition: Operation.h:73
Aws::Lightsail::Model::Operation::SetId
void SetId(const char *value)
Definition: Operation.h:68
Aws::Lightsail::Model::Operation::GetStatusChangedAt
const Aws::Utils::DateTime & GetStatusChangedAt() const
Definition: Operation.h:354
Aws::Lightsail::Model::Operation::WithResourceType
Operation & WithResourceType(ResourceType &&value)
Definition: Operation.h:155
Aws::Lightsail::Model::Operation::WithResourceType
Operation & WithResourceType(const ResourceType &value)
Definition: Operation.h:150
Aws::Lightsail::Model::Operation::SetLocation
void SetLocation(const ResourceLocation &value)
Definition: Operation.h:208
Aws::Lightsail::Model::Operation::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: Operation.h:135
Aws::Lightsail::Model::Operation::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: Operation.h:395
Aws::Lightsail::Model::Operation::WithStatus
Operation & WithStatus(const OperationStatus &value)
Definition: Operation.h:342
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::Operation::SetErrorCode
void SetErrorCode(const char *value)
Definition: Operation.h:410
Aws::Lightsail::Model::Operation::GetResourceType
const ResourceType & GetResourceType() const
Definition: Operation.h:130
Aws::Lightsail::Model::Operation::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Operation.h:327
Aws::Lightsail::Model::Operation::WithErrorCode
Operation & WithErrorCode(const char *value)
Definition: Operation.h:425
Aws::Lightsail::Model::Operation::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: Operation.h:168
Aws::Lightsail::Model::Operation::SetId
void SetId(const Aws::String &value)
Definition: Operation.h:58
Aws::Lightsail::Model::Operation::SetLocation
void SetLocation(ResourceLocation &&value)
Definition: Operation.h:213
Lightsail_EXPORTS.h
Aws::Lightsail::Model::Operation::WithLocation
Operation & WithLocation(ResourceLocation &&value)
Definition: Operation.h:223
Aws::Lightsail::Model::Operation::SetStatus
void SetStatus(const OperationStatus &value)
Definition: Operation.h:332
Aws::Lightsail::Model::Operation::GetStatus
const OperationStatus & GetStatus() const
Definition: Operation.h:322
Aws::Lightsail::Model::Operation::WithId
Operation & WithId(Aws::String &&value)
Definition: Operation.h:78
Aws::Lightsail::Model::Operation::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: Operation.h:94
Aws::Lightsail::Model::Operation::WithResourceName
Operation & WithResourceName(const char *value)
Definition: Operation.h:124
Aws::Lightsail::Model::Operation::SetIsTerminal
void SetIsTerminal(bool value)
Definition: Operation.h:239
Aws::Lightsail::Model::Operation::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: Operation.h:104
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::Lightsail::Model::OperationType
OperationType
Definition: OperationType.h:17
ResourceLocation.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::Operation::SetOperationType
void SetOperationType(const OperationType &value)
Definition: Operation.h:301
OperationType.h
Aws::Lightsail::Model::Operation::OperationDetailsHasBeenSet
bool OperationDetailsHasBeenSet() const
Definition: Operation.h:255
Aws::Lightsail::Model::Operation::GetIsTerminal
bool GetIsTerminal() const
Definition: Operation.h:229
Aws::Lightsail::Model::Operation::SetErrorDetails
void SetErrorDetails(const char *value)
Definition: Operation.h:451
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::Operation::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Operation.h:53
Aws::Lightsail::Model::Operation::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: Operation.h:99
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::Operation::SetStatusChangedAt
void SetStatusChangedAt(Aws::Utils::DateTime &&value)
Definition: Operation.h:372
Aws::Lightsail::Model::Operation::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: Operation.h:174
Aws::Lightsail::Model::Operation::WithCreatedAt
Operation & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: Operation.h:186
Aws::Lightsail::Model::Operation::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: Operation.h:400
Aws::Lightsail::Model::Operation::WithStatusChangedAt
Operation & WithStatusChangedAt(const Aws::Utils::DateTime &value)
Definition: Operation.h:378
Aws::Lightsail::Model::Operation::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: Operation.h:390
Aws::Lightsail::Model::Operation::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: Operation.h:162
Aws::Lightsail::Model::Operation::SetOperationDetails
void SetOperationDetails(const Aws::String &value)
Definition: Operation.h:260
Aws::Lightsail::Model::Operation::WithLocation
Operation & WithLocation(const ResourceLocation &value)
Definition: Operation.h:218
Aws::Lightsail::Model::Operation::SetStatus
void SetStatus(OperationStatus &&value)
Definition: Operation.h:337