AWS SDK for C++  1.9.160
AWS SDK for C++
DescribeDataSharesForConsumerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeDataSharesForConsumer"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
44  inline const Aws::String& GetConsumerArn() const{ return m_consumerArn; }
45 
50  inline bool ConsumerArnHasBeenSet() const { return m_consumerArnHasBeenSet; }
51 
56  inline void SetConsumerArn(const Aws::String& value) { m_consumerArnHasBeenSet = true; m_consumerArn = value; }
57 
62  inline void SetConsumerArn(Aws::String&& value) { m_consumerArnHasBeenSet = true; m_consumerArn = std::move(value); }
63 
68  inline void SetConsumerArn(const char* value) { m_consumerArnHasBeenSet = true; m_consumerArn.assign(value); }
69 
74  inline DescribeDataSharesForConsumerRequest& WithConsumerArn(const Aws::String& value) { SetConsumerArn(value); return *this;}
75 
80  inline DescribeDataSharesForConsumerRequest& WithConsumerArn(Aws::String&& value) { SetConsumerArn(std::move(value)); return *this;}
81 
86  inline DescribeDataSharesForConsumerRequest& WithConsumerArn(const char* value) { SetConsumerArn(value); return *this;}
87 
88 
94  inline const DataShareStatusForConsumer& GetStatus() const{ return m_status; }
95 
101  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 
108  inline void SetStatus(const DataShareStatusForConsumer& value) { m_statusHasBeenSet = true; m_status = value; }
109 
115  inline void SetStatus(DataShareStatusForConsumer&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
116 
122  inline DescribeDataSharesForConsumerRequest& WithStatus(const DataShareStatusForConsumer& value) { SetStatus(value); return *this;}
123 
129  inline DescribeDataSharesForConsumerRequest& WithStatus(DataShareStatusForConsumer&& value) { SetStatus(std::move(value)); return *this;}
130 
131 
139  inline int GetMaxRecords() const{ return m_maxRecords; }
140 
148  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
149 
157  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
158 
166  inline DescribeDataSharesForConsumerRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
167 
168 
177  inline const Aws::String& GetMarker() const{ return m_marker; }
178 
187  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
188 
197  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
198 
207  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
208 
217  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
218 
227  inline DescribeDataSharesForConsumerRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
228 
237  inline DescribeDataSharesForConsumerRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
238 
247  inline DescribeDataSharesForConsumerRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
248 
249  private:
250 
251  Aws::String m_consumerArn;
252  bool m_consumerArnHasBeenSet;
253 
255  bool m_statusHasBeenSet;
256 
257  int m_maxRecords;
258  bool m_maxRecordsHasBeenSet;
259 
260  Aws::String m_marker;
261  bool m_markerHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace Redshift
266 } // namespace Aws
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithMarker
DescribeDataSharesForConsumerRequest & WithMarker(const Aws::String &value)
Definition: DescribeDataSharesForConsumerRequest.h:227
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithStatus
DescribeDataSharesForConsumerRequest & WithStatus(DataShareStatusForConsumer &&value)
Definition: DescribeDataSharesForConsumerRequest.h:129
Aws::Redshift::Model::DataShareStatusForConsumer
DataShareStatusForConsumer
Definition: DataShareStatusForConsumer.h:17
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::GetMaxRecords
int GetMaxRecords() const
Definition: DescribeDataSharesForConsumerRequest.h:139
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithMarker
DescribeDataSharesForConsumerRequest & WithMarker(Aws::String &&value)
Definition: DescribeDataSharesForConsumerRequest.h:237
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithMarker
DescribeDataSharesForConsumerRequest & WithMarker(const char *value)
Definition: DescribeDataSharesForConsumerRequest.h:247
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetStatus
void SetStatus(DataShareStatusForConsumer &&value)
Definition: DescribeDataSharesForConsumerRequest.h:115
RedshiftRequest.h
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetConsumerArn
void SetConsumerArn(Aws::String &&value)
Definition: DescribeDataSharesForConsumerRequest.h:62
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithConsumerArn
DescribeDataSharesForConsumerRequest & WithConsumerArn(Aws::String &&value)
Definition: DescribeDataSharesForConsumerRequest.h:80
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeDataSharesForConsumerRequest.h:177
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetConsumerArn
void SetConsumerArn(const char *value)
Definition: DescribeDataSharesForConsumerRequest.h:68
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetConsumerArn
void SetConsumerArn(const Aws::String &value)
Definition: DescribeDataSharesForConsumerRequest.h:56
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::GetConsumerArn
const Aws::String & GetConsumerArn() const
Definition: DescribeDataSharesForConsumerRequest.h:44
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest
Definition: DescribeDataSharesForConsumerRequest.h:23
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetStatus
void SetStatus(const DataShareStatusForConsumer &value)
Definition: DescribeDataSharesForConsumerRequest.h:108
DataShareStatusForConsumer.h
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetMarker
void SetMarker(const char *value)
Definition: DescribeDataSharesForConsumerRequest.h:217
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::MaxRecordsHasBeenSet
bool MaxRecordsHasBeenSet() const
Definition: DescribeDataSharesForConsumerRequest.h:148
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeDataSharesForConsumerRequest.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithConsumerArn
DescribeDataSharesForConsumerRequest & WithConsumerArn(const Aws::String &value)
Definition: DescribeDataSharesForConsumerRequest.h:74
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::DescribeDataSharesForConsumerRequest
DescribeDataSharesForConsumerRequest()
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithConsumerArn
DescribeDataSharesForConsumerRequest & WithConsumerArn(const char *value)
Definition: DescribeDataSharesForConsumerRequest.h:86
Redshift_EXPORTS.h
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeDataSharesForConsumerRequest.h:207
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: DescribeDataSharesForConsumerRequest.h:187
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetMaxRecords
void SetMaxRecords(int value)
Definition: DescribeDataSharesForConsumerRequest.h:157
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::ConsumerArnHasBeenSet
bool ConsumerArnHasBeenSet() const
Definition: DescribeDataSharesForConsumerRequest.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::GetStatus
const DataShareStatusForConsumer & GetStatus() const
Definition: DescribeDataSharesForConsumerRequest.h:94
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: DescribeDataSharesForConsumerRequest.h:101
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeDataSharesForConsumerRequest.h:197
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithStatus
DescribeDataSharesForConsumerRequest & WithStatus(const DataShareStatusForConsumer &value)
Definition: DescribeDataSharesForConsumerRequest.h:122
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::WithMaxRecords
DescribeDataSharesForConsumerRequest & WithMaxRecords(int value)
Definition: DescribeDataSharesForConsumerRequest.h:166
Aws::Redshift::Model::DescribeDataSharesForConsumerRequest::SerializePayload
Aws::String SerializePayload() const override