AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 Operation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetResourceName() const { return m_resourceName; }
62 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
63 template<typename ResourceNameT = Aws::String>
64 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
65 template<typename ResourceNameT = Aws::String>
66 Operation& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
68
70
73 inline ResourceType GetResourceType() const { return m_resourceType; }
74 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
76 inline Operation& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
78
80
84 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
85 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
86 template<typename CreatedAtT = Aws::Utils::DateTime>
87 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
88 template<typename CreatedAtT = Aws::Utils::DateTime>
89 Operation& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
91
93
96 inline const ResourceLocation& GetLocation() const { return m_location; }
97 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
98 template<typename LocationT = ResourceLocation>
99 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
100 template<typename LocationT = ResourceLocation>
101 Operation& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
103
105
108 inline bool GetIsTerminal() const { return m_isTerminal; }
109 inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; }
110 inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; }
111 inline Operation& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;}
113
115
118 inline const Aws::String& GetOperationDetails() const { return m_operationDetails; }
119 inline bool OperationDetailsHasBeenSet() const { return m_operationDetailsHasBeenSet; }
120 template<typename OperationDetailsT = Aws::String>
121 void SetOperationDetails(OperationDetailsT&& value) { m_operationDetailsHasBeenSet = true; m_operationDetails = std::forward<OperationDetailsT>(value); }
122 template<typename OperationDetailsT = Aws::String>
123 Operation& WithOperationDetails(OperationDetailsT&& value) { SetOperationDetails(std::forward<OperationDetailsT>(value)); return *this;}
125
127
130 inline OperationType GetOperationType() const { return m_operationType; }
131 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
132 inline void SetOperationType(OperationType value) { m_operationTypeHasBeenSet = true; m_operationType = value; }
133 inline Operation& WithOperationType(OperationType value) { SetOperationType(value); return *this;}
135
137
140 inline OperationStatus GetStatus() const { return m_status; }
141 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
142 inline void SetStatus(OperationStatus value) { m_statusHasBeenSet = true; m_status = value; }
143 inline Operation& WithStatus(OperationStatus value) { SetStatus(value); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetStatusChangedAt() const { return m_statusChangedAt; }
151 inline bool StatusChangedAtHasBeenSet() const { return m_statusChangedAtHasBeenSet; }
152 template<typename StatusChangedAtT = Aws::Utils::DateTime>
153 void SetStatusChangedAt(StatusChangedAtT&& value) { m_statusChangedAtHasBeenSet = true; m_statusChangedAt = std::forward<StatusChangedAtT>(value); }
154 template<typename StatusChangedAtT = Aws::Utils::DateTime>
155 Operation& WithStatusChangedAt(StatusChangedAtT&& value) { SetStatusChangedAt(std::forward<StatusChangedAtT>(value)); return *this;}
157
159
162 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
163 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
164 template<typename ErrorCodeT = Aws::String>
165 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
166 template<typename ErrorCodeT = Aws::String>
167 Operation& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
169
171
174 inline const Aws::String& GetErrorDetails() const { return m_errorDetails; }
175 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
176 template<typename ErrorDetailsT = Aws::String>
177 void SetErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::forward<ErrorDetailsT>(value); }
178 template<typename ErrorDetailsT = Aws::String>
179 Operation& WithErrorDetails(ErrorDetailsT&& value) { SetErrorDetails(std::forward<ErrorDetailsT>(value)); return *this;}
181 private:
182
183 Aws::String m_id;
184 bool m_idHasBeenSet = false;
185
186 Aws::String m_resourceName;
187 bool m_resourceNameHasBeenSet = false;
188
189 ResourceType m_resourceType{ResourceType::NOT_SET};
190 bool m_resourceTypeHasBeenSet = false;
191
192 Aws::Utils::DateTime m_createdAt{};
193 bool m_createdAtHasBeenSet = false;
194
195 ResourceLocation m_location;
196 bool m_locationHasBeenSet = false;
197
198 bool m_isTerminal{false};
199 bool m_isTerminalHasBeenSet = false;
200
201 Aws::String m_operationDetails;
202 bool m_operationDetailsHasBeenSet = false;
203
204 OperationType m_operationType{OperationType::NOT_SET};
205 bool m_operationTypeHasBeenSet = false;
206
208 bool m_statusHasBeenSet = false;
209
210 Aws::Utils::DateTime m_statusChangedAt{};
211 bool m_statusChangedAtHasBeenSet = false;
212
213 Aws::String m_errorCode;
214 bool m_errorCodeHasBeenSet = false;
215
216 Aws::String m_errorDetails;
217 bool m_errorDetailsHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace Lightsail
222} // namespace Aws
void SetStatusChangedAt(StatusChangedAtT &&value)
Definition Operation.h:153
Operation & WithStatus(OperationStatus value)
Definition Operation.h:143
Operation & WithResourceType(ResourceType value)
Definition Operation.h:76
AWS_LIGHTSAIL_API Operation()=default
void SetErrorCode(ErrorCodeT &&value)
Definition Operation.h:165
void SetOperationDetails(OperationDetailsT &&value)
Definition Operation.h:121
void SetResourceName(ResourceNameT &&value)
Definition Operation.h:64
void SetCreatedAt(CreatedAtT &&value)
Definition Operation.h:87
void SetLocation(LocationT &&value)
Definition Operation.h:99
ResourceType GetResourceType() const
Definition Operation.h:73
AWS_LIGHTSAIL_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
const ResourceLocation & GetLocation() const
Definition Operation.h:96
const Aws::String & GetOperationDetails() const
Definition Operation.h:118
Operation & WithOperationType(OperationType value)
Definition Operation.h:133
const Aws::String & GetErrorDetails() const
Definition Operation.h:174
void SetErrorDetails(ErrorDetailsT &&value)
Definition Operation.h:177
Operation & WithErrorDetails(ErrorDetailsT &&value)
Definition Operation.h:179
void SetOperationType(OperationType value)
Definition Operation.h:132
bool OperationDetailsHasBeenSet() const
Definition Operation.h:119
void SetStatus(OperationStatus value)
Definition Operation.h:142
Operation & WithStatusChangedAt(StatusChangedAtT &&value)
Definition Operation.h:155
OperationType GetOperationType() const
Definition Operation.h:130
Operation & WithResourceName(ResourceNameT &&value)
Definition Operation.h:66
Operation & WithOperationDetails(OperationDetailsT &&value)
Definition Operation.h:123
Operation & WithIsTerminal(bool value)
Definition Operation.h:111
void SetResourceType(ResourceType value)
Definition Operation.h:75
const Aws::String & GetId() const
Definition Operation.h:49
OperationStatus GetStatus() const
Definition Operation.h:140
Operation & WithId(IdT &&value)
Definition Operation.h:54
const Aws::String & GetErrorCode() const
Definition Operation.h:162
Operation & WithCreatedAt(CreatedAtT &&value)
Definition Operation.h:89
const Aws::Utils::DateTime & GetStatusChangedAt() const
Definition Operation.h:150
Operation & WithLocation(LocationT &&value)
Definition Operation.h:101
Operation & WithErrorCode(ErrorCodeT &&value)
Definition Operation.h:167
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API Operation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceName() const
Definition Operation.h:61
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Operation.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue