AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClusterSnapshotCopyStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
29 public:
30 AWS_REDSHIFT_API ClusterSnapshotCopyStatus() = default;
31 AWS_REDSHIFT_API ClusterSnapshotCopyStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
43 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
44 template <typename DestinationRegionT = Aws::String>
45 void SetDestinationRegion(DestinationRegionT&& value) {
46 m_destinationRegionHasBeenSet = true;
47 m_destinationRegion = std::forward<DestinationRegionT>(value);
48 }
49 template <typename DestinationRegionT = Aws::String>
50 ClusterSnapshotCopyStatus& WithDestinationRegion(DestinationRegionT&& value) {
51 SetDestinationRegion(std::forward<DestinationRegionT>(value));
52 return *this;
53 }
55
57
61 inline long long GetRetentionPeriod() const { return m_retentionPeriod; }
62 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
63 inline void SetRetentionPeriod(long long value) {
64 m_retentionPeriodHasBeenSet = true;
65 m_retentionPeriod = value;
66 }
68 SetRetentionPeriod(value);
69 return *this;
70 }
72
74
80 inline int GetManualSnapshotRetentionPeriod() const { return m_manualSnapshotRetentionPeriod; }
81 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
82 inline void SetManualSnapshotRetentionPeriod(int value) {
83 m_manualSnapshotRetentionPeriodHasBeenSet = true;
84 m_manualSnapshotRetentionPeriod = value;
85 }
88 return *this;
89 }
91
93
96 inline const Aws::String& GetSnapshotCopyGrantName() const { return m_snapshotCopyGrantName; }
97 inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
98 template <typename SnapshotCopyGrantNameT = Aws::String>
99 void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) {
100 m_snapshotCopyGrantNameHasBeenSet = true;
101 m_snapshotCopyGrantName = std::forward<SnapshotCopyGrantNameT>(value);
102 }
103 template <typename SnapshotCopyGrantNameT = Aws::String>
104 ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) {
105 SetSnapshotCopyGrantName(std::forward<SnapshotCopyGrantNameT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_destinationRegion;
111
112 long long m_retentionPeriod{0};
113
114 int m_manualSnapshotRetentionPeriod{0};
115
116 Aws::String m_snapshotCopyGrantName;
117 bool m_destinationRegionHasBeenSet = false;
118 bool m_retentionPeriodHasBeenSet = false;
119 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
120 bool m_snapshotCopyGrantNameHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Redshift
125} // namespace Aws
ClusterSnapshotCopyStatus & WithManualSnapshotRetentionPeriod(int value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ClusterSnapshotCopyStatus & WithDestinationRegion(DestinationRegionT &&value)
AWS_REDSHIFT_API ClusterSnapshotCopyStatus()=default
ClusterSnapshotCopyStatus & WithRetentionPeriod(long long value)
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(SnapshotCopyGrantNameT &&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
void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream