AWS SDK for C++  1.9.104
AWS SDK for C++
ClusterSnapshotCopyStatus.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace Redshift
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetDestinationRegion() const{ return m_destinationRegion; }
48 
53  inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
54 
59  inline void SetDestinationRegion(const Aws::String& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
60 
65  inline void SetDestinationRegion(Aws::String&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = std::move(value); }
66 
71  inline void SetDestinationRegion(const char* value) { m_destinationRegionHasBeenSet = true; m_destinationRegion.assign(value); }
72 
77  inline ClusterSnapshotCopyStatus& WithDestinationRegion(const Aws::String& value) { SetDestinationRegion(value); return *this;}
78 
83  inline ClusterSnapshotCopyStatus& WithDestinationRegion(Aws::String&& value) { SetDestinationRegion(std::move(value)); return *this;}
84 
89  inline ClusterSnapshotCopyStatus& WithDestinationRegion(const char* value) { SetDestinationRegion(value); return *this;}
90 
91 
96  inline long long GetRetentionPeriod() const{ return m_retentionPeriod; }
97 
102  inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
103 
108  inline void SetRetentionPeriod(long long value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
109 
114  inline ClusterSnapshotCopyStatus& WithRetentionPeriod(long long value) { SetRetentionPeriod(value); return *this;}
115 
116 
123  inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
124 
131  inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
132 
139  inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
140 
147  inline ClusterSnapshotCopyStatus& WithManualSnapshotRetentionPeriod(int value) { SetManualSnapshotRetentionPeriod(value); return *this;}
148 
149 
153  inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
154 
158  inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
159 
163  inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
164 
168  inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::move(value); }
169 
173  inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
174 
178  inline ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
179 
183  inline ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(std::move(value)); return *this;}
184 
188  inline ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
189 
190  private:
191 
192  Aws::String m_destinationRegion;
193  bool m_destinationRegionHasBeenSet;
194 
195  long long m_retentionPeriod;
196  bool m_retentionPeriodHasBeenSet;
197 
198  int m_manualSnapshotRetentionPeriod;
199  bool m_manualSnapshotRetentionPeriodHasBeenSet;
200 
201  Aws::String m_snapshotCopyGrantName;
202  bool m_snapshotCopyGrantNameHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace Redshift
207 } // namespace Aws
Aws::Redshift::Model::ClusterSnapshotCopyStatus::GetManualSnapshotRetentionPeriod
int GetManualSnapshotRetentionPeriod() const
Definition: ClusterSnapshotCopyStatus.h:123
Aws::Redshift::Model::ClusterSnapshotCopyStatus::ManualSnapshotRetentionPeriodHasBeenSet
bool ManualSnapshotRetentionPeriodHasBeenSet() const
Definition: ClusterSnapshotCopyStatus.h:131
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SetDestinationRegion
void SetDestinationRegion(Aws::String &&value)
Definition: ClusterSnapshotCopyStatus.h:65
Aws::Redshift::Model::ClusterSnapshotCopyStatus
Definition: ClusterSnapshotCopyStatus.h:33
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SnapshotCopyGrantNameHasBeenSet
bool SnapshotCopyGrantNameHasBeenSet() const
Definition: ClusterSnapshotCopyStatus.h:158
Aws::Redshift::Model::ClusterSnapshotCopyStatus::RetentionPeriodHasBeenSet
bool RetentionPeriodHasBeenSet() const
Definition: ClusterSnapshotCopyStatus.h:102
AWSStreamFwd.h
Aws::Redshift::Model::ClusterSnapshotCopyStatus::WithDestinationRegion
ClusterSnapshotCopyStatus & WithDestinationRegion(const char *value)
Definition: ClusterSnapshotCopyStatus.h:89
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(Aws::String &&value)
Definition: ClusterSnapshotCopyStatus.h:168
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ClusterSnapshotCopyStatus::WithManualSnapshotRetentionPeriod
ClusterSnapshotCopyStatus & WithManualSnapshotRetentionPeriod(int value)
Definition: ClusterSnapshotCopyStatus.h:147
Aws::Redshift::Model::ClusterSnapshotCopyStatus::ClusterSnapshotCopyStatus
ClusterSnapshotCopyStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ClusterSnapshotCopyStatus::operator=
ClusterSnapshotCopyStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ClusterSnapshotCopyStatus::WithDestinationRegion
ClusterSnapshotCopyStatus & WithDestinationRegion(Aws::String &&value)
Definition: ClusterSnapshotCopyStatus.h:83
Aws::Redshift::Model::ClusterSnapshotCopyStatus::WithRetentionPeriod
ClusterSnapshotCopyStatus & WithRetentionPeriod(long long value)
Definition: ClusterSnapshotCopyStatus.h:114
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ClusterSnapshotCopyStatus::WithSnapshotCopyGrantName
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(const Aws::String &value)
Definition: ClusterSnapshotCopyStatus.h:178
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ClusterSnapshotCopyStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ClusterSnapshotCopyStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSString.h
Aws::Redshift::Model::ClusterSnapshotCopyStatus::DestinationRegionHasBeenSet
bool DestinationRegionHasBeenSet() const
Definition: ClusterSnapshotCopyStatus.h:53
Aws::Redshift::Model::ClusterSnapshotCopyStatus::WithSnapshotCopyGrantName
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(const char *value)
Definition: ClusterSnapshotCopyStatus.h:188
Aws::Redshift::Model::ClusterSnapshotCopyStatus::GetRetentionPeriod
long long GetRetentionPeriod() const
Definition: ClusterSnapshotCopyStatus.h:96
Aws::Redshift::Model::ClusterSnapshotCopyStatus::WithSnapshotCopyGrantName
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(Aws::String &&value)
Definition: ClusterSnapshotCopyStatus.h:183
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(const char *value)
Definition: ClusterSnapshotCopyStatus.h:173
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SetManualSnapshotRetentionPeriod
void SetManualSnapshotRetentionPeriod(int value)
Definition: ClusterSnapshotCopyStatus.h:139
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SetDestinationRegion
void SetDestinationRegion(const char *value)
Definition: ClusterSnapshotCopyStatus.h:71
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::ClusterSnapshotCopyStatus::WithDestinationRegion
ClusterSnapshotCopyStatus & WithDestinationRegion(const Aws::String &value)
Definition: ClusterSnapshotCopyStatus.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SetDestinationRegion
void SetDestinationRegion(const Aws::String &value)
Definition: ClusterSnapshotCopyStatus.h:59
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SetRetentionPeriod
void SetRetentionPeriod(long long value)
Definition: ClusterSnapshotCopyStatus.h:108
Aws::Redshift::Model::ClusterSnapshotCopyStatus::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(const Aws::String &value)
Definition: ClusterSnapshotCopyStatus.h:163
Aws::Redshift::Model::ClusterSnapshotCopyStatus::GetSnapshotCopyGrantName
const Aws::String & GetSnapshotCopyGrantName() const
Definition: ClusterSnapshotCopyStatus.h:153
Aws::Redshift::Model::ClusterSnapshotCopyStatus::ClusterSnapshotCopyStatus
ClusterSnapshotCopyStatus()
Aws::Redshift::Model::ClusterSnapshotCopyStatus::GetDestinationRegion
const Aws::String & GetDestinationRegion() const
Definition: ClusterSnapshotCopyStatus.h:47