AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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 <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSAllocator.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 FSx
27{
28namespace Model
29{
30 class FileSystem;
31 class Volume;
32 class Snapshot;
33
42 {
43 public:
44 AWS_FSX_API AdministrativeAction() = default;
48
49
51
52 inline AdministrativeActionType GetAdministrativeActionType() const { return m_administrativeActionType; }
53 inline bool AdministrativeActionTypeHasBeenSet() const { return m_administrativeActionTypeHasBeenSet; }
54 inline void SetAdministrativeActionType(AdministrativeActionType value) { m_administrativeActionTypeHasBeenSet = true; m_administrativeActionType = value; }
57
59
64 inline int GetProgressPercent() const { return m_progressPercent; }
65 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
66 inline void SetProgressPercent(int value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
67 inline AdministrativeAction& WithProgressPercent(int value) { SetProgressPercent(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetRequestTime() const { return m_requestTime; }
75 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
76 template<typename RequestTimeT = Aws::Utils::DateTime>
77 void SetRequestTime(RequestTimeT&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::forward<RequestTimeT>(value); }
78 template<typename RequestTimeT = Aws::Utils::DateTime>
79 AdministrativeAction& WithRequestTime(RequestTimeT&& value) { SetRequestTime(std::forward<RequestTimeT>(value)); return *this;}
81
83
105 inline Status GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
108 inline AdministrativeAction& WithStatus(Status value) { SetStatus(value); return *this;}
110
112
118 return *m_targetFileSystemValues;
119 }
120 inline bool TargetFileSystemValuesHasBeenSet() const { return m_targetFileSystemValuesHasBeenSet; }
121 template<typename TargetFileSystemValuesT = FileSystem>
122 void SetTargetFileSystemValues(TargetFileSystemValuesT&& value) {
123 m_targetFileSystemValuesHasBeenSet = true;
124 m_targetFileSystemValues = Aws::MakeShared<FileSystem>("AdministrativeAction", std::forward<TargetFileSystemValuesT>(value));
125 }
126 template<typename TargetFileSystemValuesT = FileSystem>
127 AdministrativeAction& WithTargetFileSystemValues(TargetFileSystemValuesT&& value) { SetTargetFileSystemValues(std::forward<TargetFileSystemValuesT>(value)); return *this;}
129
131
132 inline const AdministrativeActionFailureDetails& GetFailureDetails() const { return m_failureDetails; }
133 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
134 template<typename FailureDetailsT = AdministrativeActionFailureDetails>
135 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::forward<FailureDetailsT>(value); }
136 template<typename FailureDetailsT = AdministrativeActionFailureDetails>
137 AdministrativeAction& WithFailureDetails(FailureDetailsT&& value) { SetFailureDetails(std::forward<FailureDetailsT>(value)); return *this;}
139
141
142 inline const Volume& GetTargetVolumeValues() const{
143 return *m_targetVolumeValues;
144 }
145 inline bool TargetVolumeValuesHasBeenSet() const { return m_targetVolumeValuesHasBeenSet; }
146 template<typename TargetVolumeValuesT = Volume>
147 void SetTargetVolumeValues(TargetVolumeValuesT&& value) {
148 m_targetVolumeValuesHasBeenSet = true;
149 m_targetVolumeValues = Aws::MakeShared<Volume>("AdministrativeAction", std::forward<TargetVolumeValuesT>(value));
150 }
151 template<typename TargetVolumeValuesT = Volume>
152 AdministrativeAction& WithTargetVolumeValues(TargetVolumeValuesT&& value) { SetTargetVolumeValues(std::forward<TargetVolumeValuesT>(value)); return *this;}
154
156
157 inline const Snapshot& GetTargetSnapshotValues() const{
158 return *m_targetSnapshotValues;
159 }
160 inline bool TargetSnapshotValuesHasBeenSet() const { return m_targetSnapshotValuesHasBeenSet; }
161 template<typename TargetSnapshotValuesT = Snapshot>
162 void SetTargetSnapshotValues(TargetSnapshotValuesT&& value) {
163 m_targetSnapshotValuesHasBeenSet = true;
164 m_targetSnapshotValues = Aws::MakeShared<Snapshot>("AdministrativeAction", std::forward<TargetSnapshotValuesT>(value));
165 }
166 template<typename TargetSnapshotValuesT = Snapshot>
167 AdministrativeAction& WithTargetSnapshotValues(TargetSnapshotValuesT&& value) { SetTargetSnapshotValues(std::forward<TargetSnapshotValuesT>(value)); return *this;}
169
171
175 inline long long GetTotalTransferBytes() const { return m_totalTransferBytes; }
176 inline bool TotalTransferBytesHasBeenSet() const { return m_totalTransferBytesHasBeenSet; }
177 inline void SetTotalTransferBytes(long long value) { m_totalTransferBytesHasBeenSet = true; m_totalTransferBytes = value; }
178 inline AdministrativeAction& WithTotalTransferBytes(long long value) { SetTotalTransferBytes(value); return *this;}
180
182
186 inline long long GetRemainingTransferBytes() const { return m_remainingTransferBytes; }
187 inline bool RemainingTransferBytesHasBeenSet() const { return m_remainingTransferBytesHasBeenSet; }
188 inline void SetRemainingTransferBytes(long long value) { m_remainingTransferBytesHasBeenSet = true; m_remainingTransferBytes = value; }
189 inline AdministrativeAction& WithRemainingTransferBytes(long long value) { SetRemainingTransferBytes(value); return *this;}
191
193
194 inline const Aws::String& GetMessage() const { return m_message; }
195 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
196 template<typename MessageT = Aws::String>
197 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
198 template<typename MessageT = Aws::String>
199 AdministrativeAction& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
201 private:
202
204 bool m_administrativeActionTypeHasBeenSet = false;
205
206 int m_progressPercent{0};
207 bool m_progressPercentHasBeenSet = false;
208
209 Aws::Utils::DateTime m_requestTime{};
210 bool m_requestTimeHasBeenSet = false;
211
212 Status m_status{Status::NOT_SET};
213 bool m_statusHasBeenSet = false;
214
215 std::shared_ptr<FileSystem> m_targetFileSystemValues;
216 bool m_targetFileSystemValuesHasBeenSet = false;
217
218 AdministrativeActionFailureDetails m_failureDetails;
219 bool m_failureDetailsHasBeenSet = false;
220
221 std::shared_ptr<Volume> m_targetVolumeValues;
222 bool m_targetVolumeValuesHasBeenSet = false;
223
224 std::shared_ptr<Snapshot> m_targetSnapshotValues;
225 bool m_targetSnapshotValuesHasBeenSet = false;
226
227 long long m_totalTransferBytes{0};
228 bool m_totalTransferBytesHasBeenSet = false;
229
230 long long m_remainingTransferBytes{0};
231 bool m_remainingTransferBytesHasBeenSet = false;
232
233 Aws::String m_message;
234 bool m_messageHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace FSx
239} // 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