AWS SDK for C++  1.9.159
AWS SDK for C++
DescribeDataSharesForProducerResult.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 
41  inline const Aws::Vector<DataShare>& GetDataShares() const{ return m_dataShares; }
42 
46  inline void SetDataShares(const Aws::Vector<DataShare>& value) { m_dataShares = value; }
47 
51  inline void SetDataShares(Aws::Vector<DataShare>&& value) { m_dataShares = std::move(value); }
52 
56  inline DescribeDataSharesForProducerResult& WithDataShares(const Aws::Vector<DataShare>& value) { SetDataShares(value); return *this;}
57 
61  inline DescribeDataSharesForProducerResult& WithDataShares(Aws::Vector<DataShare>&& value) { SetDataShares(std::move(value)); return *this;}
62 
66  inline DescribeDataSharesForProducerResult& AddDataShares(const DataShare& value) { m_dataShares.push_back(value); return *this; }
67 
71  inline DescribeDataSharesForProducerResult& AddDataShares(DataShare&& value) { m_dataShares.push_back(std::move(value)); return *this; }
72 
73 
82  inline const Aws::String& GetMarker() const{ return m_marker; }
83 
92  inline void SetMarker(const Aws::String& value) { m_marker = value; }
93 
102  inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
103 
112  inline void SetMarker(const char* value) { m_marker.assign(value); }
113 
122  inline DescribeDataSharesForProducerResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
123 
132  inline DescribeDataSharesForProducerResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
133 
142  inline DescribeDataSharesForProducerResult& WithMarker(const char* value) { SetMarker(value); return *this;}
143 
144 
145 
146  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
147 
148 
149  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
150 
151 
152  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
153 
154 
155  inline DescribeDataSharesForProducerResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
156 
157 
158  inline DescribeDataSharesForProducerResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
159 
160  private:
161 
162  Aws::Vector<DataShare> m_dataShares;
163 
164  Aws::String m_marker;
165 
166  ResponseMetadata m_responseMetadata;
167  };
168 
169 } // namespace Model
170 } // namespace Redshift
171 } // namespace Aws
Aws::Redshift::Model::DescribeDataSharesForProducerResult::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeDataSharesForProducerResult.h:92
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::DescribeDataSharesForProducerResult::SetDataShares
void SetDataShares(Aws::Vector< DataShare > &&value)
Definition: DescribeDataSharesForProducerResult.h:51
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::DescribeDataSharesForProducerResult::WithDataShares
DescribeDataSharesForProducerResult & WithDataShares(Aws::Vector< DataShare > &&value)
Definition: DescribeDataSharesForProducerResult.h:61
Aws::Redshift::Model::DescribeDataSharesForProducerResult::SetMarker
void SetMarker(const char *value)
Definition: DescribeDataSharesForProducerResult.h:112
Aws::Redshift::Model::DescribeDataSharesForProducerResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeDataSharesForProducerResult.h:146
Aws::Redshift::Model::DescribeDataSharesForProducerResult::SetDataShares
void SetDataShares(const Aws::Vector< DataShare > &value)
Definition: DescribeDataSharesForProducerResult.h:46
Aws::Redshift::Model::DescribeDataSharesForProducerResult::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeDataSharesForProducerResult.h:102
DataShare.h
Aws::Redshift::Model::DataShare
Definition: DataShare.h:30
Aws::Redshift::Model::DescribeDataSharesForProducerResult::WithMarker
DescribeDataSharesForProducerResult & WithMarker(Aws::String &&value)
Definition: DescribeDataSharesForProducerResult.h:132
Aws::Redshift::Model::DescribeDataSharesForProducerResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeDataSharesForProducerResult.h:149
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Redshift::Model::DescribeDataSharesForProducerResult::GetDataShares
const Aws::Vector< DataShare > & GetDataShares() const
Definition: DescribeDataSharesForProducerResult.h:41
Aws::Redshift::Model::DescribeDataSharesForProducerResult::AddDataShares
DescribeDataSharesForProducerResult & AddDataShares(const DataShare &value)
Definition: DescribeDataSharesForProducerResult.h:66
Aws::Redshift::Model::DescribeDataSharesForProducerResult::WithMarker
DescribeDataSharesForProducerResult & WithMarker(const char *value)
Definition: DescribeDataSharesForProducerResult.h:142
Aws::Redshift::Model::DescribeDataSharesForProducerResult::AddDataShares
DescribeDataSharesForProducerResult & AddDataShares(DataShare &&value)
Definition: DescribeDataSharesForProducerResult.h:71
Aws::Redshift::Model::DescribeDataSharesForProducerResult
Definition: DescribeDataSharesForProducerResult.h:31
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DescribeDataSharesForProducerResult::DescribeDataSharesForProducerResult
DescribeDataSharesForProducerResult()
Aws::Redshift::Model::DescribeDataSharesForProducerResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeDataSharesForProducerResult.h:152
Aws::Redshift::Model::DescribeDataSharesForProducerResult::WithResponseMetadata
DescribeDataSharesForProducerResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeDataSharesForProducerResult.h:155
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::DescribeDataSharesForProducerResult::WithResponseMetadata
DescribeDataSharesForProducerResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeDataSharesForProducerResult.h:158
Aws::Redshift::Model::DescribeDataSharesForProducerResult::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeDataSharesForProducerResult.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResponseMetadata.h
Aws::Redshift::Model::DescribeDataSharesForProducerResult::WithMarker
DescribeDataSharesForProducerResult & WithMarker(const Aws::String &value)
Definition: DescribeDataSharesForProducerResult.h:122
Aws::Redshift::Model::DescribeDataSharesForProducerResult::DescribeDataSharesForProducerResult
DescribeDataSharesForProducerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::DescribeDataSharesForProducerResult::operator=
DescribeDataSharesForProducerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::DescribeDataSharesForProducerResult::WithDataShares
DescribeDataSharesForProducerResult & WithDataShares(const Aws::Vector< DataShare > &value)
Definition: DescribeDataSharesForProducerResult.h:56