AWS SDK for C++  1.9.103
AWS SDK for C++
DescribeReservedNodesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "DescribeReservedNodes"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetReservedNodeId() const{ return m_reservedNodeId; }
46 
50  inline bool ReservedNodeIdHasBeenSet() const { return m_reservedNodeIdHasBeenSet; }
51 
55  inline void SetReservedNodeId(const Aws::String& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = value; }
56 
60  inline void SetReservedNodeId(Aws::String&& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = std::move(value); }
61 
65  inline void SetReservedNodeId(const char* value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId.assign(value); }
66 
70  inline DescribeReservedNodesRequest& WithReservedNodeId(const Aws::String& value) { SetReservedNodeId(value); return *this;}
71 
75  inline DescribeReservedNodesRequest& WithReservedNodeId(Aws::String&& value) { SetReservedNodeId(std::move(value)); return *this;}
76 
80  inline DescribeReservedNodesRequest& WithReservedNodeId(const char* value) { SetReservedNodeId(value); return *this;}
81 
82 
91  inline int GetMaxRecords() const{ return m_maxRecords; }
92 
101  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
102 
111  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
112 
121  inline DescribeReservedNodesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
122 
123 
132  inline const Aws::String& GetMarker() const{ return m_marker; }
133 
142  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
143 
152  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
153 
162  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
163 
172  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
173 
182  inline DescribeReservedNodesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
183 
192  inline DescribeReservedNodesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
193 
202  inline DescribeReservedNodesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
203 
204  private:
205 
206  Aws::String m_reservedNodeId;
207  bool m_reservedNodeIdHasBeenSet;
208 
209  int m_maxRecords;
210  bool m_maxRecordsHasBeenSet;
211 
212  Aws::String m_marker;
213  bool m_markerHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace Redshift
218 } // namespace Aws
Aws::Redshift::Model::DescribeReservedNodesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: DescribeReservedNodesRequest.h:142
Aws::Redshift::Model::DescribeReservedNodesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeReservedNodesRequest.h:132
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::DescribeReservedNodesRequest::MaxRecordsHasBeenSet
bool MaxRecordsHasBeenSet() const
Definition: DescribeReservedNodesRequest.h:101
Aws::Redshift::Model::DescribeReservedNodesRequest::WithMaxRecords
DescribeReservedNodesRequest & WithMaxRecords(int value)
Definition: DescribeReservedNodesRequest.h:121
Aws::Redshift::Model::DescribeReservedNodesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeReservedNodesRequest.h:152
Aws::Redshift::Model::DescribeReservedNodesRequest::GetReservedNodeId
const Aws::String & GetReservedNodeId() const
Definition: DescribeReservedNodesRequest.h:45
RedshiftRequest.h
Aws::Redshift::Model::DescribeReservedNodesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::DescribeReservedNodesRequest::SetReservedNodeId
void SetReservedNodeId(const Aws::String &value)
Definition: DescribeReservedNodesRequest.h:55
Aws::Redshift::Model::DescribeReservedNodesRequest::WithReservedNodeId
DescribeReservedNodesRequest & WithReservedNodeId(const Aws::String &value)
Definition: DescribeReservedNodesRequest.h:70
Aws::Redshift::Model::DescribeReservedNodesRequest::GetMaxRecords
int GetMaxRecords() const
Definition: DescribeReservedNodesRequest.h:91
Aws::Redshift::Model::DescribeReservedNodesRequest::DescribeReservedNodesRequest
DescribeReservedNodesRequest()
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::DescribeReservedNodesRequest::WithMarker
DescribeReservedNodesRequest & WithMarker(const Aws::String &value)
Definition: DescribeReservedNodesRequest.h:182
AWSString.h
Aws::Redshift::Model::DescribeReservedNodesRequest::SetReservedNodeId
void SetReservedNodeId(Aws::String &&value)
Definition: DescribeReservedNodesRequest.h:60
Aws::Redshift::Model::DescribeReservedNodesRequest::SetReservedNodeId
void SetReservedNodeId(const char *value)
Definition: DescribeReservedNodesRequest.h:65
Aws::Redshift::Model::DescribeReservedNodesRequest::SetMaxRecords
void SetMaxRecords(int value)
Definition: DescribeReservedNodesRequest.h:111
Aws::Redshift::Model::DescribeReservedNodesRequest
Definition: DescribeReservedNodesRequest.h:25
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::DescribeReservedNodesRequest::SetMarker
void SetMarker(const char *value)
Definition: DescribeReservedNodesRequest.h:172
Redshift_EXPORTS.h
Aws::Redshift::Model::DescribeReservedNodesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::DescribeReservedNodesRequest::ReservedNodeIdHasBeenSet
bool ReservedNodeIdHasBeenSet() const
Definition: DescribeReservedNodesRequest.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DescribeReservedNodesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeReservedNodesRequest.h:162
Aws::Redshift::Model::DescribeReservedNodesRequest::WithMarker
DescribeReservedNodesRequest & WithMarker(Aws::String &&value)
Definition: DescribeReservedNodesRequest.h:192
Aws::Redshift::Model::DescribeReservedNodesRequest::WithMarker
DescribeReservedNodesRequest & WithMarker(const char *value)
Definition: DescribeReservedNodesRequest.h:202
Aws::Redshift::Model::DescribeReservedNodesRequest::WithReservedNodeId
DescribeReservedNodesRequest & WithReservedNodeId(Aws::String &&value)
Definition: DescribeReservedNodesRequest.h:75
Aws::Redshift::Model::DescribeReservedNodesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeReservedNodesRequest.h:33
Aws::Redshift::Model::DescribeReservedNodesRequest::WithReservedNodeId
DescribeReservedNodesRequest & WithReservedNodeId(const char *value)
Definition: DescribeReservedNodesRequest.h:80