AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
GetUsagePlansRequest.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
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace APIGateway {
18namespace Model {
19
27 public:
28 AWS_APIGATEWAY_API GetUsagePlansRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetUsagePlans"; }
35
36 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
37
38 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetPosition() const { return m_position; }
45 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
46 template <typename PositionT = Aws::String>
47 void SetPosition(PositionT&& value) {
48 m_positionHasBeenSet = true;
49 m_position = std::forward<PositionT>(value);
50 }
51 template <typename PositionT = Aws::String>
52 GetUsagePlansRequest& WithPosition(PositionT&& value) {
53 SetPosition(std::forward<PositionT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetKeyId() const { return m_keyId; }
63 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
64 template <typename KeyIdT = Aws::String>
65 void SetKeyId(KeyIdT&& value) {
66 m_keyIdHasBeenSet = true;
67 m_keyId = std::forward<KeyIdT>(value);
68 }
69 template <typename KeyIdT = Aws::String>
71 SetKeyId(std::forward<KeyIdT>(value));
72 return *this;
73 }
75
77
81 inline int GetLimit() const { return m_limit; }
82 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
83 inline void SetLimit(int value) {
84 m_limitHasBeenSet = true;
85 m_limit = value;
86 }
87 inline GetUsagePlansRequest& WithLimit(int value) {
88 SetLimit(value);
89 return *this;
90 }
92 private:
93 Aws::String m_position;
94
95 Aws::String m_keyId;
96
97 int m_limit{0};
98 bool m_positionHasBeenSet = false;
99 bool m_keyIdHasBeenSet = false;
100 bool m_limitHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace APIGateway
105} // namespace Aws
AWS_APIGATEWAY_API GetUsagePlansRequest()=default
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetUsagePlansRequest & WithPosition(PositionT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetUsagePlansRequest & WithLimit(int value)
GetUsagePlansRequest & WithKeyId(KeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String