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/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/ResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/lightsail/model/ResourceLocation.h>
12#include <aws/lightsail/model/OperationType.h>
13#include <aws/lightsail/model/OperationStatus.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 Lightsail
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_LIGHTSAIL_API Operation();
40 AWS_LIGHTSAIL_API Operation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API Operation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline Operation& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline Operation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline Operation& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
64 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
65 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
66 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
67 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
68 inline Operation& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
69 inline Operation& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
70 inline Operation& WithResourceName(const char* value) { SetResourceName(value); return *this;}
72
74
77 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
78 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
79 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
80 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
81 inline Operation& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
82 inline Operation& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
91 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
93 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
94 inline Operation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
95 inline Operation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
97
99
102 inline const ResourceLocation& GetLocation() const{ return m_location; }
103 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
104 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
105 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
106 inline Operation& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
107 inline Operation& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
109
111
114 inline bool GetIsTerminal() const{ return m_isTerminal; }
115 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
116 inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
117 inline Operation& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
119
121
124 inline const Aws::String& GetOperationDetails() const{ return m_operationDetails; }
125 inline bool OperationDetailsHasBeenSet() const { return m_operationDetailsHasBeenSet; }
126 inline void SetOperationDetails(const Aws::String& value) { m_operationDetailsHasBeenSet = true; m_operationDetails = value; }
127 inline void SetOperationDetails(Aws::String&& value) { m_operationDetailsHasBeenSet = true; m_operationDetails = std::move(value); }
128 inline void SetOperationDetails(const char* value) { m_operationDetailsHasBeenSet = true; m_operationDetails.assign(value); }
129 inline Operation& WithOperationDetails(const Aws::String& value) { SetOperationDetails(value); return *this;}
130 inline Operation& WithOperationDetails(Aws::String&& value) { SetOperationDetails(std::move(value)); return *this;}
131 inline Operation& WithOperationDetails(const char* value) { SetOperationDetails(value); return *this;}
133
135
138 inline const OperationType& GetOperationType() const{ return m_operationType; }
139 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
140 inline void SetOperationType(const OperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
141 inline void SetOperationType(OperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); }
142 inline Operation& WithOperationType(const OperationType& value) { SetOperationType(value); return *this;}
143 inline Operation& WithOperationType(OperationType&& value) { SetOperationType(std::move(value)); return *this;}
145
147
150 inline const OperationStatus& GetStatus() const{ return m_status; }
151 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
152 inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
153 inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
154 inline Operation& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;}
155 inline Operation& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;}
157
159
162 inline const Aws::Utils::DateTime& GetStatusChangedAt() const{ return m_statusChangedAt; }
163 inline bool StatusChangedAtHasBeenSet() const { return m_statusChangedAtHasBeenSet; }
164 inline void SetStatusChangedAt(const Aws::Utils::DateTime& value) { m_statusChangedAtHasBeenSet = true; m_statusChangedAt = value; }
165 inline void SetStatusChangedAt(Aws::Utils::DateTime&& value) { m_statusChangedAtHasBeenSet = true; m_statusChangedAt = std::move(value); }
166 inline Operation& WithStatusChangedAt(const Aws::Utils::DateTime& value) { SetStatusChangedAt(value); return *this;}
167 inline Operation& WithStatusChangedAt(Aws::Utils::DateTime&& value) { SetStatusChangedAt(std::move(value)); return *this;}
169
171
174 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
175 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
176 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
177 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
178 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
179 inline Operation& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
180 inline Operation& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
181 inline Operation& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
183
185
188 inline const Aws::String& GetErrorDetails() const{ return m_errorDetails; }
189 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
190 inline void SetErrorDetails(const Aws::String& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
191 inline void SetErrorDetails(Aws::String&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
192 inline void SetErrorDetails(const char* value) { m_errorDetailsHasBeenSet = true; m_errorDetails.assign(value); }
193 inline Operation& WithErrorDetails(const Aws::String& value) { SetErrorDetails(value); return *this;}
194 inline Operation& WithErrorDetails(Aws::String&& value) { SetErrorDetails(std::move(value)); return *this;}
195 inline Operation& WithErrorDetails(const char* value) { SetErrorDetails(value); return *this;}
197 private:
198
199 Aws::String m_id;
200 bool m_idHasBeenSet = false;
201
202 Aws::String m_resourceName;
203 bool m_resourceNameHasBeenSet = false;
204
205 ResourceType m_resourceType;
206 bool m_resourceTypeHasBeenSet = false;
207
208 Aws::Utils::DateTime m_createdAt;
209 bool m_createdAtHasBeenSet = false;
210
211 ResourceLocation m_location;
212 bool m_locationHasBeenSet = false;
213
214 bool m_isTerminal;
215 bool m_isTerminalHasBeenSet = false;
216
217 Aws::String m_operationDetails;
218 bool m_operationDetailsHasBeenSet = false;
219
220 OperationType m_operationType;
221 bool m_operationTypeHasBeenSet = false;
222
223 OperationStatus m_status;
224 bool m_statusHasBeenSet = false;
225
226 Aws::Utils::DateTime m_statusChangedAt;
227 bool m_statusChangedAtHasBeenSet = false;
228
229 Aws::String m_errorCode;
230 bool m_errorCodeHasBeenSet = false;
231
232 Aws::String m_errorDetails;
233 bool m_errorDetailsHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace Lightsail
238} // namespace Aws
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Operation.h:93
void SetOperationDetails(const char *value)
Definition Operation.h:128
Operation & WithId(const char *value)
Definition Operation.h:56
Operation & WithId(Aws::String &&value)
Definition Operation.h:55
void SetErrorDetails(Aws::String &&value)
Definition Operation.h:191
void SetStatus(OperationStatus &&value)
Definition Operation.h:153
const OperationType & GetOperationType() const
Definition Operation.h:138
void SetLocation(const ResourceLocation &value)
Definition Operation.h:104
Operation & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Operation.h:94
Operation & WithOperationType(OperationType &&value)
Definition Operation.h:143
void SetResourceType(ResourceType &&value)
Definition Operation.h:80
void SetId(const char *value)
Definition Operation.h:53
Operation & WithErrorCode(const char *value)
Definition Operation.h:181
AWS_LIGHTSAIL_API Operation()
void SetId(Aws::String &&value)
Definition Operation.h:52
Operation & WithResourceName(Aws::String &&value)
Definition Operation.h:69
void SetLocation(ResourceLocation &&value)
Definition Operation.h:105
Operation & WithOperationType(const OperationType &value)
Definition Operation.h:142
AWS_LIGHTSAIL_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
Operation & WithStatusChangedAt(const Aws::Utils::DateTime &value)
Definition Operation.h:166
const ResourceLocation & GetLocation() const
Definition Operation.h:102
Operation & WithId(const Aws::String &value)
Definition Operation.h:54
const Aws::String & GetOperationDetails() const
Definition Operation.h:124
Operation & WithLocation(const ResourceLocation &value)
Definition Operation.h:106
const Aws::String & GetErrorDetails() const
Definition Operation.h:188
void SetErrorCode(const Aws::String &value)
Definition Operation.h:176
void SetErrorDetails(const char *value)
Definition Operation.h:192
Operation & WithErrorDetails(Aws::String &&value)
Definition Operation.h:194
Operation & WithResourceType(ResourceType &&value)
Definition Operation.h:82
void SetStatusChangedAt(Aws::Utils::DateTime &&value)
Definition Operation.h:165
void SetStatusChangedAt(const Aws::Utils::DateTime &value)
Definition Operation.h:164
void SetOperationDetails(const Aws::String &value)
Definition Operation.h:126
Operation & WithOperationDetails(Aws::String &&value)
Definition Operation.h:130
Operation & WithResourceType(const ResourceType &value)
Definition Operation.h:81
void SetStatus(const OperationStatus &value)
Definition Operation.h:152
Operation & WithStatusChangedAt(Aws::Utils::DateTime &&value)
Definition Operation.h:167
Operation & WithResourceName(const Aws::String &value)
Definition Operation.h:68
void SetResourceName(Aws::String &&value)
Definition Operation.h:66
Operation & WithErrorCode(Aws::String &&value)
Definition Operation.h:180
bool OperationDetailsHasBeenSet() const
Definition Operation.h:125
Operation & WithStatus(const OperationStatus &value)
Definition Operation.h:154
Operation & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Operation.h:95
Operation & WithOperationDetails(const Aws::String &value)
Definition Operation.h:129
void SetOperationType(OperationType &&value)
Definition Operation.h:141
void SetResourceType(const ResourceType &value)
Definition Operation.h:79
Operation & WithLocation(ResourceLocation &&value)
Definition Operation.h:107
const ResourceType & GetResourceType() const
Definition Operation.h:77
Operation & WithResourceName(const char *value)
Definition Operation.h:70
void SetResourceName(const Aws::String &value)
Definition Operation.h:65
void SetOperationDetails(Aws::String &&value)
Definition Operation.h:127
Operation & WithIsTerminal(bool value)
Definition Operation.h:117
Operation & WithStatus(OperationStatus &&value)
Definition Operation.h:155
const Aws::String & GetId() const
Definition Operation.h:49
void SetErrorCode(const char *value)
Definition Operation.h:178
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Operation.h:92
Operation & WithOperationDetails(const char *value)
Definition Operation.h:131
const Aws::String & GetErrorCode() const
Definition Operation.h:174
const Aws::Utils::DateTime & GetStatusChangedAt() const
Definition Operation.h:162
void SetId(const Aws::String &value)
Definition Operation.h:51
void SetErrorDetails(const Aws::String &value)
Definition Operation.h:190
Operation & WithErrorDetails(const Aws::String &value)
Definition Operation.h:193
Operation & WithErrorDetails(const char *value)
Definition Operation.h:195
Operation & WithErrorCode(const Aws::String &value)
Definition Operation.h:179
void SetErrorCode(Aws::String &&value)
Definition Operation.h:177
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API Operation(Aws::Utils::Json::JsonView jsonValue)
void SetOperationType(const OperationType &value)
Definition Operation.h:140
const OperationStatus & GetStatus() const
Definition Operation.h:150
const Aws::String & GetResourceName() const
Definition Operation.h:63
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Operation.h:90
void SetResourceName(const char *value)
Definition Operation.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue