AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline Operation& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline Operation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline Operation& WithId(const char* value) { SetId(value); return *this;}
59
61
64 inline const OperationType& GetType() const{ return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(const OperationType& value) { m_typeHasBeenSet = true; m_type = value; }
67 inline void SetType(OperationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68 inline Operation& WithType(const OperationType& value) { SetType(value); return *this;}
69 inline Operation& WithType(OperationType&& value) { SetType(std::move(value)); return *this;}
71
73
81 inline const OperationStatus& GetStatus() const{ return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
84 inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
85 inline Operation& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;}
86 inline Operation& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;}
88
90
94 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
95 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
96 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
97 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
98 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
99 inline Operation& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
100 inline Operation& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
101 inline Operation& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
103
105
116 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
117 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
118 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
119 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
120 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
121 inline Operation& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
122 inline Operation& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
123 inline Operation& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
125
127
133 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
134 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
135 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
136 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
137 inline Operation& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
138 inline Operation& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
140
142
149 inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
150 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
151 inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
152 inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
153 inline Operation& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
154 inline Operation& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;}
156
158
166 inline const Aws::Map<OperationTargetType, Aws::String>& GetTargets() const{ return m_targets; }
167 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
168 inline void SetTargets(const Aws::Map<OperationTargetType, Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
169 inline void SetTargets(Aws::Map<OperationTargetType, Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
170 inline Operation& WithTargets(const Aws::Map<OperationTargetType, Aws::String>& value) { SetTargets(value); return *this;}
171 inline Operation& WithTargets(Aws::Map<OperationTargetType, Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
172 inline Operation& AddTargets(const OperationTargetType& key, const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
173 inline Operation& AddTargets(OperationTargetType&& key, const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
174 inline Operation& AddTargets(const OperationTargetType& key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
175 inline Operation& AddTargets(OperationTargetType&& key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), std::move(value)); return *this; }
176 inline Operation& AddTargets(OperationTargetType&& key, const char* value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
177 inline Operation& AddTargets(const OperationTargetType& key, const char* value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
179 private:
180
181 Aws::String m_id;
182 bool m_idHasBeenSet = false;
183
184 OperationType m_type;
185 bool m_typeHasBeenSet = false;
186
187 OperationStatus m_status;
188 bool m_statusHasBeenSet = false;
189
190 Aws::String m_errorMessage;
191 bool m_errorMessageHasBeenSet = false;
192
193 Aws::String m_errorCode;
194 bool m_errorCodeHasBeenSet = false;
195
196 Aws::Utils::DateTime m_createDate;
197 bool m_createDateHasBeenSet = false;
198
199 Aws::Utils::DateTime m_updateDate;
200 bool m_updateDateHasBeenSet = false;
201
203 bool m_targetsHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace ServiceDiscovery
208} // namespace Aws
const Aws::String & GetErrorCode() const
Definition Operation.h:116
Operation & WithErrorCode(const char *value)
Definition Operation.h:123
void SetErrorMessage(const char *value)
Definition Operation.h:98
Operation & AddTargets(OperationTargetType &&key, const char *value)
Definition Operation.h:176
void SetId(const char *value)
Definition Operation.h:54
void SetErrorMessage(const Aws::String &value)
Definition Operation.h:96
const Aws::Map< OperationTargetType, Aws::String > & GetTargets() const
Definition Operation.h:166
void SetId(const Aws::String &value)
Definition Operation.h:52
const Aws::String & GetErrorMessage() const
Definition Operation.h:94
Operation & WithUpdateDate(const Aws::Utils::DateTime &value)
Definition Operation.h:153
Operation & AddTargets(OperationTargetType &&key, const Aws::String &value)
Definition Operation.h:173
Operation & WithCreateDate(Aws::Utils::DateTime &&value)
Definition Operation.h:138
void SetTargets(const Aws::Map< OperationTargetType, Aws::String > &value)
Definition Operation.h:168
const Aws::String & GetId() const
Definition Operation.h:50
Operation & WithTargets(Aws::Map< OperationTargetType, Aws::String > &&value)
Definition Operation.h:171
Operation & WithCreateDate(const Aws::Utils::DateTime &value)
Definition Operation.h:137
Operation & WithErrorMessage(Aws::String &&value)
Definition Operation.h:100
Operation & WithErrorCode(const Aws::String &value)
Definition Operation.h:121
const OperationStatus & GetStatus() const
Definition Operation.h:81
void SetUpdateDate(const Aws::Utils::DateTime &value)
Definition Operation.h:151
Operation & WithErrorMessage(const char *value)
Definition Operation.h:101
void SetUpdateDate(Aws::Utils::DateTime &&value)
Definition Operation.h:152
Operation & WithId(const Aws::String &value)
Definition Operation.h:55
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition Operation.h:136
void SetErrorCode(const Aws::String &value)
Definition Operation.h:118
Operation & AddTargets(const OperationTargetType &key, Aws::String &&value)
Definition Operation.h:174
Operation & WithTargets(const Aws::Map< OperationTargetType, Aws::String > &value)
Definition Operation.h:170
void SetErrorCode(const char *value)
Definition Operation.h:120
void SetStatus(OperationStatus &&value)
Definition Operation.h:84
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition Operation.h:135
Operation & AddTargets(OperationTargetType &&key, Aws::String &&value)
Definition Operation.h:175
Operation & WithId(const char *value)
Definition Operation.h:57
Operation & AddTargets(const OperationTargetType &key, const Aws::String &value)
Definition Operation.h:172
AWS_SERVICEDISCOVERY_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
Operation & WithType(OperationType &&value)
Definition Operation.h:69
Operation & WithStatus(const OperationStatus &value)
Definition Operation.h:85
const Aws::Utils::DateTime & GetCreateDate() const
Definition Operation.h:133
Operation & WithErrorMessage(const Aws::String &value)
Definition Operation.h:99
Operation & AddTargets(const OperationTargetType &key, const char *value)
Definition Operation.h:177
void SetType(const OperationType &value)
Definition Operation.h:66
Operation & WithUpdateDate(Aws::Utils::DateTime &&value)
Definition Operation.h:154
AWS_SERVICEDISCOVERY_API Operation(Aws::Utils::Json::JsonView jsonValue)
const OperationType & GetType() const
Definition Operation.h:64
void SetType(OperationType &&value)
Definition Operation.h:67
void SetErrorCode(Aws::String &&value)
Definition Operation.h:119
Operation & WithId(Aws::String &&value)
Definition Operation.h:56
const Aws::Utils::DateTime & GetUpdateDate() const
Definition Operation.h:149
Operation & WithStatus(OperationStatus &&value)
Definition Operation.h:86
void SetTargets(Aws::Map< OperationTargetType, Aws::String > &&value)
Definition Operation.h:169
Operation & WithErrorCode(Aws::String &&value)
Definition Operation.h:122
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
Operation & WithType(const OperationType &value)
Definition Operation.h:68
void SetStatus(const OperationStatus &value)
Definition Operation.h:83
void SetErrorMessage(Aws::String &&value)
Definition Operation.h:97
AWS_SERVICEDISCOVERY_API Operation()
void SetId(Aws::String &&value)
Definition Operation.h:53
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