AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDestinationRegion(const Aws::String& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
51 inline void SetDestinationRegion(Aws::String&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = std::move(value); }
52 inline void SetDestinationRegion(const char* value) { m_destinationRegionHasBeenSet = true; m_destinationRegion.assign(value); }
54 inline ClusterSnapshotCopyStatus& WithDestinationRegion(Aws::String&& value) { SetDestinationRegion(std::move(value)); return *this;}
55 inline ClusterSnapshotCopyStatus& WithDestinationRegion(const char* value) { SetDestinationRegion(value); return *this;}
57
59
63 inline long long GetRetentionPeriod() const{ return m_retentionPeriod; }
64 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
65 inline void SetRetentionPeriod(long long value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
66 inline ClusterSnapshotCopyStatus& WithRetentionPeriod(long long value) { SetRetentionPeriod(value); return *this;}
68
70
76 inline int GetManualSnapshotRetentionPeriod() const{ return m_manualSnapshotRetentionPeriod; }
77 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
78 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
81
83
86 inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
87 inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
88 inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
89 inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::move(value); }
90 inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
93 inline ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
95 private:
96
97 Aws::String m_destinationRegion;
98 bool m_destinationRegionHasBeenSet = false;
99
100 long long m_retentionPeriod;
101 bool m_retentionPeriodHasBeenSet = false;
102
103 int m_manualSnapshotRetentionPeriod;
104 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
105
106 Aws::String m_snapshotCopyGrantName;
107 bool m_snapshotCopyGrantNameHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Redshift
112} // 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(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