AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdministrativeAction.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/model/AdministrativeActionType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/fsx/model/Status.h>
11#include <aws/fsx/model/AdministrativeActionFailureDetails.h>
12#include <utility>
13#include <memory>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace FSx
26{
27namespace Model
28{
29 class FileSystem;
30 class Volume;
31 class Snapshot;
32
41 {
42 public:
43 AWS_FSX_API AdministrativeAction();
47
48
50
51 inline const AdministrativeActionType& GetAdministrativeActionType() const{ return m_administrativeActionType; }
52 inline bool AdministrativeActionTypeHasBeenSet() const { return m_administrativeActionTypeHasBeenSet; }
53 inline void SetAdministrativeActionType(const AdministrativeActionType& value) { m_administrativeActionTypeHasBeenSet = true; m_administrativeActionType = value; }
54 inline void SetAdministrativeActionType(AdministrativeActionType&& value) { m_administrativeActionTypeHasBeenSet = true; m_administrativeActionType = std::move(value); }
58
60
65 inline int GetProgressPercent() const{ return m_progressPercent; }
66 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
67 inline void SetProgressPercent(int value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
68 inline AdministrativeAction& WithProgressPercent(int value) { SetProgressPercent(value); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetRequestTime() const{ return m_requestTime; }
76 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
77 inline void SetRequestTime(const Aws::Utils::DateTime& value) { m_requestTimeHasBeenSet = true; m_requestTime = value; }
78 inline void SetRequestTime(Aws::Utils::DateTime&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::move(value); }
79 inline AdministrativeAction& WithRequestTime(const Aws::Utils::DateTime& value) { SetRequestTime(value); return *this;}
80 inline AdministrativeAction& WithRequestTime(Aws::Utils::DateTime&& value) { SetRequestTime(std::move(value)); return *this;}
82
84
106 inline const Status& GetStatus() const{ return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
109 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
110 inline AdministrativeAction& WithStatus(const Status& value) { SetStatus(value); return *this;}
111 inline AdministrativeAction& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
113
115
120 AWS_FSX_API const FileSystem& GetTargetFileSystemValues() const;
121 AWS_FSX_API bool TargetFileSystemValuesHasBeenSet() const;
122 AWS_FSX_API void SetTargetFileSystemValues(const FileSystem& value);
123 AWS_FSX_API void SetTargetFileSystemValues(FileSystem&& value);
127
129
130 inline const AdministrativeActionFailureDetails& GetFailureDetails() const{ return m_failureDetails; }
131 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
132 inline void SetFailureDetails(const AdministrativeActionFailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
133 inline void SetFailureDetails(AdministrativeActionFailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); }
137
139
140 AWS_FSX_API const Volume& GetTargetVolumeValues() const;
141 AWS_FSX_API bool TargetVolumeValuesHasBeenSet() const;
142 AWS_FSX_API void SetTargetVolumeValues(const Volume& value);
143 AWS_FSX_API void SetTargetVolumeValues(Volume&& value);
147
149
150 AWS_FSX_API const Snapshot& GetTargetSnapshotValues() const;
151 AWS_FSX_API bool TargetSnapshotValuesHasBeenSet() const;
152 AWS_FSX_API void SetTargetSnapshotValues(const Snapshot& value);
153 AWS_FSX_API void SetTargetSnapshotValues(Snapshot&& value);
157
159
163 inline long long GetTotalTransferBytes() const{ return m_totalTransferBytes; }
164 inline bool TotalTransferBytesHasBeenSet() const { return m_totalTransferBytesHasBeenSet; }
165 inline void SetTotalTransferBytes(long long value) { m_totalTransferBytesHasBeenSet = true; m_totalTransferBytes = value; }
166 inline AdministrativeAction& WithTotalTransferBytes(long long value) { SetTotalTransferBytes(value); return *this;}
168
170
174 inline long long GetRemainingTransferBytes() const{ return m_remainingTransferBytes; }
175 inline bool RemainingTransferBytesHasBeenSet() const { return m_remainingTransferBytesHasBeenSet; }
176 inline void SetRemainingTransferBytes(long long value) { m_remainingTransferBytesHasBeenSet = true; m_remainingTransferBytes = value; }
177 inline AdministrativeAction& WithRemainingTransferBytes(long long value) { SetRemainingTransferBytes(value); return *this;}
179 private:
180
181 AdministrativeActionType m_administrativeActionType;
182 bool m_administrativeActionTypeHasBeenSet = false;
183
184 int m_progressPercent;
185 bool m_progressPercentHasBeenSet = false;
186
187 Aws::Utils::DateTime m_requestTime;
188 bool m_requestTimeHasBeenSet = false;
189
190 Status m_status;
191 bool m_statusHasBeenSet = false;
192
193 std::shared_ptr<FileSystem> m_targetFileSystemValues;
194 bool m_targetFileSystemValuesHasBeenSet = false;
195
196 AdministrativeActionFailureDetails m_failureDetails;
197 bool m_failureDetailsHasBeenSet = false;
198
199 std::shared_ptr<Volume> m_targetVolumeValues;
200 bool m_targetVolumeValuesHasBeenSet = false;
201
202 std::shared_ptr<Snapshot> m_targetSnapshotValues;
203 bool m_targetSnapshotValuesHasBeenSet = false;
204
205 long long m_totalTransferBytes;
206 bool m_totalTransferBytesHasBeenSet = false;
207
208 long long m_remainingTransferBytes;
209 bool m_remainingTransferBytesHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace FSx
214} // namespace Aws
void SetFailureDetails(const AdministrativeActionFailureDetails &value)
AdministrativeAction & WithRemainingTransferBytes(long long value)
AdministrativeAction & WithAdministrativeActionType(AdministrativeActionType &&value)
AWS_FSX_API void SetTargetSnapshotValues(const Snapshot &value)
AdministrativeAction & WithFailureDetails(const AdministrativeActionFailureDetails &value)
AWS_FSX_API void SetTargetSnapshotValues(Snapshot &&value)
void SetAdministrativeActionType(const AdministrativeActionType &value)
AWS_FSX_API AdministrativeAction & WithTargetVolumeValues(Volume &&value)
AWS_FSX_API const Snapshot & GetTargetSnapshotValues() const
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAdministrativeActionType(AdministrativeActionType &&value)
AWS_FSX_API bool TargetSnapshotValuesHasBeenSet() const
AdministrativeAction & WithRequestTime(Aws::Utils::DateTime &&value)
AWS_FSX_API void SetTargetVolumeValues(const Volume &value)
AdministrativeAction & WithProgressPercent(int value)
AWS_FSX_API AdministrativeAction & WithTargetFileSystemValues(FileSystem &&value)
AWS_FSX_API AdministrativeAction & WithTargetVolumeValues(const Volume &value)
AWS_FSX_API bool TargetVolumeValuesHasBeenSet() const
AWS_FSX_API bool TargetFileSystemValuesHasBeenSet() const
AWS_FSX_API AdministrativeAction(Aws::Utils::Json::JsonView jsonValue)
void SetFailureDetails(AdministrativeActionFailureDetails &&value)
AWS_FSX_API const Volume & GetTargetVolumeValues() const
AdministrativeAction & WithTotalTransferBytes(long long value)
AWS_FSX_API void SetTargetFileSystemValues(FileSystem &&value)
AdministrativeAction & WithStatus(Status &&value)
AWS_FSX_API AdministrativeAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AdministrativeAction & WithRequestTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetRequestTime() const
const AdministrativeActionFailureDetails & GetFailureDetails() const
AWS_FSX_API AdministrativeAction & WithTargetSnapshotValues(const Snapshot &value)
AWS_FSX_API const FileSystem & GetTargetFileSystemValues() const
AdministrativeAction & WithAdministrativeActionType(const AdministrativeActionType &value)
AWS_FSX_API AdministrativeAction & WithTargetSnapshotValues(Snapshot &&value)
AWS_FSX_API void SetTargetVolumeValues(Volume &&value)
AWS_FSX_API AdministrativeAction & WithTargetFileSystemValues(const FileSystem &value)
const AdministrativeActionType & GetAdministrativeActionType() const
void SetRequestTime(const Aws::Utils::DateTime &value)
void SetRequestTime(Aws::Utils::DateTime &&value)
AWS_FSX_API void SetTargetFileSystemValues(const FileSystem &value)
AdministrativeAction & WithFailureDetails(AdministrativeActionFailureDetails &&value)
AdministrativeAction & WithStatus(const Status &value)
Aws::Utils::Json::JsonValue JsonValue