AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ClusterSnapshotCopyStatus.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift
22{
23namespace Model
24{
25
33 {
34 public:
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API 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
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
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
179
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 = false;
194
195 long long m_retentionPeriod;
196 bool m_retentionPeriodHasBeenSet = false;
197
198 int m_manualSnapshotRetentionPeriod;
199 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
200
201 Aws::String m_snapshotCopyGrantName;
202 bool m_snapshotCopyGrantNameHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Redshift
207} // namespace Aws
#define AWS_REDSHIFT_API
ClusterSnapshotCopyStatus & WithManualSnapshotRetentionPeriod(int value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ClusterSnapshotCopyStatus & WithDestinationRegion(Aws::String &&value)
ClusterSnapshotCopyStatus & WithDestinationRegion(const char *value)
ClusterSnapshotCopyStatus & WithRetentionPeriod(long long value)
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(const char *value)
ClusterSnapshotCopyStatus & WithDestinationRegion(const Aws::String &value)
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(const Aws::String &value)
AWS_REDSHIFT_API ClusterSnapshotCopyStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API ClusterSnapshotCopyStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream