AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
Operation.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/model/OperationType.h>
10#include <aws/servicediscovery/model/OperationStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/servicediscovery/model/OperationTargetType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ServiceDiscovery
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SERVICEDISCOVERY_API Operation() = default;
41 AWS_SERVICEDISCOVERY_API Operation(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICEDISCOVERY_API Operation& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 Operation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
63 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
64 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
65 template<typename OwnerAccountT = Aws::String>
66 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
67 template<typename OwnerAccountT = Aws::String>
68 Operation& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
70
72
75 inline OperationType GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(OperationType value) { m_typeHasBeenSet = true; m_type = value; }
78 inline Operation& WithType(OperationType value) { SetType(value); return *this;}
80
82
90 inline OperationStatus GetStatus() const { return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(OperationStatus value) { m_statusHasBeenSet = true; m_status = value; }
93 inline Operation& WithStatus(OperationStatus value) { SetStatus(value); return *this;}
95
97
101 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
102 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
103 template<typename ErrorMessageT = Aws::String>
104 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
105 template<typename ErrorMessageT = Aws::String>
106 Operation& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
108
110
121 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
122 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
123 template<typename ErrorCodeT = Aws::String>
124 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
125 template<typename ErrorCodeT = Aws::String>
126 Operation& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
128
130
136 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
137 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
138 template<typename CreateDateT = Aws::Utils::DateTime>
139 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
140 template<typename CreateDateT = Aws::Utils::DateTime>
141 Operation& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
143
145
152 inline const Aws::Utils::DateTime& GetUpdateDate() const { return m_updateDate; }
153 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
154 template<typename UpdateDateT = Aws::Utils::DateTime>
155 void SetUpdateDate(UpdateDateT&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::forward<UpdateDateT>(value); }
156 template<typename UpdateDateT = Aws::Utils::DateTime>
157 Operation& WithUpdateDate(UpdateDateT&& value) { SetUpdateDate(std::forward<UpdateDateT>(value)); return *this;}
159
161
169 inline const Aws::Map<OperationTargetType, Aws::String>& GetTargets() const { return m_targets; }
170 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
171 template<typename TargetsT = Aws::Map<OperationTargetType, Aws::String>>
172 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
173 template<typename TargetsT = Aws::Map<OperationTargetType, Aws::String>>
174 Operation& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
176 m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this;
177 }
179 private:
180
181 Aws::String m_id;
182 bool m_idHasBeenSet = false;
183
184 Aws::String m_ownerAccount;
185 bool m_ownerAccountHasBeenSet = false;
186
188 bool m_typeHasBeenSet = false;
189
191 bool m_statusHasBeenSet = false;
192
193 Aws::String m_errorMessage;
194 bool m_errorMessageHasBeenSet = false;
195
196 Aws::String m_errorCode;
197 bool m_errorCodeHasBeenSet = false;
198
199 Aws::Utils::DateTime m_createDate{};
200 bool m_createDateHasBeenSet = false;
201
202 Aws::Utils::DateTime m_updateDate{};
203 bool m_updateDateHasBeenSet = false;
204
206 bool m_targetsHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace ServiceDiscovery
211} // namespace Aws
const Aws::String & GetErrorCode() const
Definition Operation.h:121
const Aws::Map< OperationTargetType, Aws::String > & GetTargets() const
Definition Operation.h:169
void SetUpdateDate(UpdateDateT &&value)
Definition Operation.h:155
const Aws::String & GetErrorMessage() const
Definition Operation.h:101
OperationStatus GetStatus() const
Definition Operation.h:90
void SetOwnerAccount(OwnerAccountT &&value)
Definition Operation.h:66
const Aws::String & GetId() const
Definition Operation.h:50
Operation & WithTargets(TargetsT &&value)
Definition Operation.h:174
Operation & WithType(OperationType value)
Definition Operation.h:78
void SetTargets(TargetsT &&value)
Definition Operation.h:172
Operation & WithStatus(OperationStatus value)
Definition Operation.h:93
void SetStatus(OperationStatus value)
Definition Operation.h:92
void SetErrorMessage(ErrorMessageT &&value)
Definition Operation.h:104
void SetType(OperationType value)
Definition Operation.h:77
Operation & WithErrorMessage(ErrorMessageT &&value)
Definition Operation.h:106
Operation & WithErrorCode(ErrorCodeT &&value)
Definition Operation.h:126
Operation & WithCreateDate(CreateDateT &&value)
Definition Operation.h:141
AWS_SERVICEDISCOVERY_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
Operation & WithUpdateDate(UpdateDateT &&value)
Definition Operation.h:157
const Aws::Utils::DateTime & GetCreateDate() const
Definition Operation.h:136
AWS_SERVICEDISCOVERY_API Operation(Aws::Utils::Json::JsonView jsonValue)
Operation & AddTargets(OperationTargetType key, Aws::String value)
Definition Operation.h:175
Operation & WithOwnerAccount(OwnerAccountT &&value)
Definition Operation.h:68
const Aws::String & GetOwnerAccount() const
Definition Operation.h:63
const Aws::Utils::DateTime & GetUpdateDate() const
Definition Operation.h:152
Operation & WithId(IdT &&value)
Definition Operation.h:55
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SERVICEDISCOVERY_API Operation()=default
void SetCreateDate(CreateDateT &&value)
Definition Operation.h:139
void SetErrorCode(ErrorCodeT &&value)
Definition Operation.h:124
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