AWS SDK for C++  1.9.104
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 ServiceDiscovery
27 {
28 namespace Model
29 {
30 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
54  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 
59  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 
64  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 
69  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 
74  inline Operation& WithId(const Aws::String& value) { SetId(value); return *this;}
75 
79  inline Operation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 
84  inline Operation& WithId(const char* value) { SetId(value); return *this;}
85 
86 
90  inline const OperationType& GetType() const{ return m_type; }
91 
95  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 
100  inline void SetType(const OperationType& value) { m_typeHasBeenSet = true; m_type = value; }
101 
105  inline void SetType(OperationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
106 
110  inline Operation& WithType(const OperationType& value) { SetType(value); return *this;}
111 
115  inline Operation& WithType(OperationType&& value) { SetType(std::move(value)); return *this;}
116 
117 
126  inline const OperationStatus& GetStatus() const{ return m_status; }
127 
136  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 
146  inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
147 
156  inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
157 
166  inline Operation& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;}
167 
176  inline Operation& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;}
177 
178 
183  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
184 
189  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
190 
195  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
196 
201  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
202 
207  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
208 
213  inline Operation& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
214 
219  inline Operation& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
220 
225  inline Operation& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
226 
227 
239  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
240 
252  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
253 
265  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
266 
278  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
279 
291  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
292 
304  inline Operation& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
305 
317  inline Operation& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
318 
330  inline Operation& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
331 
332 
339  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
340 
347  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
348 
355  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
356 
363  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
364 
371  inline Operation& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
372 
379  inline Operation& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
380 
381 
389  inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
390 
398  inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
399 
407  inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
408 
416  inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
417 
425  inline Operation& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
426 
434  inline Operation& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;}
435 
436 
445  inline const Aws::Map<OperationTargetType, Aws::String>& GetTargets() const{ return m_targets; }
446 
455  inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
456 
465  inline void SetTargets(const Aws::Map<OperationTargetType, Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
466 
475  inline void SetTargets(Aws::Map<OperationTargetType, Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
476 
485  inline Operation& WithTargets(const Aws::Map<OperationTargetType, Aws::String>& value) { SetTargets(value); return *this;}
486 
495  inline Operation& WithTargets(Aws::Map<OperationTargetType, Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
496 
505  inline Operation& AddTargets(const OperationTargetType& key, const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
506 
515  inline Operation& AddTargets(OperationTargetType&& key, const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
516 
525  inline Operation& AddTargets(const OperationTargetType& key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
526 
535  inline Operation& AddTargets(OperationTargetType&& key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), std::move(value)); return *this; }
536 
545  inline Operation& AddTargets(OperationTargetType&& key, const char* value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
546 
555  inline Operation& AddTargets(const OperationTargetType& key, const char* value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
556 
557  private:
558 
559  Aws::String m_id;
560  bool m_idHasBeenSet;
561 
562  OperationType m_type;
563  bool m_typeHasBeenSet;
564 
565  OperationStatus m_status;
566  bool m_statusHasBeenSet;
567 
568  Aws::String m_errorMessage;
569  bool m_errorMessageHasBeenSet;
570 
571  Aws::String m_errorCode;
572  bool m_errorCodeHasBeenSet;
573 
574  Aws::Utils::DateTime m_createDate;
575  bool m_createDateHasBeenSet;
576 
577  Aws::Utils::DateTime m_updateDate;
578  bool m_updateDateHasBeenSet;
579 
581  bool m_targetsHasBeenSet;
582  };
583 
584 } // namespace Model
585 } // namespace ServiceDiscovery
586 } // namespace Aws
Aws::ServiceDiscovery::Model::Operation::WithErrorMessage
Operation & WithErrorMessage(const char *value)
Definition: Operation.h:225
Aws::ServiceDiscovery::Model::Operation::AddTargets
Operation & AddTargets(OperationTargetType &&key, Aws::String &&value)
Definition: Operation.h:535
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ServiceDiscovery::Model::Operation::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: Operation.h:207
Aws::ServiceDiscovery::Model::Operation::WithErrorCode
Operation & WithErrorCode(Aws::String &&value)
Definition: Operation.h:317
Aws::ServiceDiscovery::Model::Operation::GetCreateDate
const Aws::Utils::DateTime & GetCreateDate() const
Definition: Operation.h:339
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::Operation::CreateDateHasBeenSet
bool CreateDateHasBeenSet() const
Definition: Operation.h:347
Aws::ServiceDiscovery::Model::OperationTargetType
OperationTargetType
Definition: OperationTargetType.h:17
Aws::ServiceDiscovery::Model::Operation::WithCreateDate
Operation & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: Operation.h:371
OperationTargetType.h
Aws::ServiceDiscovery::Model::Operation::SetStatus
void SetStatus(OperationStatus &&value)
Definition: Operation.h:156
Aws::ServiceDiscovery::Model::Operation::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Operation.h:136
Aws::ServiceDiscovery::Model::Operation::Operation
Operation()
Aws::ServiceDiscovery::Model::Operation::AddTargets
Operation & AddTargets(const OperationTargetType &key, const Aws::String &value)
Definition: Operation.h:505
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::Operation::Operation
Operation(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::Operation::WithUpdateDate
Operation & WithUpdateDate(const Aws::Utils::DateTime &value)
Definition: Operation.h:425
DateTime.h
Aws::ServiceDiscovery::Model::Operation::AddTargets
Operation & AddTargets(OperationTargetType &&key, const char *value)
Definition: Operation.h:545
Aws::ServiceDiscovery::Model::Operation::WithId
Operation & WithId(Aws::String &&value)
Definition: Operation.h:79
Aws::ServiceDiscovery::Model::Operation::SetCreateDate
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: Operation.h:355
Aws::ServiceDiscovery::Model::Operation::GetId
const Aws::String & GetId() const
Definition: Operation.h:49
Aws::ServiceDiscovery::Model::Operation::WithTargets
Operation & WithTargets(const Aws::Map< OperationTargetType, Aws::String > &value)
Definition: Operation.h:485
Aws::ServiceDiscovery::Model::Operation::GetTargets
const Aws::Map< OperationTargetType, Aws::String > & GetTargets() const
Definition: Operation.h:445
Aws::ServiceDiscovery::Model::Operation::WithErrorMessage
Operation & WithErrorMessage(Aws::String &&value)
Definition: Operation.h:219
Aws::ServiceDiscovery::Model::Operation::SetType
void SetType(const OperationType &value)
Definition: Operation.h:100
Aws::ServiceDiscovery::Model::Operation::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: Operation.h:278
Aws::ServiceDiscovery::Model::Operation::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Operation.h:95
Aws::ServiceDiscovery::Model::Operation::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: Operation.h:239
Aws::ServiceDiscovery::Model::Operation::SetCreateDate
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: Operation.h:363
Aws::ServiceDiscovery::Model::Operation::WithUpdateDate
Operation & WithUpdateDate(Aws::Utils::DateTime &&value)
Definition: Operation.h:434
Aws::ServiceDiscovery::Model::Operation::GetStatus
const OperationStatus & GetStatus() const
Definition: Operation.h:126
Aws::ServiceDiscovery::Model::Operation::WithType
Operation & WithType(const OperationType &value)
Definition: Operation.h:110
Aws::ServiceDiscovery::Model::Operation
Definition: Operation.h:38
Aws::ServiceDiscovery::Model::Operation::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: Operation.h:195
Aws::ServiceDiscovery::Model::OperationStatus
OperationStatus
Definition: OperationStatus.h:17
Aws::ServiceDiscovery::Model::Operation::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::Operation::operator=
Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::Operation::WithCreateDate
Operation & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: Operation.h:379
Aws::ServiceDiscovery::Model::Operation::SetId
void SetId(const char *value)
Definition: Operation.h:69
Aws::ServiceDiscovery::Model::Operation::WithId
Operation & WithId(const char *value)
Definition: Operation.h:84
Aws::ServiceDiscovery::Model::Operation::WithStatus
Operation & WithStatus(const OperationStatus &value)
Definition: Operation.h:166
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ServiceDiscovery::Model::Operation::SetUpdateDate
void SetUpdateDate(const Aws::Utils::DateTime &value)
Definition: Operation.h:407
AWSString.h
Aws::ServiceDiscovery::Model::Operation::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: Operation.h:189
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::Operation::WithType
Operation & WithType(OperationType &&value)
Definition: Operation.h:115
Aws::ServiceDiscovery::Model::Operation::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: Operation.h:252
Aws::ServiceDiscovery::Model::Operation::GetType
const OperationType & GetType() const
Definition: Operation.h:90
Aws::ServiceDiscovery::Model::Operation::AddTargets
Operation & AddTargets(OperationTargetType &&key, const Aws::String &value)
Definition: Operation.h:515
OperationType.h
Aws::ServiceDiscovery::Model::Operation::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: Operation.h:201
Aws::ServiceDiscovery::Model::Operation::WithErrorCode
Operation & WithErrorCode(const char *value)
Definition: Operation.h:330
Aws::ServiceDiscovery::Model::Operation::SetType
void SetType(OperationType &&value)
Definition: Operation.h:105
Aws::ServiceDiscovery::Model::Operation::AddTargets
Operation & AddTargets(const OperationTargetType &key, const char *value)
Definition: Operation.h:555
Aws::ServiceDiscovery::Model::Operation::SetErrorCode
void SetErrorCode(const char *value)
Definition: Operation.h:291
Aws::ServiceDiscovery::Model::Operation::SetId
void SetId(const Aws::String &value)
Definition: Operation.h:59
Aws::ServiceDiscovery::Model::Operation::SetTargets
void SetTargets(Aws::Map< OperationTargetType, Aws::String > &&value)
Definition: Operation.h:475
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::Operation::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: Operation.h:183
Aws::ServiceDiscovery::Model::Operation::SetStatus
void SetStatus(const OperationStatus &value)
Definition: Operation.h:146
Aws::ServiceDiscovery::Model::Operation::AddTargets
Operation & AddTargets(const OperationTargetType &key, Aws::String &&value)
Definition: Operation.h:525
OperationStatus.h
Aws::ServiceDiscovery::Model::Operation::SetUpdateDate
void SetUpdateDate(Aws::Utils::DateTime &&value)
Definition: Operation.h:416
Aws::ServiceDiscovery::Model::Operation::WithTargets
Operation & WithTargets(Aws::Map< OperationTargetType, Aws::String > &&value)
Definition: Operation.h:495
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::Operation::GetUpdateDate
const Aws::Utils::DateTime & GetUpdateDate() const
Definition: Operation.h:389
Aws::ServiceDiscovery::Model::Operation::SetId
void SetId(Aws::String &&value)
Definition: Operation.h:64
Aws::ServiceDiscovery::Model::Operation::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Operation.h:54
Aws::ServiceDiscovery::Model::Operation::UpdateDateHasBeenSet
bool UpdateDateHasBeenSet() const
Definition: Operation.h:398
Aws::ServiceDiscovery::Model::OperationType
OperationType
Definition: OperationType.h:17
Aws::ServiceDiscovery::Model::Operation::WithErrorMessage
Operation & WithErrorMessage(const Aws::String &value)
Definition: Operation.h:213
Aws::ServiceDiscovery::Model::Operation::WithId
Operation & WithId(const Aws::String &value)
Definition: Operation.h:74
Aws::ServiceDiscovery::Model::Operation::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: Operation.h:265
AWSMap.h
Aws::ServiceDiscovery::Model::Operation::TargetsHasBeenSet
bool TargetsHasBeenSet() const
Definition: Operation.h:455
Aws::ServiceDiscovery::Model::Operation::WithStatus
Operation & WithStatus(OperationStatus &&value)
Definition: Operation.h:176
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ServiceDiscovery::Model::Operation::WithErrorCode
Operation & WithErrorCode(const Aws::String &value)
Definition: Operation.h:304
Aws::ServiceDiscovery::Model::Operation::SetTargets
void SetTargets(const Aws::Map< OperationTargetType, Aws::String > &value)
Definition: Operation.h:465