AWS SDK for C++  1.9.159
AWS SDK for C++
RejectDataShareResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace Redshift
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
44  inline const Aws::String& GetDataShareArn() const{ return m_dataShareArn; }
45 
52  inline void SetDataShareArn(const Aws::String& value) { m_dataShareArn = value; }
53 
60  inline void SetDataShareArn(Aws::String&& value) { m_dataShareArn = std::move(value); }
61 
68  inline void SetDataShareArn(const char* value) { m_dataShareArn.assign(value); }
69 
76  inline RejectDataShareResult& WithDataShareArn(const Aws::String& value) { SetDataShareArn(value); return *this;}
77 
84  inline RejectDataShareResult& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;}
85 
92  inline RejectDataShareResult& WithDataShareArn(const char* value) { SetDataShareArn(value); return *this;}
93 
94 
98  inline const Aws::String& GetProducerArn() const{ return m_producerArn; }
99 
103  inline void SetProducerArn(const Aws::String& value) { m_producerArn = value; }
104 
108  inline void SetProducerArn(Aws::String&& value) { m_producerArn = std::move(value); }
109 
113  inline void SetProducerArn(const char* value) { m_producerArn.assign(value); }
114 
118  inline RejectDataShareResult& WithProducerArn(const Aws::String& value) { SetProducerArn(value); return *this;}
119 
123  inline RejectDataShareResult& WithProducerArn(Aws::String&& value) { SetProducerArn(std::move(value)); return *this;}
124 
128  inline RejectDataShareResult& WithProducerArn(const char* value) { SetProducerArn(value); return *this;}
129 
130 
135  inline bool GetAllowPubliclyAccessibleConsumers() const{ return m_allowPubliclyAccessibleConsumers; }
136 
141  inline void SetAllowPubliclyAccessibleConsumers(bool value) { m_allowPubliclyAccessibleConsumers = value; }
142 
147  inline RejectDataShareResult& WithAllowPubliclyAccessibleConsumers(bool value) { SetAllowPubliclyAccessibleConsumers(value); return *this;}
148 
149 
154  inline const Aws::Vector<DataShareAssociation>& GetDataShareAssociations() const{ return m_dataShareAssociations; }
155 
160  inline void SetDataShareAssociations(const Aws::Vector<DataShareAssociation>& value) { m_dataShareAssociations = value; }
161 
166  inline void SetDataShareAssociations(Aws::Vector<DataShareAssociation>&& value) { m_dataShareAssociations = std::move(value); }
167 
172  inline RejectDataShareResult& WithDataShareAssociations(const Aws::Vector<DataShareAssociation>& value) { SetDataShareAssociations(value); return *this;}
173 
178  inline RejectDataShareResult& WithDataShareAssociations(Aws::Vector<DataShareAssociation>&& value) { SetDataShareAssociations(std::move(value)); return *this;}
179 
184  inline RejectDataShareResult& AddDataShareAssociations(const DataShareAssociation& value) { m_dataShareAssociations.push_back(value); return *this; }
185 
190  inline RejectDataShareResult& AddDataShareAssociations(DataShareAssociation&& value) { m_dataShareAssociations.push_back(std::move(value)); return *this; }
191 
192 
193 
194  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
195 
196 
197  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
198 
199 
200  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
201 
202 
203  inline RejectDataShareResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
204 
205 
206  inline RejectDataShareResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
207 
208  private:
209 
210  Aws::String m_dataShareArn;
211 
212  Aws::String m_producerArn;
213 
214  bool m_allowPubliclyAccessibleConsumers;
215 
216  Aws::Vector<DataShareAssociation> m_dataShareAssociations;
217 
218  ResponseMetadata m_responseMetadata;
219  };
220 
221 } // namespace Model
222 } // namespace Redshift
223 } // namespace Aws
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::RejectDataShareResult::SetDataShareArn
void SetDataShareArn(const char *value)
Definition: RejectDataShareResult.h:68
Aws::Redshift::Model::RejectDataShareResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: RejectDataShareResult.h:200
Aws::Redshift::Model::RejectDataShareResult::RejectDataShareResult
RejectDataShareResult()
Aws::Redshift::Model::RejectDataShareResult::WithDataShareArn
RejectDataShareResult & WithDataShareArn(const char *value)
Definition: RejectDataShareResult.h:92
Aws::Redshift::Model::RejectDataShareResult::SetProducerArn
void SetProducerArn(const char *value)
Definition: RejectDataShareResult.h:113
Aws::Redshift::Model::RejectDataShareResult::AddDataShareAssociations
RejectDataShareResult & AddDataShareAssociations(const DataShareAssociation &value)
Definition: RejectDataShareResult.h:184
Aws::Redshift::Model::RejectDataShareResult::GetDataShareAssociations
const Aws::Vector< DataShareAssociation > & GetDataShareAssociations() const
Definition: RejectDataShareResult.h:154
Aws::Redshift::Model::RejectDataShareResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: RejectDataShareResult.h:197
Aws::Redshift::Model::RejectDataShareResult::AddDataShareAssociations
RejectDataShareResult & AddDataShareAssociations(DataShareAssociation &&value)
Definition: RejectDataShareResult.h:190
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::RejectDataShareResult::SetProducerArn
void SetProducerArn(Aws::String &&value)
Definition: RejectDataShareResult.h:108
AWSVector.h
Aws::Redshift::Model::RejectDataShareResult::GetProducerArn
const Aws::String & GetProducerArn() const
Definition: RejectDataShareResult.h:98
Aws::Redshift::Model::DataShareAssociation
Definition: DataShareAssociation.h:35
Aws::Redshift::Model::RejectDataShareResult::WithResponseMetadata
RejectDataShareResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: RejectDataShareResult.h:206
Aws::Redshift::Model::RejectDataShareResult::SetDataShareArn
void SetDataShareArn(Aws::String &&value)
Definition: RejectDataShareResult.h:60
Aws::Redshift::Model::RejectDataShareResult::WithProducerArn
RejectDataShareResult & WithProducerArn(Aws::String &&value)
Definition: RejectDataShareResult.h:123
Aws::Redshift::Model::RejectDataShareResult::WithDataShareAssociations
RejectDataShareResult & WithDataShareAssociations(Aws::Vector< DataShareAssociation > &&value)
Definition: RejectDataShareResult.h:178
Aws::Redshift::Model::RejectDataShareResult::SetAllowPubliclyAccessibleConsumers
void SetAllowPubliclyAccessibleConsumers(bool value)
Definition: RejectDataShareResult.h:141
Aws::Redshift::Model::RejectDataShareResult::WithProducerArn
RejectDataShareResult & WithProducerArn(const Aws::String &value)
Definition: RejectDataShareResult.h:118
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::RejectDataShareResult::SetProducerArn
void SetProducerArn(const Aws::String &value)
Definition: RejectDataShareResult.h:103
Aws::Redshift::Model::RejectDataShareResult::SetDataShareAssociations
void SetDataShareAssociations(Aws::Vector< DataShareAssociation > &&value)
Definition: RejectDataShareResult.h:166
Aws::Redshift::Model::RejectDataShareResult
Definition: RejectDataShareResult.h:31
AWSString.h
Aws::Redshift::Model::RejectDataShareResult::WithAllowPubliclyAccessibleConsumers
RejectDataShareResult & WithAllowPubliclyAccessibleConsumers(bool value)
Definition: RejectDataShareResult.h:147
Aws::Redshift::Model::RejectDataShareResult::SetDataShareAssociations
void SetDataShareAssociations(const Aws::Vector< DataShareAssociation > &value)
Definition: RejectDataShareResult.h:160
Aws::Redshift::Model::RejectDataShareResult::RejectDataShareResult
RejectDataShareResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::RejectDataShareResult::SetDataShareArn
void SetDataShareArn(const Aws::String &value)
Definition: RejectDataShareResult.h:52
Aws::Redshift::Model::RejectDataShareResult::WithResponseMetadata
RejectDataShareResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: RejectDataShareResult.h:203
Aws::Redshift::Model::RejectDataShareResult::WithDataShareArn
RejectDataShareResult & WithDataShareArn(const Aws::String &value)
Definition: RejectDataShareResult.h:76
Aws::Redshift::Model::RejectDataShareResult::operator=
RejectDataShareResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::RejectDataShareResult::GetAllowPubliclyAccessibleConsumers
bool GetAllowPubliclyAccessibleConsumers() const
Definition: RejectDataShareResult.h:135
Aws::Redshift::Model::RejectDataShareResult::WithDataShareAssociations
RejectDataShareResult & WithDataShareAssociations(const Aws::Vector< DataShareAssociation > &value)
Definition: RejectDataShareResult.h:172
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::RejectDataShareResult::WithDataShareArn
RejectDataShareResult & WithDataShareArn(Aws::String &&value)
Definition: RejectDataShareResult.h:84
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResponseMetadata.h
DataShareAssociation.h
Aws::Redshift::Model::RejectDataShareResult::WithProducerArn
RejectDataShareResult & WithProducerArn(const char *value)
Definition: RejectDataShareResult.h:128
Aws::Redshift::Model::RejectDataShareResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: RejectDataShareResult.h:194
Aws::Redshift::Model::RejectDataShareResult::GetDataShareArn
const Aws::String & GetDataShareArn() const
Definition: RejectDataShareResult.h:44