AWS SDK for C++  1.9.129
AWS SDK for C++
GetResourcesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace APIGateway
20 {
21 namespace Model
22 {
23 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "GetResources"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
45 
49  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
50 
54  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
55 
59  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
60 
64  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
65 
69  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
70 
74  inline GetResourcesRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
75 
79  inline GetResourcesRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
80 
84  inline GetResourcesRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
85 
86 
90  inline const Aws::String& GetPosition() const{ return m_position; }
91 
95  inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
96 
100  inline void SetPosition(const Aws::String& value) { m_positionHasBeenSet = true; m_position = value; }
101 
105  inline void SetPosition(Aws::String&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
106 
110  inline void SetPosition(const char* value) { m_positionHasBeenSet = true; m_position.assign(value); }
111 
115  inline GetResourcesRequest& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
116 
120  inline GetResourcesRequest& WithPosition(Aws::String&& value) { SetPosition(std::move(value)); return *this;}
121 
125  inline GetResourcesRequest& WithPosition(const char* value) { SetPosition(value); return *this;}
126 
127 
132  inline int GetLimit() const{ return m_limit; }
133 
138  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
139 
144  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
145 
150  inline GetResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
151 
152 
162  inline const Aws::Vector<Aws::String>& GetEmbed() const{ return m_embed; }
163 
173  inline bool EmbedHasBeenSet() const { return m_embedHasBeenSet; }
174 
184  inline void SetEmbed(const Aws::Vector<Aws::String>& value) { m_embedHasBeenSet = true; m_embed = value; }
185 
195  inline void SetEmbed(Aws::Vector<Aws::String>&& value) { m_embedHasBeenSet = true; m_embed = std::move(value); }
196 
206  inline GetResourcesRequest& WithEmbed(const Aws::Vector<Aws::String>& value) { SetEmbed(value); return *this;}
207 
217  inline GetResourcesRequest& WithEmbed(Aws::Vector<Aws::String>&& value) { SetEmbed(std::move(value)); return *this;}
218 
228  inline GetResourcesRequest& AddEmbed(const Aws::String& value) { m_embedHasBeenSet = true; m_embed.push_back(value); return *this; }
229 
239  inline GetResourcesRequest& AddEmbed(Aws::String&& value) { m_embedHasBeenSet = true; m_embed.push_back(std::move(value)); return *this; }
240 
250  inline GetResourcesRequest& AddEmbed(const char* value) { m_embedHasBeenSet = true; m_embed.push_back(value); return *this; }
251 
252  private:
253 
254  Aws::String m_restApiId;
255  bool m_restApiIdHasBeenSet;
256 
257  Aws::String m_position;
258  bool m_positionHasBeenSet;
259 
260  int m_limit;
261  bool m_limitHasBeenSet;
262 
263  Aws::Vector<Aws::String> m_embed;
264  bool m_embedHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace APIGateway
269 } // namespace Aws
Aws::APIGateway::Model::GetResourcesRequest::AddEmbed
GetResourcesRequest & AddEmbed(const char *value)
Definition: GetResourcesRequest.h:250
Aws::APIGateway::Model::GetResourcesRequest::SetEmbed
void SetEmbed(Aws::Vector< Aws::String > &&value)
Definition: GetResourcesRequest.h:195
Aws::Http::URI
Definition: URI.h:32
Aws::APIGateway::Model::GetResourcesRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: GetResourcesRequest.h:64
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetResourcesRequest::SetPosition
void SetPosition(const char *value)
Definition: GetResourcesRequest.h:110
Aws::APIGateway::Model::GetResourcesRequest::SetPosition
void SetPosition(Aws::String &&value)
Definition: GetResourcesRequest.h:105
Aws::APIGateway::Model::GetResourcesRequest::SetLimit
void SetLimit(int value)
Definition: GetResourcesRequest.h:144
Aws::APIGateway::Model::GetResourcesRequest::WithPosition
GetResourcesRequest & WithPosition(Aws::String &&value)
Definition: GetResourcesRequest.h:120
Aws::APIGateway::Model::GetResourcesRequest::WithEmbed
GetResourcesRequest & WithEmbed(const Aws::Vector< Aws::String > &value)
Definition: GetResourcesRequest.h:206
Aws::APIGateway::Model::GetResourcesRequest::WithRestApiId
GetResourcesRequest & WithRestApiId(const char *value)
Definition: GetResourcesRequest.h:84
Aws::APIGateway::Model::GetResourcesRequest::AddEmbed
GetResourcesRequest & AddEmbed(Aws::String &&value)
Definition: GetResourcesRequest.h:239
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::APIGateway::Model::GetResourcesRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: GetResourcesRequest.h:59
APIGatewayRequest.h
Aws::APIGateway::Model::GetResourcesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetResourcesRequest.h:39
Aws::APIGateway::Model::GetResourcesRequest::SetPosition
void SetPosition(const Aws::String &value)
Definition: GetResourcesRequest.h:100
Aws::APIGateway::Model::GetResourcesRequest::EmbedHasBeenSet
bool EmbedHasBeenSet() const
Definition: GetResourcesRequest.h:173
Aws::APIGateway::Model::GetResourcesRequest::WithLimit
GetResourcesRequest & WithLimit(int value)
Definition: GetResourcesRequest.h:150
Aws::APIGateway::Model::GetResourcesRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: GetResourcesRequest.h:69
Aws::APIGateway::Model::GetResourcesRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: GetResourcesRequest.h:54
AWSString.h
Aws::APIGateway::Model::GetResourcesRequest::AddEmbed
GetResourcesRequest & AddEmbed(const Aws::String &value)
Definition: GetResourcesRequest.h:228
Aws::APIGateway::Model::GetResourcesRequest::WithRestApiId
GetResourcesRequest & WithRestApiId(Aws::String &&value)
Definition: GetResourcesRequest.h:79
Aws::APIGateway::Model::GetResourcesRequest::PositionHasBeenSet
bool PositionHasBeenSet() const
Definition: GetResourcesRequest.h:95
Aws::APIGateway::Model::GetResourcesRequest::WithEmbed
GetResourcesRequest & WithEmbed(Aws::Vector< Aws::String > &&value)
Definition: GetResourcesRequest.h:217
Aws::APIGateway::Model::GetResourcesRequest::GetLimit
int GetLimit() const
Definition: GetResourcesRequest.h:132
Aws::APIGateway::Model::GetResourcesRequest
Definition: GetResourcesRequest.h:31
Aws::APIGateway::Model::GetResourcesRequest::WithRestApiId
GetResourcesRequest & WithRestApiId(const Aws::String &value)
Definition: GetResourcesRequest.h:74
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetResourcesRequest::WithPosition
GetResourcesRequest & WithPosition(const char *value)
Definition: GetResourcesRequest.h:125
Aws::APIGateway::Model::GetResourcesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetResourcesRequest::SetEmbed
void SetEmbed(const Aws::Vector< Aws::String > &value)
Definition: GetResourcesRequest.h:184
Aws::APIGateway::Model::GetResourcesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: GetResourcesRequest.h:138
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::GetResourcesRequest::GetPosition
const Aws::String & GetPosition() const
Definition: GetResourcesRequest.h:90
Aws::APIGateway::Model::GetResourcesRequest::GetEmbed
const Aws::Vector< Aws::String > & GetEmbed() const
Definition: GetResourcesRequest.h:162
Aws::APIGateway::Model::GetResourcesRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: GetResourcesRequest.h:49
Aws::APIGateway::Model::GetResourcesRequest::GetResourcesRequest
GetResourcesRequest()
Aws::APIGateway::Model::GetResourcesRequest::WithPosition
GetResourcesRequest & WithPosition(const Aws::String &value)
Definition: GetResourcesRequest.h:115
Aws::APIGateway::Model::GetResourcesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override