AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetResourcesRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace APIGateway
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_APIGATEWAY_API GetResourcesRequest() = default;
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_APIGATEWAY_API Aws::String SerializePayload() const override;
42
43 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
50 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
51 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
52 template<typename RestApiIdT = Aws::String>
53 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
54 template<typename RestApiIdT = Aws::String>
55 GetResourcesRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetPosition() const { return m_position; }
63 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
64 template<typename PositionT = Aws::String>
65 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
66 template<typename PositionT = Aws::String>
67 GetResourcesRequest& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
69
71
75 inline int GetLimit() const { return m_limit; }
76 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
77 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
78 inline GetResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
80
82
90 inline const Aws::Vector<Aws::String>& GetEmbed() const { return m_embed; }
91 inline bool EmbedHasBeenSet() const { return m_embedHasBeenSet; }
92 template<typename EmbedT = Aws::Vector<Aws::String>>
93 void SetEmbed(EmbedT&& value) { m_embedHasBeenSet = true; m_embed = std::forward<EmbedT>(value); }
94 template<typename EmbedT = Aws::Vector<Aws::String>>
95 GetResourcesRequest& WithEmbed(EmbedT&& value) { SetEmbed(std::forward<EmbedT>(value)); return *this;}
96 template<typename EmbedT = Aws::String>
97 GetResourcesRequest& AddEmbed(EmbedT&& value) { m_embedHasBeenSet = true; m_embed.emplace_back(std::forward<EmbedT>(value)); return *this; }
99 private:
100
101 Aws::String m_restApiId;
102 bool m_restApiIdHasBeenSet = false;
103
104 Aws::String m_position;
105 bool m_positionHasBeenSet = false;
106
107 int m_limit{0};
108 bool m_limitHasBeenSet = false;
109
111 bool m_embedHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace APIGateway
116} // 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