AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
GetUsageResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace APIGateway {
25namespace Model {
32 public:
33 AWS_APIGATEWAY_API GetUsageResult() = default;
36
38
41 inline const Aws::String& GetUsagePlanId() const { return m_usagePlanId; }
42 template <typename UsagePlanIdT = Aws::String>
43 void SetUsagePlanId(UsagePlanIdT&& value) {
44 m_usagePlanIdHasBeenSet = true;
45 m_usagePlanId = std::forward<UsagePlanIdT>(value);
46 }
47 template <typename UsagePlanIdT = Aws::String>
48 GetUsageResult& WithUsagePlanId(UsagePlanIdT&& value) {
49 SetUsagePlanId(std::forward<UsagePlanIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetStartDate() const { return m_startDate; }
59 template <typename StartDateT = Aws::String>
60 void SetStartDate(StartDateT&& value) {
61 m_startDateHasBeenSet = true;
62 m_startDate = std::forward<StartDateT>(value);
63 }
64 template <typename StartDateT = Aws::String>
65 GetUsageResult& WithStartDate(StartDateT&& value) {
66 SetStartDate(std::forward<StartDateT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEndDate() const { return m_endDate; }
76 template <typename EndDateT = Aws::String>
77 void SetEndDate(EndDateT&& value) {
78 m_endDateHasBeenSet = true;
79 m_endDate = std::forward<EndDateT>(value);
80 }
81 template <typename EndDateT = Aws::String>
82 GetUsageResult& WithEndDate(EndDateT&& value) {
83 SetEndDate(std::forward<EndDateT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetPosition() const { return m_position; }
91 template <typename PositionT = Aws::String>
92 void SetPosition(PositionT&& value) {
93 m_positionHasBeenSet = true;
94 m_position = std::forward<PositionT>(value);
95 }
96 template <typename PositionT = Aws::String>
97 GetUsageResult& WithPosition(PositionT&& value) {
98 SetPosition(std::forward<PositionT>(value));
99 return *this;
100 }
102
104
111 inline const Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>& GetItems() const { return m_items; }
112 template <typename ItemsT = Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>>
113 void SetItems(ItemsT&& value) {
114 m_itemsHasBeenSet = true;
115 m_items = std::forward<ItemsT>(value);
116 }
117 template <typename ItemsT = Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>>
118 GetUsageResult& WithItems(ItemsT&& value) {
119 SetItems(std::forward<ItemsT>(value));
120 return *this;
121 }
122 template <typename ItemsKeyT = Aws::String, typename ItemsValueT = Aws::Vector<Aws::Vector<long long>>>
123 GetUsageResult& AddItems(ItemsKeyT&& key, ItemsValueT&& value) {
124 m_itemsHasBeenSet = true;
125 m_items.emplace(std::forward<ItemsKeyT>(key), std::forward<ItemsValueT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 template <typename RequestIdT = Aws::String>
134 void SetRequestId(RequestIdT&& value) {
135 m_requestIdHasBeenSet = true;
136 m_requestId = std::forward<RequestIdT>(value);
137 }
138 template <typename RequestIdT = Aws::String>
139 GetUsageResult& WithRequestId(RequestIdT&& value) {
140 SetRequestId(std::forward<RequestIdT>(value));
141 return *this;
142 }
144 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
145
146 private:
147 Aws::String m_usagePlanId;
148
149 Aws::String m_startDate;
150
151 Aws::String m_endDate;
152
153 Aws::String m_position;
154
156
157 Aws::String m_requestId;
158 Aws::Http::HttpResponseCode m_HttpResponseCode;
159 bool m_usagePlanIdHasBeenSet = false;
160 bool m_startDateHasBeenSet = false;
161 bool m_endDateHasBeenSet = false;
162 bool m_positionHasBeenSet = false;
163 bool m_itemsHasBeenSet = false;
164 bool m_requestIdHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace APIGateway
169} // namespace Aws
const Aws::String & GetRequestId() const
const Aws::String & GetUsagePlanId() const
GetUsageResult & WithItems(ItemsT &&value)
const Aws::String & GetStartDate() const
AWS_APIGATEWAY_API GetUsageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAY_API GetUsageResult()=default
GetUsageResult & WithUsagePlanId(UsagePlanIdT &&value)
GetUsageResult & WithStartDate(StartDateT &&value)
GetUsageResult & WithEndDate(EndDateT &&value)
AWS_APIGATEWAY_API GetUsageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUsageResult & WithPosition(PositionT &&value)
const Aws::String & GetPosition() const
void SetRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetUsageResult & WithRequestId(RequestIdT &&value)
void SetUsagePlanId(UsagePlanIdT &&value)
void SetStartDate(StartDateT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::Vector< long long > > > & GetItems() const
GetUsageResult & AddItems(ItemsKeyT &&key, ItemsValueT &&value)
const Aws::String & GetEndDate() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue