AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AdministrativeAction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSAllocator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/AdministrativeActionFailureDetails.h>
12#include <aws/fsx/model/AdministrativeActionType.h>
13#include <aws/fsx/model/Status.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FSx {
25namespace Model {
26class FileSystem;
27class Volume;
28class Snapshot;
29
38 public:
39 AWS_FSX_API AdministrativeAction() = default;
43
45
46 inline AdministrativeActionType GetAdministrativeActionType() const { return m_administrativeActionType; }
47 inline bool AdministrativeActionTypeHasBeenSet() const { return m_administrativeActionTypeHasBeenSet; }
49 m_administrativeActionTypeHasBeenSet = true;
50 m_administrativeActionType = value;
51 }
54 return *this;
55 }
57
59
64 inline int GetProgressPercent() const { return m_progressPercent; }
65 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
66 inline void SetProgressPercent(int value) {
67 m_progressPercentHasBeenSet = true;
68 m_progressPercent = value;
69 }
71 SetProgressPercent(value);
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetRequestTime() const { return m_requestTime; }
81 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
82 template <typename RequestTimeT = Aws::Utils::DateTime>
83 void SetRequestTime(RequestTimeT&& value) {
84 m_requestTimeHasBeenSet = true;
85 m_requestTime = std::forward<RequestTimeT>(value);
86 }
87 template <typename RequestTimeT = Aws::Utils::DateTime>
88 AdministrativeAction& WithRequestTime(RequestTimeT&& value) {
89 SetRequestTime(std::forward<RequestTimeT>(value));
90 return *this;
91 }
93
95
117 inline Status GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(Status value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
135 inline const FileSystem& GetTargetFileSystemValues() const { return *m_targetFileSystemValues; }
136 inline bool TargetFileSystemValuesHasBeenSet() const { return m_targetFileSystemValuesHasBeenSet; }
137 template <typename TargetFileSystemValuesT = FileSystem>
138 void SetTargetFileSystemValues(TargetFileSystemValuesT&& value) {
139 m_targetFileSystemValuesHasBeenSet = true;
140 m_targetFileSystemValues = Aws::MakeShared<FileSystem>("AdministrativeAction", std::forward<TargetFileSystemValuesT>(value));
141 }
142 template <typename TargetFileSystemValuesT = FileSystem>
143 AdministrativeAction& WithTargetFileSystemValues(TargetFileSystemValuesT&& value) {
144 SetTargetFileSystemValues(std::forward<TargetFileSystemValuesT>(value));
145 return *this;
146 }
148
150
151 inline const AdministrativeActionFailureDetails& GetFailureDetails() const { return m_failureDetails; }
152 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
153 template <typename FailureDetailsT = AdministrativeActionFailureDetails>
154 void SetFailureDetails(FailureDetailsT&& value) {
155 m_failureDetailsHasBeenSet = true;
156 m_failureDetails = std::forward<FailureDetailsT>(value);
157 }
158 template <typename FailureDetailsT = AdministrativeActionFailureDetails>
159 AdministrativeAction& WithFailureDetails(FailureDetailsT&& value) {
160 SetFailureDetails(std::forward<FailureDetailsT>(value));
161 return *this;
162 }
164
166
167 inline const Volume& GetTargetVolumeValues() const { return *m_targetVolumeValues; }
168 inline bool TargetVolumeValuesHasBeenSet() const { return m_targetVolumeValuesHasBeenSet; }
169 template <typename TargetVolumeValuesT = Volume>
170 void SetTargetVolumeValues(TargetVolumeValuesT&& value) {
171 m_targetVolumeValuesHasBeenSet = true;
172 m_targetVolumeValues = Aws::MakeShared<Volume>("AdministrativeAction", std::forward<TargetVolumeValuesT>(value));
173 }
174 template <typename TargetVolumeValuesT = Volume>
175 AdministrativeAction& WithTargetVolumeValues(TargetVolumeValuesT&& value) {
176 SetTargetVolumeValues(std::forward<TargetVolumeValuesT>(value));
177 return *this;
178 }
180
182
183 inline const Snapshot& GetTargetSnapshotValues() const { return *m_targetSnapshotValues; }
184 inline bool TargetSnapshotValuesHasBeenSet() const { return m_targetSnapshotValuesHasBeenSet; }
185 template <typename TargetSnapshotValuesT = Snapshot>
186 void SetTargetSnapshotValues(TargetSnapshotValuesT&& value) {
187 m_targetSnapshotValuesHasBeenSet = true;
188 m_targetSnapshotValues = Aws::MakeShared<Snapshot>("AdministrativeAction", std::forward<TargetSnapshotValuesT>(value));
189 }
190 template <typename TargetSnapshotValuesT = Snapshot>
191 AdministrativeAction& WithTargetSnapshotValues(TargetSnapshotValuesT&& value) {
192 SetTargetSnapshotValues(std::forward<TargetSnapshotValuesT>(value));
193 return *this;
194 }
196
198
202 inline long long GetTotalTransferBytes() const { return m_totalTransferBytes; }
203 inline bool TotalTransferBytesHasBeenSet() const { return m_totalTransferBytesHasBeenSet; }
204 inline void SetTotalTransferBytes(long long value) {
205 m_totalTransferBytesHasBeenSet = true;
206 m_totalTransferBytes = value;
207 }
210 return *this;
211 }
213
215
219 inline long long GetRemainingTransferBytes() const { return m_remainingTransferBytes; }
220 inline bool RemainingTransferBytesHasBeenSet() const { return m_remainingTransferBytesHasBeenSet; }
221 inline void SetRemainingTransferBytes(long long value) {
222 m_remainingTransferBytesHasBeenSet = true;
223 m_remainingTransferBytes = value;
224 }
227 return *this;
228 }
230
232
233 inline const Aws::String& GetMessage() const { return m_message; }
234 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
235 template <typename MessageT = Aws::String>
236 void SetMessage(MessageT&& value) {
237 m_messageHasBeenSet = true;
238 m_message = std::forward<MessageT>(value);
239 }
240 template <typename MessageT = Aws::String>
242 SetMessage(std::forward<MessageT>(value));
243 return *this;
244 }
246 private:
248
249 int m_progressPercent{0};
250
251 Aws::Utils::DateTime m_requestTime{};
252
253 Status m_status{Status::NOT_SET};
254
255 std::shared_ptr<FileSystem> m_targetFileSystemValues;
256
257 AdministrativeActionFailureDetails m_failureDetails;
258
259 std::shared_ptr<Volume> m_targetVolumeValues;
260
261 std::shared_ptr<Snapshot> m_targetSnapshotValues;
262
263 long long m_totalTransferBytes{0};
264
265 long long m_remainingTransferBytes{0};
266
267 Aws::String m_message;
268 bool m_administrativeActionTypeHasBeenSet = false;
269 bool m_progressPercentHasBeenSet = false;
270 bool m_requestTimeHasBeenSet = false;
271 bool m_statusHasBeenSet = false;
272 bool m_targetFileSystemValuesHasBeenSet = false;
273 bool m_failureDetailsHasBeenSet = false;
274 bool m_targetVolumeValuesHasBeenSet = false;
275 bool m_targetSnapshotValuesHasBeenSet = false;
276 bool m_totalTransferBytesHasBeenSet = false;
277 bool m_remainingTransferBytesHasBeenSet = false;
278 bool m_messageHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace FSx
283} // namespace Aws
AdministrativeAction & WithTargetSnapshotValues(TargetSnapshotValuesT &&value)
AdministrativeAction & WithRequestTime(RequestTimeT &&value)
void SetTargetFileSystemValues(TargetFileSystemValuesT &&value)
AdministrativeAction & WithRemainingTransferBytes(long long value)
AdministrativeAction & WithFailureDetails(FailureDetailsT &&value)
AWS_FSX_API AdministrativeAction()=default
void SetFailureDetails(FailureDetailsT &&value)
void SetTargetSnapshotValues(TargetSnapshotValuesT &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AdministrativeAction & WithProgressPercent(int value)
AdministrativeAction & WithStatus(Status value)
AdministrativeAction & WithTargetVolumeValues(TargetVolumeValuesT &&value)
const Snapshot & GetTargetSnapshotValues() const
AWS_FSX_API AdministrativeAction(Aws::Utils::Json::JsonView jsonValue)
AdministrativeActionType GetAdministrativeActionType() const
AdministrativeAction & WithTotalTransferBytes(long long value)
AdministrativeAction & WithMessage(MessageT &&value)
AWS_FSX_API AdministrativeAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetRequestTime() const
void SetRequestTime(RequestTimeT &&value)
const AdministrativeActionFailureDetails & GetFailureDetails() const
AdministrativeAction & WithAdministrativeActionType(AdministrativeActionType value)
void SetTargetVolumeValues(TargetVolumeValuesT &&value)
const FileSystem & GetTargetFileSystemValues() const
void SetAdministrativeActionType(AdministrativeActionType value)
AdministrativeAction & WithTargetFileSystemValues(TargetFileSystemValuesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue