AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetUsageResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace APIGateway
26{
27namespace Model
28{
35 {
36 public:
37 AWS_APIGATEWAY_API GetUsageResult() = default;
40
41
43
46 inline const Aws::String& GetUsagePlanId() const { return m_usagePlanId; }
47 template<typename UsagePlanIdT = Aws::String>
48 void SetUsagePlanId(UsagePlanIdT&& value) { m_usagePlanIdHasBeenSet = true; m_usagePlanId = std::forward<UsagePlanIdT>(value); }
49 template<typename UsagePlanIdT = Aws::String>
50 GetUsageResult& WithUsagePlanId(UsagePlanIdT&& value) { SetUsagePlanId(std::forward<UsagePlanIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetStartDate() const { return m_startDate; }
58 template<typename StartDateT = Aws::String>
59 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
60 template<typename StartDateT = Aws::String>
61 GetUsageResult& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
63
65
68 inline const Aws::String& GetEndDate() const { return m_endDate; }
69 template<typename EndDateT = Aws::String>
70 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
71 template<typename EndDateT = Aws::String>
72 GetUsageResult& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
74
76
77 inline const Aws::String& GetPosition() const { return m_position; }
78 template<typename PositionT = Aws::String>
79 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
80 template<typename PositionT = Aws::String>
81 GetUsageResult& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
83
85
92 inline const Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>& GetItems() const { return m_items; }
93 template<typename ItemsT = Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>>
94 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
95 template<typename ItemsT = Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>>
96 GetUsageResult& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
97 template<typename ItemsKeyT = Aws::String, typename ItemsValueT = Aws::Vector<Aws::Vector<long long>>>
98 GetUsageResult& AddItems(ItemsKeyT&& key, ItemsValueT&& value) {
99 m_itemsHasBeenSet = true; m_items.emplace(std::forward<ItemsKeyT>(key), std::forward<ItemsValueT>(value)); return *this;
100 }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template<typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
108 template<typename RequestIdT = Aws::String>
109 GetUsageResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
111 private:
112
113 Aws::String m_usagePlanId;
114 bool m_usagePlanIdHasBeenSet = false;
115
116 Aws::String m_startDate;
117 bool m_startDateHasBeenSet = false;
118
119 Aws::String m_endDate;
120 bool m_endDateHasBeenSet = false;
121
122 Aws::String m_position;
123 bool m_positionHasBeenSet = false;
124
126 bool m_itemsHasBeenSet = false;
127
128 Aws::String m_requestId;
129 bool m_requestIdHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace APIGateway
134} // 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)
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