AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ClusterSnapshotCopyStatus.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
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:
35 AWS_REDSHIFT_API ClusterSnapshotCopyStatus() = default;
36 AWS_REDSHIFT_API ClusterSnapshotCopyStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
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
44
48 inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
49 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
50 template<typename DestinationRegionT = Aws::String>
51 void SetDestinationRegion(DestinationRegionT&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = std::forward<DestinationRegionT>(value); }
52 template<typename DestinationRegionT = Aws::String>
53 ClusterSnapshotCopyStatus& WithDestinationRegion(DestinationRegionT&& value) { SetDestinationRegion(std::forward<DestinationRegionT>(value)); return *this;}
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) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
64 inline ClusterSnapshotCopyStatus& WithRetentionPeriod(long long value) { SetRetentionPeriod(value); return *this;}
66
68
74 inline int GetManualSnapshotRetentionPeriod() const { return m_manualSnapshotRetentionPeriod; }
75 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
76 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
79
81
84 inline const Aws::String& GetSnapshotCopyGrantName() const { return m_snapshotCopyGrantName; }
85 inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
86 template<typename SnapshotCopyGrantNameT = Aws::String>
87 void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::forward<SnapshotCopyGrantNameT>(value); }
88 template<typename SnapshotCopyGrantNameT = Aws::String>
89 ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) { SetSnapshotCopyGrantName(std::forward<SnapshotCopyGrantNameT>(value)); return *this;}
91 private:
92
93 Aws::String m_destinationRegion;
94 bool m_destinationRegionHasBeenSet = false;
95
96 long long m_retentionPeriod{0};
97 bool m_retentionPeriodHasBeenSet = false;
98
99 int m_manualSnapshotRetentionPeriod{0};
100 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
101
102 Aws::String m_snapshotCopyGrantName;
103 bool m_snapshotCopyGrantNameHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Redshift
108} // 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