AWS SDK for C++  0.14.3
AWS SDK for C++
RestoreStatus.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Redshift
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  RestoreStatus();
43  RestoreStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
52  inline const Aws::String& GetStatus() const{ return m_status; }
53 
58  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
59 
64  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
65 
70  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
71 
76  inline RestoreStatus& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
77 
82  inline RestoreStatus& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
83 
88  inline RestoreStatus& WithStatus(const char* value) { SetStatus(value); return *this;}
89 
94  inline double GetCurrentRestoreRateInMegaBytesPerSecond() const{ return m_currentRestoreRateInMegaBytesPerSecond; }
95 
100  inline void SetCurrentRestoreRateInMegaBytesPerSecond(double value) { m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = true; m_currentRestoreRateInMegaBytesPerSecond = value; }
101 
106  inline RestoreStatus& WithCurrentRestoreRateInMegaBytesPerSecond(double value) { SetCurrentRestoreRateInMegaBytesPerSecond(value); return *this;}
107 
111  inline long long GetSnapshotSizeInMegaBytes() const{ return m_snapshotSizeInMegaBytes; }
112 
116  inline void SetSnapshotSizeInMegaBytes(long long value) { m_snapshotSizeInMegaBytesHasBeenSet = true; m_snapshotSizeInMegaBytes = value; }
117 
121  inline RestoreStatus& WithSnapshotSizeInMegaBytes(long long value) { SetSnapshotSizeInMegaBytes(value); return *this;}
122 
127  inline long long GetProgressInMegaBytes() const{ return m_progressInMegaBytes; }
128 
133  inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
134 
139  inline RestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
140 
145  inline long long GetElapsedTimeInSeconds() const{ return m_elapsedTimeInSeconds; }
146 
151  inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
152 
157  inline RestoreStatus& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;}
158 
163  inline long long GetEstimatedTimeToCompletionInSeconds() const{ return m_estimatedTimeToCompletionInSeconds; }
164 
169  inline void SetEstimatedTimeToCompletionInSeconds(long long value) { m_estimatedTimeToCompletionInSecondsHasBeenSet = true; m_estimatedTimeToCompletionInSeconds = value; }
170 
175  inline RestoreStatus& WithEstimatedTimeToCompletionInSeconds(long long value) { SetEstimatedTimeToCompletionInSeconds(value); return *this;}
176 
177  private:
178  Aws::String m_status;
179  bool m_statusHasBeenSet;
180  double m_currentRestoreRateInMegaBytesPerSecond;
181  bool m_currentRestoreRateInMegaBytesPerSecondHasBeenSet;
182  long long m_snapshotSizeInMegaBytes;
183  bool m_snapshotSizeInMegaBytesHasBeenSet;
184  long long m_progressInMegaBytes;
185  bool m_progressInMegaBytesHasBeenSet;
186  long long m_elapsedTimeInSeconds;
187  bool m_elapsedTimeInSecondsHasBeenSet;
188  long long m_estimatedTimeToCompletionInSeconds;
189  bool m_estimatedTimeToCompletionInSecondsHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace Redshift
194 } // namespace Aws
void SetElapsedTimeInSeconds(long long value)
long long GetElapsedTimeInSeconds() const
void SetCurrentRestoreRateInMegaBytesPerSecond(double value)
const Aws::String & GetStatus() const
Definition: RestoreStatus.h:52
long long GetEstimatedTimeToCompletionInSeconds() const
RestoreStatus & WithEstimatedTimeToCompletionInSeconds(long long value)
void SetEstimatedTimeToCompletionInSeconds(long long value)
void SetSnapshotSizeInMegaBytes(long long value)
RestoreStatus & WithStatus(const char *value)
Definition: RestoreStatus.h:88
long long GetProgressInMegaBytes() const
#define AWS_REDSHIFT_API
void SetProgressInMegaBytes(long long value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
RestoreStatus & WithSnapshotSizeInMegaBytes(long long value)
RestoreStatus & WithElapsedTimeInSeconds(long long value)
RestoreStatus & WithProgressInMegaBytes(long long value)
void SetStatus(Aws::String &&value)
Definition: RestoreStatus.h:64
long long GetSnapshotSizeInMegaBytes() const
RestoreStatus & WithStatus(Aws::String &&value)
Definition: RestoreStatus.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetStatus(const Aws::String &value)
Definition: RestoreStatus.h:58
void SetStatus(const char *value)
Definition: RestoreStatus.h:70
RestoreStatus & WithCurrentRestoreRateInMegaBytesPerSecond(double value)
RestoreStatus & WithStatus(const Aws::String &value)
Definition: RestoreStatus.h:76
double GetCurrentRestoreRateInMegaBytesPerSecond() const
Definition: RestoreStatus.h:94
JSON (JavaScript Object Notation).