AWS SDK for C++  1.9.159
AWS SDK for C++
AuthorizeDataShareResult.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 AuthorizeDataShareResult& WithDataShareArn(const Aws::String& value) { SetDataShareArn(value); return *this;}
77 
84  inline AuthorizeDataShareResult& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;}
85 
92  inline AuthorizeDataShareResult& 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 AuthorizeDataShareResult& WithProducerArn(const Aws::String& value) { SetProducerArn(value); return *this;}
119 
123  inline AuthorizeDataShareResult& WithProducerArn(Aws::String&& value) { SetProducerArn(std::move(value)); return *this;}
124 
128  inline AuthorizeDataShareResult& 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 AuthorizeDataShareResult& 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 AuthorizeDataShareResult& WithDataShareAssociations(const Aws::Vector<DataShareAssociation>& value) { SetDataShareAssociations(value); return *this;}
173 
178  inline AuthorizeDataShareResult& WithDataShareAssociations(Aws::Vector<DataShareAssociation>&& value) { SetDataShareAssociations(std::move(value)); return *this;}
179 
184  inline AuthorizeDataShareResult& AddDataShareAssociations(const DataShareAssociation& value) { m_dataShareAssociations.push_back(value); return *this; }
185 
190  inline AuthorizeDataShareResult& 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 AuthorizeDataShareResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
204 
205 
206  inline AuthorizeDataShareResult& 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::Redshift::Model::AuthorizeDataShareResult::GetDataShareAssociations
const Aws::Vector< DataShareAssociation > & GetDataShareAssociations() const
Definition: AuthorizeDataShareResult.h:154
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::AuthorizeDataShareResult::SetProducerArn
void SetProducerArn(const char *value)
Definition: AuthorizeDataShareResult.h:113
Aws::Redshift::Model::AuthorizeDataShareResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: AuthorizeDataShareResult.h:194
Aws::Redshift::Model::AuthorizeDataShareResult::AuthorizeDataShareResult
AuthorizeDataShareResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::AuthorizeDataShareResult::SetProducerArn
void SetProducerArn(const Aws::String &value)
Definition: AuthorizeDataShareResult.h:103
AWSVector.h
Aws::Redshift::Model::DataShareAssociation
Definition: DataShareAssociation.h:35
Aws::Redshift::Model::AuthorizeDataShareResult::WithResponseMetadata
AuthorizeDataShareResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: AuthorizeDataShareResult.h:203
Aws::Redshift::Model::AuthorizeDataShareResult::GetProducerArn
const Aws::String & GetProducerArn() const
Definition: AuthorizeDataShareResult.h:98
Aws::Redshift::Model::AuthorizeDataShareResult::GetDataShareArn
const Aws::String & GetDataShareArn() const
Definition: AuthorizeDataShareResult.h:44
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::AuthorizeDataShareResult::AddDataShareAssociations
AuthorizeDataShareResult & AddDataShareAssociations(DataShareAssociation &&value)
Definition: AuthorizeDataShareResult.h:190
AWSString.h
Aws::Redshift::Model::AuthorizeDataShareResult::WithResponseMetadata
AuthorizeDataShareResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: AuthorizeDataShareResult.h:206
Aws::Redshift::Model::AuthorizeDataShareResult::WithDataShareArn
AuthorizeDataShareResult & WithDataShareArn(const char *value)
Definition: AuthorizeDataShareResult.h:92
Aws::Redshift::Model::AuthorizeDataShareResult::WithDataShareAssociations
AuthorizeDataShareResult & WithDataShareAssociations(Aws::Vector< DataShareAssociation > &&value)
Definition: AuthorizeDataShareResult.h:178
Aws::Redshift::Model::AuthorizeDataShareResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: AuthorizeDataShareResult.h:200
Aws::Redshift::Model::AuthorizeDataShareResult::WithProducerArn
AuthorizeDataShareResult & WithProducerArn(const Aws::String &value)
Definition: AuthorizeDataShareResult.h:118
Aws::Redshift::Model::AuthorizeDataShareResult::SetDataShareArn
void SetDataShareArn(const char *value)
Definition: AuthorizeDataShareResult.h:68
Aws::Redshift::Model::AuthorizeDataShareResult::WithProducerArn
AuthorizeDataShareResult & WithProducerArn(const char *value)
Definition: AuthorizeDataShareResult.h:128
Aws::Redshift::Model::AuthorizeDataShareResult::SetAllowPubliclyAccessibleConsumers
void SetAllowPubliclyAccessibleConsumers(bool value)
Definition: AuthorizeDataShareResult.h:141
Aws::Redshift::Model::AuthorizeDataShareResult::operator=
AuthorizeDataShareResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::AuthorizeDataShareResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: AuthorizeDataShareResult.h:197
Aws::Redshift::Model::AuthorizeDataShareResult::GetAllowPubliclyAccessibleConsumers
bool GetAllowPubliclyAccessibleConsumers() const
Definition: AuthorizeDataShareResult.h:135
Aws::Redshift::Model::AuthorizeDataShareResult::SetDataShareAssociations
void SetDataShareAssociations(const Aws::Vector< DataShareAssociation > &value)
Definition: AuthorizeDataShareResult.h:160
Aws::Redshift::Model::AuthorizeDataShareResult::SetDataShareArn
void SetDataShareArn(const Aws::String &value)
Definition: AuthorizeDataShareResult.h:52
Aws::Redshift::Model::AuthorizeDataShareResult::WithAllowPubliclyAccessibleConsumers
AuthorizeDataShareResult & WithAllowPubliclyAccessibleConsumers(bool value)
Definition: AuthorizeDataShareResult.h:147
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::AuthorizeDataShareResult::AddDataShareAssociations
AuthorizeDataShareResult & AddDataShareAssociations(const DataShareAssociation &value)
Definition: AuthorizeDataShareResult.h:184
Aws::Redshift::Model::AuthorizeDataShareResult
Definition: AuthorizeDataShareResult.h:31
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::AuthorizeDataShareResult::SetProducerArn
void SetProducerArn(Aws::String &&value)
Definition: AuthorizeDataShareResult.h:108
ResponseMetadata.h
Aws::Redshift::Model::AuthorizeDataShareResult::WithDataShareArn
AuthorizeDataShareResult & WithDataShareArn(const Aws::String &value)
Definition: AuthorizeDataShareResult.h:76
DataShareAssociation.h
Aws::Redshift::Model::AuthorizeDataShareResult::AuthorizeDataShareResult
AuthorizeDataShareResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::AuthorizeDataShareResult::SetDataShareAssociations
void SetDataShareAssociations(Aws::Vector< DataShareAssociation > &&value)
Definition: AuthorizeDataShareResult.h:166
Aws::Redshift::Model::AuthorizeDataShareResult::SetDataShareArn
void SetDataShareArn(Aws::String &&value)
Definition: AuthorizeDataShareResult.h:60
Aws::Redshift::Model::AuthorizeDataShareResult::WithDataShareArn
AuthorizeDataShareResult & WithDataShareArn(Aws::String &&value)
Definition: AuthorizeDataShareResult.h:84
Aws::Redshift::Model::AuthorizeDataShareResult::WithProducerArn
AuthorizeDataShareResult & WithProducerArn(Aws::String &&value)
Definition: AuthorizeDataShareResult.h:123
Aws::Redshift::Model::AuthorizeDataShareResult::WithDataShareAssociations
AuthorizeDataShareResult & WithDataShareAssociations(const Aws::Vector< DataShareAssociation > &value)
Definition: AuthorizeDataShareResult.h:172