AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsRedshiftClusterRestoreStatus.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API AwsRedshiftClusterRestoreStatus() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline double GetCurrentRestoreRateInMegaBytesPerSecond() const { return m_currentRestoreRateInMegaBytesPerSecond; }
48 inline bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const { return m_currentRestoreRateInMegaBytesPerSecondHasBeenSet; }
49 inline void SetCurrentRestoreRateInMegaBytesPerSecond(double value) { m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = true; m_currentRestoreRateInMegaBytesPerSecond = value; }
52
54
59 inline long long GetElapsedTimeInSeconds() const { return m_elapsedTimeInSeconds; }
60 inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; }
61 inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
64
66
71 inline long long GetEstimatedTimeToCompletionInSeconds() const { return m_estimatedTimeToCompletionInSeconds; }
72 inline bool EstimatedTimeToCompletionInSecondsHasBeenSet() const { return m_estimatedTimeToCompletionInSecondsHasBeenSet; }
73 inline void SetEstimatedTimeToCompletionInSeconds(long long value) { m_estimatedTimeToCompletionInSecondsHasBeenSet = true; m_estimatedTimeToCompletionInSeconds = value; }
76
78
82 inline long long GetProgressInMegaBytes() const { return m_progressInMegaBytes; }
83 inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; }
84 inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
85 inline AwsRedshiftClusterRestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
87
89
94 inline long long GetSnapshotSizeInMegaBytes() const { return m_snapshotSizeInMegaBytes; }
95 inline bool SnapshotSizeInMegaBytesHasBeenSet() const { return m_snapshotSizeInMegaBytesHasBeenSet; }
96 inline void SetSnapshotSizeInMegaBytes(long long value) { m_snapshotSizeInMegaBytesHasBeenSet = true; m_snapshotSizeInMegaBytes = value; }
99
101
105 inline const Aws::String& GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 template<typename StatusT = Aws::String>
108 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
109 template<typename StatusT = Aws::String>
110 AwsRedshiftClusterRestoreStatus& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
112 private:
113
114 double m_currentRestoreRateInMegaBytesPerSecond{0.0};
115 bool m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = false;
116
117 long long m_elapsedTimeInSeconds{0};
118 bool m_elapsedTimeInSecondsHasBeenSet = false;
119
120 long long m_estimatedTimeToCompletionInSeconds{0};
121 bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false;
122
123 long long m_progressInMegaBytes{0};
124 bool m_progressInMegaBytesHasBeenSet = false;
125
126 long long m_snapshotSizeInMegaBytes{0};
127 bool m_snapshotSizeInMegaBytesHasBeenSet = false;
128
129 Aws::String m_status;
130 bool m_statusHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SecurityHub
135} // namespace Aws
AWS_SECURITYHUB_API AwsRedshiftClusterRestoreStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsRedshiftClusterRestoreStatus(Aws::Utils::Json::JsonView jsonValue)
AwsRedshiftClusterRestoreStatus & WithSnapshotSizeInMegaBytes(long long value)
AwsRedshiftClusterRestoreStatus & WithStatus(StatusT &&value)
AwsRedshiftClusterRestoreStatus & WithEstimatedTimeToCompletionInSeconds(long long value)
AwsRedshiftClusterRestoreStatus & WithProgressInMegaBytes(long long value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsRedshiftClusterRestoreStatus()=default
AwsRedshiftClusterRestoreStatus & WithCurrentRestoreRateInMegaBytesPerSecond(double value)
AwsRedshiftClusterRestoreStatus & WithElapsedTimeInSeconds(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue