AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DataShareAssociation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/DataShareStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift {
22namespace Model {
23
31 public:
32 AWS_REDSHIFT_API DataShareAssociation() = default;
33 AWS_REDSHIFT_API DataShareAssociation(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_REDSHIFT_API DataShareAssociation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline const Aws::String& GetConsumerIdentifier() const { return m_consumerIdentifier; }
45 inline bool ConsumerIdentifierHasBeenSet() const { return m_consumerIdentifierHasBeenSet; }
46 template <typename ConsumerIdentifierT = Aws::String>
47 void SetConsumerIdentifier(ConsumerIdentifierT&& value) {
48 m_consumerIdentifierHasBeenSet = true;
49 m_consumerIdentifier = std::forward<ConsumerIdentifierT>(value);
50 }
51 template <typename ConsumerIdentifierT = Aws::String>
52 DataShareAssociation& WithConsumerIdentifier(ConsumerIdentifierT&& value) {
53 SetConsumerIdentifier(std::forward<ConsumerIdentifierT>(value));
54 return *this;
55 }
57
59
62 inline DataShareStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(DataShareStatus value) {
65 m_statusHasBeenSet = true;
66 m_status = value;
67 }
69 SetStatus(value);
70 return *this;
71 }
73
75
79 inline const Aws::String& GetConsumerRegion() const { return m_consumerRegion; }
80 inline bool ConsumerRegionHasBeenSet() const { return m_consumerRegionHasBeenSet; }
81 template <typename ConsumerRegionT = Aws::String>
82 void SetConsumerRegion(ConsumerRegionT&& value) {
83 m_consumerRegionHasBeenSet = true;
84 m_consumerRegion = std::forward<ConsumerRegionT>(value);
85 }
86 template <typename ConsumerRegionT = Aws::String>
87 DataShareAssociation& WithConsumerRegion(ConsumerRegionT&& value) {
88 SetConsumerRegion(std::forward<ConsumerRegionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
98 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
99 template <typename CreatedDateT = Aws::Utils::DateTime>
100 void SetCreatedDate(CreatedDateT&& value) {
101 m_createdDateHasBeenSet = true;
102 m_createdDate = std::forward<CreatedDateT>(value);
103 }
104 template <typename CreatedDateT = Aws::Utils::DateTime>
105 DataShareAssociation& WithCreatedDate(CreatedDateT&& value) {
106 SetCreatedDate(std::forward<CreatedDateT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetStatusChangeDate() const { return m_statusChangeDate; }
116 inline bool StatusChangeDateHasBeenSet() const { return m_statusChangeDateHasBeenSet; }
117 template <typename StatusChangeDateT = Aws::Utils::DateTime>
118 void SetStatusChangeDate(StatusChangeDateT&& value) {
119 m_statusChangeDateHasBeenSet = true;
120 m_statusChangeDate = std::forward<StatusChangeDateT>(value);
121 }
122 template <typename StatusChangeDateT = Aws::Utils::DateTime>
123 DataShareAssociation& WithStatusChangeDate(StatusChangeDateT&& value) {
124 SetStatusChangeDate(std::forward<StatusChangeDateT>(value));
125 return *this;
126 }
128
130
134 inline bool GetProducerAllowedWrites() const { return m_producerAllowedWrites; }
135 inline bool ProducerAllowedWritesHasBeenSet() const { return m_producerAllowedWritesHasBeenSet; }
136 inline void SetProducerAllowedWrites(bool value) {
137 m_producerAllowedWritesHasBeenSet = true;
138 m_producerAllowedWrites = value;
139 }
142 return *this;
143 }
145
147
151 inline bool GetConsumerAcceptedWrites() const { return m_consumerAcceptedWrites; }
152 inline bool ConsumerAcceptedWritesHasBeenSet() const { return m_consumerAcceptedWritesHasBeenSet; }
153 inline void SetConsumerAcceptedWrites(bool value) {
154 m_consumerAcceptedWritesHasBeenSet = true;
155 m_consumerAcceptedWrites = value;
156 }
159 return *this;
160 }
162 private:
163 Aws::String m_consumerIdentifier;
164
166
167 Aws::String m_consumerRegion;
168
169 Aws::Utils::DateTime m_createdDate{};
170
171 Aws::Utils::DateTime m_statusChangeDate{};
172
173 bool m_producerAllowedWrites{false};
174
175 bool m_consumerAcceptedWrites{false};
176 bool m_consumerIdentifierHasBeenSet = false;
177 bool m_statusHasBeenSet = false;
178 bool m_consumerRegionHasBeenSet = false;
179 bool m_createdDateHasBeenSet = false;
180 bool m_statusChangeDateHasBeenSet = false;
181 bool m_producerAllowedWritesHasBeenSet = false;
182 bool m_consumerAcceptedWritesHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Redshift
187} // namespace Aws
DataShareAssociation & WithConsumerIdentifier(ConsumerIdentifierT &&value)
DataShareAssociation & WithStatus(DataShareStatus value)
void SetConsumerIdentifier(ConsumerIdentifierT &&value)
const Aws::Utils::DateTime & GetStatusChangeDate() const
const Aws::Utils::DateTime & GetCreatedDate() const
void SetStatusChangeDate(StatusChangeDateT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DataShareAssociation & WithStatusChangeDate(StatusChangeDateT &&value)
DataShareAssociation & WithConsumerRegion(ConsumerRegionT &&value)
void SetConsumerRegion(ConsumerRegionT &&value)
const Aws::String & GetConsumerIdentifier() const
DataShareAssociation & WithCreatedDate(CreatedDateT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API DataShareAssociation()=default
AWS_REDSHIFT_API DataShareAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DataShareAssociation & WithConsumerAcceptedWrites(bool value)
AWS_REDSHIFT_API DataShareAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
DataShareAssociation & WithProducerAllowedWrites(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream