AWS SDK for C++  1.9.157
AWS SDK for C++
DataShare.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
30  {
31  public:
35 
36  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37  void OutputToStream(Aws::OStream& oStream, const char* location) const;
38 
39 
46  inline const Aws::String& GetDataShareArn() const{ return m_dataShareArn; }
47 
54  inline bool DataShareArnHasBeenSet() const { return m_dataShareArnHasBeenSet; }
55 
62  inline void SetDataShareArn(const Aws::String& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = value; }
63 
70  inline void SetDataShareArn(Aws::String&& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = std::move(value); }
71 
78  inline void SetDataShareArn(const char* value) { m_dataShareArnHasBeenSet = true; m_dataShareArn.assign(value); }
79 
86  inline DataShare& WithDataShareArn(const Aws::String& value) { SetDataShareArn(value); return *this;}
87 
94  inline DataShare& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;}
95 
102  inline DataShare& WithDataShareArn(const char* value) { SetDataShareArn(value); return *this;}
103 
104 
108  inline const Aws::String& GetProducerArn() const{ return m_producerArn; }
109 
113  inline bool ProducerArnHasBeenSet() const { return m_producerArnHasBeenSet; }
114 
118  inline void SetProducerArn(const Aws::String& value) { m_producerArnHasBeenSet = true; m_producerArn = value; }
119 
123  inline void SetProducerArn(Aws::String&& value) { m_producerArnHasBeenSet = true; m_producerArn = std::move(value); }
124 
128  inline void SetProducerArn(const char* value) { m_producerArnHasBeenSet = true; m_producerArn.assign(value); }
129 
133  inline DataShare& WithProducerArn(const Aws::String& value) { SetProducerArn(value); return *this;}
134 
138  inline DataShare& WithProducerArn(Aws::String&& value) { SetProducerArn(std::move(value)); return *this;}
139 
143  inline DataShare& WithProducerArn(const char* value) { SetProducerArn(value); return *this;}
144 
145 
150  inline bool GetAllowPubliclyAccessibleConsumers() const{ return m_allowPubliclyAccessibleConsumers; }
151 
156  inline bool AllowPubliclyAccessibleConsumersHasBeenSet() const { return m_allowPubliclyAccessibleConsumersHasBeenSet; }
157 
162  inline void SetAllowPubliclyAccessibleConsumers(bool value) { m_allowPubliclyAccessibleConsumersHasBeenSet = true; m_allowPubliclyAccessibleConsumers = value; }
163 
168  inline DataShare& WithAllowPubliclyAccessibleConsumers(bool value) { SetAllowPubliclyAccessibleConsumers(value); return *this;}
169 
170 
175  inline const Aws::Vector<DataShareAssociation>& GetDataShareAssociations() const{ return m_dataShareAssociations; }
176 
181  inline bool DataShareAssociationsHasBeenSet() const { return m_dataShareAssociationsHasBeenSet; }
182 
187  inline void SetDataShareAssociations(const Aws::Vector<DataShareAssociation>& value) { m_dataShareAssociationsHasBeenSet = true; m_dataShareAssociations = value; }
188 
193  inline void SetDataShareAssociations(Aws::Vector<DataShareAssociation>&& value) { m_dataShareAssociationsHasBeenSet = true; m_dataShareAssociations = std::move(value); }
194 
199  inline DataShare& WithDataShareAssociations(const Aws::Vector<DataShareAssociation>& value) { SetDataShareAssociations(value); return *this;}
200 
205  inline DataShare& WithDataShareAssociations(Aws::Vector<DataShareAssociation>&& value) { SetDataShareAssociations(std::move(value)); return *this;}
206 
211  inline DataShare& AddDataShareAssociations(const DataShareAssociation& value) { m_dataShareAssociationsHasBeenSet = true; m_dataShareAssociations.push_back(value); return *this; }
212 
217  inline DataShare& AddDataShareAssociations(DataShareAssociation&& value) { m_dataShareAssociationsHasBeenSet = true; m_dataShareAssociations.push_back(std::move(value)); return *this; }
218 
219 
220 
221  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
222 
223 
224  inline bool ResponseMetadataHasBeenSet() const { return m_responseMetadataHasBeenSet; }
225 
226 
227  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = value; }
228 
229 
230  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::move(value); }
231 
232 
233  inline DataShare& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
234 
235 
236  inline DataShare& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
237 
238  private:
239 
240  Aws::String m_dataShareArn;
241  bool m_dataShareArnHasBeenSet;
242 
243  Aws::String m_producerArn;
244  bool m_producerArnHasBeenSet;
245 
246  bool m_allowPubliclyAccessibleConsumers;
247  bool m_allowPubliclyAccessibleConsumersHasBeenSet;
248 
249  Aws::Vector<DataShareAssociation> m_dataShareAssociations;
250  bool m_dataShareAssociationsHasBeenSet;
251 
252  ResponseMetadata m_responseMetadata;
253  bool m_responseMetadataHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace Redshift
258 } // namespace Aws
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::DataShare::SetProducerArn
void SetProducerArn(const Aws::String &value)
Definition: DataShare.h:118
Aws::Redshift::Model::DataShare::WithDataShareArn
DataShare & WithDataShareArn(const char *value)
Definition: DataShare.h:102
Aws::Redshift::Model::DataShare::SetDataShareArn
void SetDataShareArn(const char *value)
Definition: DataShare.h:78
Aws::Redshift::Model::DataShare::DataShareAssociationsHasBeenSet
bool DataShareAssociationsHasBeenSet() const
Definition: DataShare.h:181
Aws::Redshift::Model::DataShare::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::DataShare::WithAllowPubliclyAccessibleConsumers
DataShare & WithAllowPubliclyAccessibleConsumers(bool value)
Definition: DataShare.h:168
Aws::Redshift::Model::DataShare::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DataShare.h:230
Aws::Redshift::Model::DataShare::WithProducerArn
DataShare & WithProducerArn(Aws::String &&value)
Definition: DataShare.h:138
Aws::Redshift::Model::DataShare::SetProducerArn
void SetProducerArn(Aws::String &&value)
Definition: DataShare.h:123
Aws::Redshift::Model::DataShare::GetAllowPubliclyAccessibleConsumers
bool GetAllowPubliclyAccessibleConsumers() const
Definition: DataShare.h:150
Aws::Redshift::Model::DataShare::GetProducerArn
const Aws::String & GetProducerArn() const
Definition: DataShare.h:108
Aws::Redshift::Model::DataShare::WithDataShareAssociations
DataShare & WithDataShareAssociations(const Aws::Vector< DataShareAssociation > &value)
Definition: DataShare.h:199
Aws::Redshift::Model::DataShare
Definition: DataShare.h:30
Aws::Redshift::Model::DataShare::DataShareArnHasBeenSet
bool DataShareArnHasBeenSet() const
Definition: DataShare.h:54
Aws::Redshift::Model::DataShare::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::DataShare::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DataShare.h:221
Aws::Redshift::Model::DataShare::DataShare
DataShare()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::Redshift::Model::DataShare::WithResponseMetadata
DataShare & WithResponseMetadata(const ResponseMetadata &value)
Definition: DataShare.h:233
AWSVector.h
Aws::Redshift::Model::DataShare::SetDataShareArn
void SetDataShareArn(const Aws::String &value)
Definition: DataShare.h:62
Aws::Redshift::Model::DataShare::AddDataShareAssociations
DataShare & AddDataShareAssociations(const DataShareAssociation &value)
Definition: DataShare.h:211
Aws::Redshift::Model::DataShareAssociation
Definition: DataShareAssociation.h:35
Aws::Redshift::Model::DataShare::SetDataShareAssociations
void SetDataShareAssociations(Aws::Vector< DataShareAssociation > &&value)
Definition: DataShare.h:193
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::DataShare::AddDataShareAssociations
DataShare & AddDataShareAssociations(DataShareAssociation &&value)
Definition: DataShare.h:217
Aws::Redshift::Model::DataShare::AllowPubliclyAccessibleConsumersHasBeenSet
bool AllowPubliclyAccessibleConsumersHasBeenSet() const
Definition: DataShare.h:156
Aws::Redshift::Model::DataShare::SetProducerArn
void SetProducerArn(const char *value)
Definition: DataShare.h:128
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::DataShare::SetDataShareAssociations
void SetDataShareAssociations(const Aws::Vector< DataShareAssociation > &value)
Definition: DataShare.h:187
Aws::Redshift::Model::DataShare::DataShare
DataShare(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::DataShare::GetDataShareAssociations
const Aws::Vector< DataShareAssociation > & GetDataShareAssociations() const
Definition: DataShare.h:175
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DataShare::WithProducerArn
DataShare & WithProducerArn(const char *value)
Definition: DataShare.h:143
AWSString.h
Aws::Redshift::Model::DataShare::ResponseMetadataHasBeenSet
bool ResponseMetadataHasBeenSet() const
Definition: DataShare.h:224
Aws::Redshift::Model::DataShare::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DataShare.h:227
Aws::Redshift::Model::DataShare::ProducerArnHasBeenSet
bool ProducerArnHasBeenSet() const
Definition: DataShare.h:113
Aws::Redshift::Model::DataShare::GetDataShareArn
const Aws::String & GetDataShareArn() const
Definition: DataShare.h:46
Aws::Redshift::Model::DataShare::WithProducerArn
DataShare & WithProducerArn(const Aws::String &value)
Definition: DataShare.h:133
Aws::Redshift::Model::DataShare::SetAllowPubliclyAccessibleConsumers
void SetAllowPubliclyAccessibleConsumers(bool value)
Definition: DataShare.h:162
Aws::Redshift::Model::DataShare::WithDataShareArn
DataShare & WithDataShareArn(Aws::String &&value)
Definition: DataShare.h:94
Aws::Redshift::Model::DataShare::SetDataShareArn
void SetDataShareArn(Aws::String &&value)
Definition: DataShare.h:70
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
ResponseMetadata.h
DataShareAssociation.h
Aws::Redshift::Model::DataShare::WithResponseMetadata
DataShare & WithResponseMetadata(ResponseMetadata &&value)
Definition: DataShare.h:236
Aws::Redshift::Model::DataShare::WithDataShareArn
DataShare & WithDataShareArn(const Aws::String &value)
Definition: DataShare.h:86
Aws::Redshift::Model::DataShare::WithDataShareAssociations
DataShare & WithDataShareAssociations(Aws::Vector< DataShareAssociation > &&value)
Definition: DataShare.h:205
Aws::Redshift::Model::DataShare::operator=
DataShare & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)