AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename UsagePlanIdT = Aws::String>
52 void SetUsagePlanId(UsagePlanIdT&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::forward<UsagePlanIdT>(value); }
53 template<typename UsagePlanIdT = Aws::String>
54 GetUsageRequest& WithUsagePlanId(UsagePlanIdT&& value) { SetUsagePlanId(std::forward<UsagePlanIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetKeyId() const { return m_keyId; }
62 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
63 template<typename KeyIdT = Aws::String>
64 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
65 template<typename KeyIdT = Aws::String>
66 GetUsageRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetStartDate() const { return m_startDate; }
74 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
75 template<typename StartDateT = Aws::String>
76 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
77 template<typename StartDateT = Aws::String>
78 GetUsageRequest& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
80
82
85 inline const Aws::String& GetEndDate() const { return m_endDate; }
86 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
87 template<typename EndDateT = Aws::String>
88 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
89 template<typename EndDateT = Aws::String>
90 GetUsageRequest& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
92
94
97 inline const Aws::String& GetPosition() const { return m_position; }
98 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
99 template<typename PositionT = Aws::String>
100 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
101 template<typename PositionT = Aws::String>
102 GetUsageRequest& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
104
106
110 inline int GetLimit() const { return m_limit; }
111 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
112 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
113 inline GetUsageRequest& WithLimit(int value) { SetLimit(value); return *this;}
115 private:
116
117 Aws::String m_usagePlanId;
118 bool m_usagePlanIdHasBeenSet = false;
119
120 Aws::String m_keyId;
121 bool m_keyIdHasBeenSet = false;
122
123 Aws::String m_startDate;
124 bool m_startDateHasBeenSet = false;
125
126 Aws::String m_endDate;
127 bool m_endDateHasBeenSet = false;
128
129 Aws::String m_position;
130 bool m_positionHasBeenSet = false;
131
132 int m_limit{0};
133 bool m_limitHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace APIGateway
138} // 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