AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
GetResourcesRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace APIGateway {
19namespace Model {
20
28 public:
29 AWS_APIGATEWAY_API GetResourcesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetResources"; }
36
37 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
38
39 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
45 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 template <typename RestApiIdT = Aws::String>
48 void SetRestApiId(RestApiIdT&& value) {
49 m_restApiIdHasBeenSet = true;
50 m_restApiId = std::forward<RestApiIdT>(value);
51 }
52 template <typename RestApiIdT = Aws::String>
53 GetResourcesRequest& WithRestApiId(RestApiIdT&& value) {
54 SetRestApiId(std::forward<RestApiIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetPosition() const { return m_position; }
64 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
65 template <typename PositionT = Aws::String>
66 void SetPosition(PositionT&& value) {
67 m_positionHasBeenSet = true;
68 m_position = std::forward<PositionT>(value);
69 }
70 template <typename PositionT = Aws::String>
71 GetResourcesRequest& WithPosition(PositionT&& value) {
72 SetPosition(std::forward<PositionT>(value));
73 return *this;
74 }
76
78
82 inline int GetLimit() const { return m_limit; }
83 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
84 inline void SetLimit(int value) {
85 m_limitHasBeenSet = true;
86 m_limit = value;
87 }
88 inline GetResourcesRequest& WithLimit(int value) {
89 SetLimit(value);
90 return *this;
91 }
93
95
103 inline const Aws::Vector<Aws::String>& GetEmbed() const { return m_embed; }
104 inline bool EmbedHasBeenSet() const { return m_embedHasBeenSet; }
105 template <typename EmbedT = Aws::Vector<Aws::String>>
106 void SetEmbed(EmbedT&& value) {
107 m_embedHasBeenSet = true;
108 m_embed = std::forward<EmbedT>(value);
109 }
110 template <typename EmbedT = Aws::Vector<Aws::String>>
112 SetEmbed(std::forward<EmbedT>(value));
113 return *this;
114 }
115 template <typename EmbedT = Aws::String>
116 GetResourcesRequest& AddEmbed(EmbedT&& value) {
117 m_embedHasBeenSet = true;
118 m_embed.emplace_back(std::forward<EmbedT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_restApiId;
124
125 Aws::String m_position;
126
127 int m_limit{0};
128
130 bool m_restApiIdHasBeenSet = false;
131 bool m_positionHasBeenSet = false;
132 bool m_limitHasBeenSet = false;
133 bool m_embedHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace APIGateway
138} // namespace Aws
GetResourcesRequest & WithLimit(int value)
GetResourcesRequest & WithRestApiId(RestApiIdT &&value)
GetResourcesRequest & WithEmbed(EmbedT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
AWS_APIGATEWAY_API GetResourcesRequest()=default
GetResourcesRequest & AddEmbed(EmbedT &&value)
const Aws::Vector< Aws::String > & GetEmbed() const
virtual const char * GetServiceRequestName() const override
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetResourcesRequest & WithPosition(PositionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector