AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
GetUsageRequest.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 GetUsageRequest() = 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 "GetUsage"; }
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& GetUsagePlanId() const { return m_usagePlanId; }
45 inline bool UsagePlanIdHasBeenSet() const { return m_usagePlanIdHasBeenSet; }
46 template <typename UsagePlanIdT = Aws::String>
47 void SetUsagePlanId(UsagePlanIdT&& value) {
48 m_usagePlanIdHasBeenSet = true;
49 m_usagePlanId = std::forward<UsagePlanIdT>(value);
50 }
51 template <typename UsagePlanIdT = Aws::String>
52 GetUsageRequest& WithUsagePlanId(UsagePlanIdT&& value) {
53 SetUsagePlanId(std::forward<UsagePlanIdT>(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>
70 GetUsageRequest& WithKeyId(KeyIdT&& value) {
71 SetKeyId(std::forward<KeyIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetStartDate() const { return m_startDate; }
81 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
82 template <typename StartDateT = Aws::String>
83 void SetStartDate(StartDateT&& value) {
84 m_startDateHasBeenSet = true;
85 m_startDate = std::forward<StartDateT>(value);
86 }
87 template <typename StartDateT = Aws::String>
88 GetUsageRequest& WithStartDate(StartDateT&& value) {
89 SetStartDate(std::forward<StartDateT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetEndDate() const { return m_endDate; }
99 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
100 template <typename EndDateT = Aws::String>
101 void SetEndDate(EndDateT&& value) {
102 m_endDateHasBeenSet = true;
103 m_endDate = std::forward<EndDateT>(value);
104 }
105 template <typename EndDateT = Aws::String>
106 GetUsageRequest& WithEndDate(EndDateT&& value) {
107 SetEndDate(std::forward<EndDateT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetPosition() const { return m_position; }
117 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
118 template <typename PositionT = Aws::String>
119 void SetPosition(PositionT&& value) {
120 m_positionHasBeenSet = true;
121 m_position = std::forward<PositionT>(value);
122 }
123 template <typename PositionT = Aws::String>
124 GetUsageRequest& WithPosition(PositionT&& value) {
125 SetPosition(std::forward<PositionT>(value));
126 return *this;
127 }
129
131
135 inline int GetLimit() const { return m_limit; }
136 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
137 inline void SetLimit(int value) {
138 m_limitHasBeenSet = true;
139 m_limit = value;
140 }
141 inline GetUsageRequest& WithLimit(int value) {
142 SetLimit(value);
143 return *this;
144 }
146 private:
147 Aws::String m_usagePlanId;
148
149 Aws::String m_keyId;
150
151 Aws::String m_startDate;
152
153 Aws::String m_endDate;
154
155 Aws::String m_position;
156
157 int m_limit{0};
158 bool m_usagePlanIdHasBeenSet = false;
159 bool m_keyIdHasBeenSet = false;
160 bool m_startDateHasBeenSet = false;
161 bool m_endDateHasBeenSet = false;
162 bool m_positionHasBeenSet = false;
163 bool m_limitHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace APIGateway
168} // namespace Aws
GetUsageRequest & WithUsagePlanId(UsagePlanIdT &&value)
const Aws::String & GetStartDate() const
const Aws::String & GetUsagePlanId() const
GetUsageRequest & WithLimit(int value)
GetUsageRequest & WithKeyId(KeyIdT &&value)
GetUsageRequest & WithStartDate(StartDateT &&value)
const Aws::String & GetPosition() const
void SetUsagePlanId(UsagePlanIdT &&value)
const Aws::String & GetKeyId() const
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetUsageRequest & WithPosition(PositionT &&value)
AWS_APIGATEWAY_API GetUsageRequest()=default
GetUsageRequest & WithEndDate(EndDateT &&value)
const Aws::String & GetEndDate() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String