AWS SDK for C++  1.9.126
AWS SDK for C++
GetUsageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace APIGateway
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "GetUsage"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetUsagePlanId() const{ return m_usagePlanId; }
49 
53  inline bool UsagePlanIdHasBeenSet() const { return m_usagePlanIdHasBeenSet; }
54 
58  inline void SetUsagePlanId(const Aws::String& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = value; }
59 
63  inline void SetUsagePlanId(Aws::String&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::move(value); }
64 
68  inline void SetUsagePlanId(const char* value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId.assign(value); }
69 
73  inline GetUsageRequest& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
74 
78  inline GetUsageRequest& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
79 
83  inline GetUsageRequest& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;}
84 
85 
89  inline const Aws::String& GetKeyId() const{ return m_keyId; }
90 
94  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
95 
99  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
100 
104  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
105 
109  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
110 
114  inline GetUsageRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
115 
119  inline GetUsageRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
120 
124  inline GetUsageRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
125 
126 
130  inline const Aws::String& GetStartDate() const{ return m_startDate; }
131 
135  inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
136 
140  inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; }
141 
145  inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
146 
150  inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); }
151 
155  inline GetUsageRequest& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
156 
160  inline GetUsageRequest& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
161 
165  inline GetUsageRequest& WithStartDate(const char* value) { SetStartDate(value); return *this;}
166 
167 
171  inline const Aws::String& GetEndDate() const{ return m_endDate; }
172 
176  inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
177 
181  inline void SetEndDate(const Aws::String& value) { m_endDateHasBeenSet = true; m_endDate = value; }
182 
186  inline void SetEndDate(Aws::String&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
187 
191  inline void SetEndDate(const char* value) { m_endDateHasBeenSet = true; m_endDate.assign(value); }
192 
196  inline GetUsageRequest& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;}
197 
201  inline GetUsageRequest& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;}
202 
206  inline GetUsageRequest& WithEndDate(const char* value) { SetEndDate(value); return *this;}
207 
208 
212  inline const Aws::String& GetPosition() const{ return m_position; }
213 
217  inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
218 
222  inline void SetPosition(const Aws::String& value) { m_positionHasBeenSet = true; m_position = value; }
223 
227  inline void SetPosition(Aws::String&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
228 
232  inline void SetPosition(const char* value) { m_positionHasBeenSet = true; m_position.assign(value); }
233 
237  inline GetUsageRequest& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
238 
242  inline GetUsageRequest& WithPosition(Aws::String&& value) { SetPosition(std::move(value)); return *this;}
243 
247  inline GetUsageRequest& WithPosition(const char* value) { SetPosition(value); return *this;}
248 
249 
254  inline int GetLimit() const{ return m_limit; }
255 
260  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
261 
266  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
267 
272  inline GetUsageRequest& WithLimit(int value) { SetLimit(value); return *this;}
273 
274  private:
275 
276  Aws::String m_usagePlanId;
277  bool m_usagePlanIdHasBeenSet;
278 
279  Aws::String m_keyId;
280  bool m_keyIdHasBeenSet;
281 
282  Aws::String m_startDate;
283  bool m_startDateHasBeenSet;
284 
285  Aws::String m_endDate;
286  bool m_endDateHasBeenSet;
287 
288  Aws::String m_position;
289  bool m_positionHasBeenSet;
290 
291  int m_limit;
292  bool m_limitHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace APIGateway
297 } // namespace Aws
Aws::APIGateway::Model::GetUsageRequest::WithPosition
GetUsageRequest & WithPosition(Aws::String &&value)
Definition: GetUsageRequest.h:242
Aws::APIGateway::Model::GetUsageRequest::WithEndDate
GetUsageRequest & WithEndDate(const char *value)
Definition: GetUsageRequest.h:206
Aws::APIGateway::Model::GetUsageRequest::GetLimit
int GetLimit() const
Definition: GetUsageRequest.h:254
Aws::Http::URI
Definition: URI.h:32
Aws::APIGateway::Model::GetUsageRequest
Definition: GetUsageRequest.h:30
Aws::APIGateway::Model::GetUsageRequest::SetEndDate
void SetEndDate(const Aws::String &value)
Definition: GetUsageRequest.h:181
Aws::APIGateway::Model::GetUsageRequest::SetEndDate
void SetEndDate(Aws::String &&value)
Definition: GetUsageRequest.h:186
Aws::APIGateway::Model::GetUsageRequest::WithStartDate
GetUsageRequest & WithStartDate(const Aws::String &value)
Definition: GetUsageRequest.h:155
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetUsageRequest::SetPosition
void SetPosition(const char *value)
Definition: GetUsageRequest.h:232
Aws::APIGateway::Model::GetUsageRequest::SetStartDate
void SetStartDate(Aws::String &&value)
Definition: GetUsageRequest.h:145
Aws::APIGateway::Model::GetUsageRequest::UsagePlanIdHasBeenSet
bool UsagePlanIdHasBeenSet() const
Definition: GetUsageRequest.h:53
Aws::APIGateway::Model::GetUsageRequest::SetKeyId
void SetKeyId(const char *value)
Definition: GetUsageRequest.h:109
Aws::APIGateway::Model::GetUsageRequest::SetLimit
void SetLimit(int value)
Definition: GetUsageRequest.h:266
Aws::APIGateway::Model::GetUsageRequest::WithEndDate
GetUsageRequest & WithEndDate(Aws::String &&value)
Definition: GetUsageRequest.h:201
Aws::APIGateway::Model::GetUsageRequest::WithEndDate
GetUsageRequest & WithEndDate(const Aws::String &value)
Definition: GetUsageRequest.h:196
Aws::APIGateway::Model::GetUsageRequest::WithUsagePlanId
GetUsageRequest & WithUsagePlanId(const char *value)
Definition: GetUsageRequest.h:83
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetUsageRequest::WithPosition
GetUsageRequest & WithPosition(const Aws::String &value)
Definition: GetUsageRequest.h:237
Aws::APIGateway::Model::GetUsageRequest::WithStartDate
GetUsageRequest & WithStartDate(const char *value)
Definition: GetUsageRequest.h:165
Aws::APIGateway::Model::GetUsageRequest::PositionHasBeenSet
bool PositionHasBeenSet() const
Definition: GetUsageRequest.h:217
Aws::APIGateway::Model::GetUsageRequest::WithLimit
GetUsageRequest & WithLimit(int value)
Definition: GetUsageRequest.h:272
Aws::APIGateway::Model::GetUsageRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: GetUsageRequest.h:99
Aws::APIGateway::Model::GetUsageRequest::WithStartDate
GetUsageRequest & WithStartDate(Aws::String &&value)
Definition: GetUsageRequest.h:160
Aws::APIGateway::Model::GetUsageRequest::StartDateHasBeenSet
bool StartDateHasBeenSet() const
Definition: GetUsageRequest.h:135
APIGatewayRequest.h
Aws::APIGateway::Model::GetUsageRequest::SetPosition
void SetPosition(const Aws::String &value)
Definition: GetUsageRequest.h:222
Aws::APIGateway::Model::GetUsageRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: GetUsageRequest.h:104
Aws::APIGateway::Model::GetUsageRequest::SetEndDate
void SetEndDate(const char *value)
Definition: GetUsageRequest.h:191
Aws::APIGateway::Model::GetUsageRequest::SetUsagePlanId
void SetUsagePlanId(const Aws::String &value)
Definition: GetUsageRequest.h:58
Aws::APIGateway::Model::GetUsageRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::APIGateway::Model::GetUsageRequest::SetUsagePlanId
void SetUsagePlanId(const char *value)
Definition: GetUsageRequest.h:68
Aws::APIGateway::Model::GetUsageRequest::WithPosition
GetUsageRequest & WithPosition(const char *value)
Definition: GetUsageRequest.h:247
Aws::APIGateway::Model::GetUsageRequest::SetUsagePlanId
void SetUsagePlanId(Aws::String &&value)
Definition: GetUsageRequest.h:63
Aws::APIGateway::Model::GetUsageRequest::GetEndDate
const Aws::String & GetEndDate() const
Definition: GetUsageRequest.h:171
Aws::APIGateway::Model::GetUsageRequest::GetPosition
const Aws::String & GetPosition() const
Definition: GetUsageRequest.h:212
AWSString.h
Aws::APIGateway::Model::GetUsageRequest::EndDateHasBeenSet
bool EndDateHasBeenSet() const
Definition: GetUsageRequest.h:176
Aws::APIGateway::Model::GetUsageRequest::GetStartDate
const Aws::String & GetStartDate() const
Definition: GetUsageRequest.h:130
Aws::APIGateway::Model::GetUsageRequest::WithKeyId
GetUsageRequest & WithKeyId(const Aws::String &value)
Definition: GetUsageRequest.h:114
Aws::APIGateway::Model::GetUsageRequest::WithUsagePlanId
GetUsageRequest & WithUsagePlanId(const Aws::String &value)
Definition: GetUsageRequest.h:73
Aws::APIGateway::Model::GetUsageRequest::SetPosition
void SetPosition(Aws::String &&value)
Definition: GetUsageRequest.h:227
Aws::APIGateway::Model::GetUsageRequest::SetStartDate
void SetStartDate(const Aws::String &value)
Definition: GetUsageRequest.h:140
Aws::APIGateway::Model::GetUsageRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: GetUsageRequest.h:89
Aws::APIGateway::Model::GetUsageRequest::GetUsagePlanId
const Aws::String & GetUsagePlanId() const
Definition: GetUsageRequest.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetUsageRequest::WithKeyId
GetUsageRequest & WithKeyId(const char *value)
Definition: GetUsageRequest.h:124
Aws::APIGateway::Model::GetUsageRequest::WithKeyId
GetUsageRequest & WithKeyId(Aws::String &&value)
Definition: GetUsageRequest.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetUsageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetUsageRequest.h:38
Aws::APIGateway::Model::GetUsageRequest::GetUsageRequest
GetUsageRequest()
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::GetUsageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::GetUsageRequest::SetStartDate
void SetStartDate(const char *value)
Definition: GetUsageRequest.h:150
Aws::APIGateway::Model::GetUsageRequest::WithUsagePlanId
GetUsageRequest & WithUsagePlanId(Aws::String &&value)
Definition: GetUsageRequest.h:78
Aws::APIGateway::Model::GetUsageRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: GetUsageRequest.h:94
Aws::APIGateway::Model::GetUsageRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: GetUsageRequest.h:260