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>
66 inline void SetProgressPercent(
int value) { m_progressPercentHasBeenSet =
true; m_progressPercent = value; }
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>
118 return *m_targetFileSystemValues;
121 template<
typename TargetFileSystemValuesT = FileSystem>
123 m_targetFileSystemValuesHasBeenSet =
true;
124 m_targetFileSystemValues = Aws::MakeShared<FileSystem>(
"AdministrativeAction", std::forward<TargetFileSystemValuesT>(value));
126 template<
typename TargetFileSystemValuesT = FileSystem>
134 template<
typename FailureDetailsT = AdministrativeActionFailureDetails>
135 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet =
true; m_failureDetails = std::forward<FailureDetailsT>(value); }
136 template<
typename FailureDetailsT = AdministrativeActionFailureDetails>
143 return *m_targetVolumeValues;
146 template<
typename TargetVolumeValuesT = Volume>
148 m_targetVolumeValuesHasBeenSet =
true;
149 m_targetVolumeValues = Aws::MakeShared<Volume>(
"AdministrativeAction", std::forward<TargetVolumeValuesT>(value));
151 template<
typename TargetVolumeValuesT = Volume>
158 return *m_targetSnapshotValues;
161 template<
typename TargetSnapshotValuesT = Snapshot>
163 m_targetSnapshotValuesHasBeenSet =
true;
164 m_targetSnapshotValues = Aws::MakeShared<Snapshot>(
"AdministrativeAction", std::forward<TargetSnapshotValuesT>(value));
166 template<
typename TargetSnapshotValuesT = Snapshot>
177 inline void SetTotalTransferBytes(
long long value) { m_totalTransferBytesHasBeenSet =
true; m_totalTransferBytes = value; }
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>
204 bool m_administrativeActionTypeHasBeenSet =
false;
206 int m_progressPercent{0};
207 bool m_progressPercentHasBeenSet =
false;
210 bool m_requestTimeHasBeenSet =
false;
213 bool m_statusHasBeenSet =
false;
215 std::shared_ptr<FileSystem> m_targetFileSystemValues;
216 bool m_targetFileSystemValuesHasBeenSet =
false;
218 AdministrativeActionFailureDetails m_failureDetails;
219 bool m_failureDetailsHasBeenSet =
false;
221 std::shared_ptr<Volume> m_targetVolumeValues;
222 bool m_targetVolumeValuesHasBeenSet =
false;
224 std::shared_ptr<Snapshot> m_targetSnapshotValues;
225 bool m_targetSnapshotValuesHasBeenSet =
false;
227 long long m_totalTransferBytes{0};
228 bool m_totalTransferBytesHasBeenSet =
false;
230 long long m_remainingTransferBytes{0};
231 bool m_remainingTransferBytesHasBeenSet =
false;
234 bool m_messageHasBeenSet =
false;
AdministrativeAction & WithTargetSnapshotValues(TargetSnapshotValuesT &&value)
AdministrativeAction & WithRequestTime(RequestTimeT &&value)
bool RemainingTransferBytesHasBeenSet() const
bool TargetFileSystemValuesHasBeenSet() const
void SetTargetFileSystemValues(TargetFileSystemValuesT &&value)
AdministrativeAction & WithRemainingTransferBytes(long long value)
bool RequestTimeHasBeenSet() const
bool FailureDetailsHasBeenSet() const
AdministrativeAction & WithFailureDetails(FailureDetailsT &&value)
void SetMessage(MessageT &&value)
AWS_FSX_API AdministrativeAction()=default
void SetRemainingTransferBytes(long long value)
void SetStatus(Status value)
void SetFailureDetails(FailureDetailsT &&value)
void SetTargetSnapshotValues(TargetSnapshotValuesT &&value)
const Volume & GetTargetVolumeValues() const
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageHasBeenSet() const
const Aws::String & GetMessage() const
long long GetTotalTransferBytes() const
AdministrativeAction & WithProgressPercent(int value)
AdministrativeAction & WithStatus(Status value)
int GetProgressPercent() const
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)
bool ProgressPercentHasBeenSet() const
bool TotalTransferBytesHasBeenSet() const
bool AdministrativeActionTypeHasBeenSet() const
AWS_FSX_API AdministrativeAction & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
const Aws::Utils::DateTime & GetRequestTime() const
void SetRequestTime(RequestTimeT &&value)
bool TargetVolumeValuesHasBeenSet() const
const AdministrativeActionFailureDetails & GetFailureDetails() const
long long GetRemainingTransferBytes() const
void SetTotalTransferBytes(long long value)
void SetProgressPercent(int value)
AdministrativeAction & WithAdministrativeActionType(AdministrativeActionType value)
void SetTargetVolumeValues(TargetVolumeValuesT &&value)
const FileSystem & GetTargetFileSystemValues() const
void SetAdministrativeActionType(AdministrativeActionType value)
AdministrativeAction & WithTargetFileSystemValues(TargetFileSystemValuesT &&value)
bool TargetSnapshotValuesHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue