AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetUsageRequest.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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace APIGateway
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_APIGATEWAY_API GetUsageRequest();
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_APIGATEWAY_API Aws::String SerializePayload() const override;
41
42 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::String& GetUsagePlanId() const{ return m_usagePlanId; }
50 inline bool UsagePlanIdHasBeenSet() const { return m_usagePlanIdHasBeenSet; }
51 inline void SetUsagePlanId(const Aws::String& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = value; }
52 inline void SetUsagePlanId(Aws::String&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::move(value); }
53 inline void SetUsagePlanId(const char* value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId.assign(value); }
54 inline GetUsageRequest& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
55 inline GetUsageRequest& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
56 inline GetUsageRequest& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;}
58
60
63 inline const Aws::String& GetKeyId() const{ return m_keyId; }
64 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
65 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
66 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
67 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
68 inline GetUsageRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
69 inline GetUsageRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
70 inline GetUsageRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
72
74
77 inline const Aws::String& GetStartDate() const{ return m_startDate; }
78 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
79 inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; }
80 inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
81 inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); }
82 inline GetUsageRequest& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
83 inline GetUsageRequest& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
84 inline GetUsageRequest& WithStartDate(const char* value) { SetStartDate(value); return *this;}
86
88
91 inline const Aws::String& GetEndDate() const{ return m_endDate; }
92 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
93 inline void SetEndDate(const Aws::String& value) { m_endDateHasBeenSet = true; m_endDate = value; }
94 inline void SetEndDate(Aws::String&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
95 inline void SetEndDate(const char* value) { m_endDateHasBeenSet = true; m_endDate.assign(value); }
96 inline GetUsageRequest& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;}
97 inline GetUsageRequest& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;}
98 inline GetUsageRequest& WithEndDate(const char* value) { SetEndDate(value); return *this;}
100
102
105 inline const Aws::String& GetPosition() const{ return m_position; }
106 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
107 inline void SetPosition(const Aws::String& value) { m_positionHasBeenSet = true; m_position = value; }
108 inline void SetPosition(Aws::String&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
109 inline void SetPosition(const char* value) { m_positionHasBeenSet = true; m_position.assign(value); }
110 inline GetUsageRequest& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
111 inline GetUsageRequest& WithPosition(Aws::String&& value) { SetPosition(std::move(value)); return *this;}
112 inline GetUsageRequest& WithPosition(const char* value) { SetPosition(value); return *this;}
114
116
120 inline int GetLimit() const{ return m_limit; }
121 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
122 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
123 inline GetUsageRequest& WithLimit(int value) { SetLimit(value); return *this;}
125 private:
126
127 Aws::String m_usagePlanId;
128 bool m_usagePlanIdHasBeenSet = false;
129
130 Aws::String m_keyId;
131 bool m_keyIdHasBeenSet = false;
132
133 Aws::String m_startDate;
134 bool m_startDateHasBeenSet = false;
135
136 Aws::String m_endDate;
137 bool m_endDateHasBeenSet = false;
138
139 Aws::String m_position;
140 bool m_positionHasBeenSet = false;
141
142 int m_limit;
143 bool m_limitHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace APIGateway
148} // namespace Aws
GetUsageRequest & WithStartDate(Aws::String &&value)
void SetPosition(const Aws::String &value)
GetUsageRequest & WithKeyId(const Aws::String &value)
void SetUsagePlanId(const Aws::String &value)
const Aws::String & GetStartDate() const
const Aws::String & GetUsagePlanId() const
GetUsageRequest & WithLimit(int value)
GetUsageRequest & WithEndDate(Aws::String &&value)
void SetEndDate(const Aws::String &value)
GetUsageRequest & WithKeyId(Aws::String &&value)
const Aws::String & GetPosition() const
GetUsageRequest & WithKeyId(const char *value)
GetUsageRequest & WithStartDate(const char *value)
GetUsageRequest & WithEndDate(const char *value)
GetUsageRequest & WithPosition(const char *value)
GetUsageRequest & WithPosition(Aws::String &&value)
GetUsageRequest & WithEndDate(const Aws::String &value)
const Aws::String & GetKeyId() const
GetUsageRequest & WithUsagePlanId(const char *value)
GetUsageRequest & WithUsagePlanId(Aws::String &&value)
void SetKeyId(const Aws::String &value)
GetUsageRequest & WithUsagePlanId(const Aws::String &value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetUsageRequest & WithStartDate(const Aws::String &value)
void SetUsagePlanId(Aws::String &&value)
void SetStartDate(const Aws::String &value)
void SetStartDate(Aws::String &&value)
const Aws::String & GetEndDate() const
GetUsageRequest & WithPosition(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String