AWS SDK for C++  1.9.16
AWS SDK for C++
GetUsageResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace APIGateway
26 {
27 namespace Model
28 {
40  {
41  public:
45 
46 
50  inline const Aws::String& GetUsagePlanId() const{ return m_usagePlanId; }
51 
55  inline void SetUsagePlanId(const Aws::String& value) { m_usagePlanId = value; }
56 
60  inline void SetUsagePlanId(Aws::String&& value) { m_usagePlanId = std::move(value); }
61 
65  inline void SetUsagePlanId(const char* value) { m_usagePlanId.assign(value); }
66 
70  inline GetUsageResult& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;}
71 
75  inline GetUsageResult& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;}
76 
80  inline GetUsageResult& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;}
81 
82 
86  inline const Aws::String& GetStartDate() const{ return m_startDate; }
87 
91  inline void SetStartDate(const Aws::String& value) { m_startDate = value; }
92 
96  inline void SetStartDate(Aws::String&& value) { m_startDate = std::move(value); }
97 
101  inline void SetStartDate(const char* value) { m_startDate.assign(value); }
102 
106  inline GetUsageResult& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
107 
111  inline GetUsageResult& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
112 
116  inline GetUsageResult& WithStartDate(const char* value) { SetStartDate(value); return *this;}
117 
118 
122  inline const Aws::String& GetEndDate() const{ return m_endDate; }
123 
127  inline void SetEndDate(const Aws::String& value) { m_endDate = value; }
128 
132  inline void SetEndDate(Aws::String&& value) { m_endDate = std::move(value); }
133 
137  inline void SetEndDate(const char* value) { m_endDate.assign(value); }
138 
142  inline GetUsageResult& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;}
143 
147  inline GetUsageResult& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;}
148 
152  inline GetUsageResult& WithEndDate(const char* value) { SetEndDate(value); return *this;}
153 
154 
155 
156  inline const Aws::String& GetPosition() const{ return m_position; }
157 
158 
159  inline void SetPosition(const Aws::String& value) { m_position = value; }
160 
161 
162  inline void SetPosition(Aws::String&& value) { m_position = std::move(value); }
163 
164 
165  inline void SetPosition(const char* value) { m_position.assign(value); }
166 
167 
168  inline GetUsageResult& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
169 
170 
171  inline GetUsageResult& WithPosition(Aws::String&& value) { SetPosition(std::move(value)); return *this;}
172 
173 
174  inline GetUsageResult& WithPosition(const char* value) { SetPosition(value); return *this;}
175 
176 
184  inline const Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>& GetItems() const{ return m_items; }
185 
193  inline void SetItems(const Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>& value) { m_items = value; }
194 
202  inline void SetItems(Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>&& value) { m_items = std::move(value); }
203 
211  inline GetUsageResult& WithItems(const Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>& value) { SetItems(value); return *this;}
212 
220  inline GetUsageResult& WithItems(Aws::Map<Aws::String, Aws::Vector<Aws::Vector<long long>>>&& value) { SetItems(std::move(value)); return *this;}
221 
229  inline GetUsageResult& AddItems(const Aws::String& key, const Aws::Vector<Aws::Vector<long long>>& value) { m_items.emplace(key, value); return *this; }
230 
238  inline GetUsageResult& AddItems(Aws::String&& key, const Aws::Vector<Aws::Vector<long long>>& value) { m_items.emplace(std::move(key), value); return *this; }
239 
247  inline GetUsageResult& AddItems(const Aws::String& key, Aws::Vector<Aws::Vector<long long>>&& value) { m_items.emplace(key, std::move(value)); return *this; }
248 
256  inline GetUsageResult& AddItems(Aws::String&& key, Aws::Vector<Aws::Vector<long long>>&& value) { m_items.emplace(std::move(key), std::move(value)); return *this; }
257 
265  inline GetUsageResult& AddItems(const char* key, Aws::Vector<Aws::Vector<long long>>&& value) { m_items.emplace(key, std::move(value)); return *this; }
266 
274  inline GetUsageResult& AddItems(const char* key, const Aws::Vector<Aws::Vector<long long>>& value) { m_items.emplace(key, value); return *this; }
275 
276  private:
277 
278  Aws::String m_usagePlanId;
279 
280  Aws::String m_startDate;
281 
282  Aws::String m_endDate;
283 
284  Aws::String m_position;
285 
287  };
288 
289 } // namespace Model
290 } // namespace APIGateway
291 } // namespace Aws
Aws::APIGateway::Model::GetUsageResult::GetUsageResult
GetUsageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::APIGateway::Model::GetUsageResult::WithStartDate
GetUsageResult & WithStartDate(const char *value)
Definition: GetUsageResult.h:116
Aws::APIGateway::Model::GetUsageResult::AddItems
GetUsageResult & AddItems(Aws::String &&key, Aws::Vector< Aws::Vector< long long >> &&value)
Definition: GetUsageResult.h:256
Aws::APIGateway::Model::GetUsageResult::AddItems
GetUsageResult & AddItems(const char *key, Aws::Vector< Aws::Vector< long long >> &&value)
Definition: GetUsageResult.h:265
Aws::APIGateway::Model::GetUsageResult::AddItems
GetUsageResult & AddItems(const Aws::String &key, Aws::Vector< Aws::Vector< long long >> &&value)
Definition: GetUsageResult.h:247
Aws::APIGateway::Model::GetUsageResult::SetUsagePlanId
void SetUsagePlanId(const Aws::String &value)
Definition: GetUsageResult.h:55
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetUsageResult::SetStartDate
void SetStartDate(const char *value)
Definition: GetUsageResult.h:101
Aws::APIGateway::Model::GetUsageResult::WithUsagePlanId
GetUsageResult & WithUsagePlanId(const char *value)
Definition: GetUsageResult.h:80
Aws::APIGateway::Model::GetUsageResult::SetItems
void SetItems(Aws::Map< Aws::String, Aws::Vector< Aws::Vector< long long >>> &&value)
Definition: GetUsageResult.h:202
Aws::APIGateway::Model::GetUsageResult::SetUsagePlanId
void SetUsagePlanId(Aws::String &&value)
Definition: GetUsageResult.h:60
Aws::APIGateway::Model::GetUsageResult::WithStartDate
GetUsageResult & WithStartDate(Aws::String &&value)
Definition: GetUsageResult.h:111
Aws::APIGateway::Model::GetUsageResult::WithPosition
GetUsageResult & WithPosition(const char *value)
Definition: GetUsageResult.h:174
Aws::APIGateway::Model::GetUsageResult::WithPosition
GetUsageResult & WithPosition(Aws::String &&value)
Definition: GetUsageResult.h:171
Aws::APIGateway::Model::GetUsageResult::WithItems
GetUsageResult & WithItems(Aws::Map< Aws::String, Aws::Vector< Aws::Vector< long long >>> &&value)
Definition: GetUsageResult.h:220
Aws::APIGateway::Model::GetUsageResult::operator=
GetUsageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::GetUsageResult::SetEndDate
void SetEndDate(Aws::String &&value)
Definition: GetUsageResult.h:132
Aws::APIGateway::Model::GetUsageResult::SetEndDate
void SetEndDate(const Aws::String &value)
Definition: GetUsageResult.h:127
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::GetUsageResult::WithUsagePlanId
GetUsageResult & WithUsagePlanId(const Aws::String &value)
Definition: GetUsageResult.h:70
Aws::APIGateway::Model::GetUsageResult::GetEndDate
const Aws::String & GetEndDate() const
Definition: GetUsageResult.h:122
Aws::APIGateway::Model::GetUsageResult::AddItems
GetUsageResult & AddItems(const Aws::String &key, const Aws::Vector< Aws::Vector< long long >> &value)
Definition: GetUsageResult.h:229
AWSVector.h
Aws::APIGateway::Model::GetUsageResult::GetUsageResult
GetUsageResult()
Aws::APIGateway::Model::GetUsageResult::WithItems
GetUsageResult & WithItems(const Aws::Map< Aws::String, Aws::Vector< Aws::Vector< long long >>> &value)
Definition: GetUsageResult.h:211
Aws::APIGateway::Model::GetUsageResult::WithPosition
GetUsageResult & WithPosition(const Aws::String &value)
Definition: GetUsageResult.h:168
Aws::APIGateway::Model::GetUsageResult::WithEndDate
GetUsageResult & WithEndDate(const char *value)
Definition: GetUsageResult.h:152
Aws::APIGateway::Model::GetUsageResult::GetPosition
const Aws::String & GetPosition() const
Definition: GetUsageResult.h:156
Aws::APIGateway::Model::GetUsageResult::SetPosition
void SetPosition(const Aws::String &value)
Definition: GetUsageResult.h:159
Aws::APIGateway::Model::GetUsageResult::WithEndDate
GetUsageResult & WithEndDate(Aws::String &&value)
Definition: GetUsageResult.h:147
Aws::APIGateway::Model::GetUsageResult::SetEndDate
void SetEndDate(const char *value)
Definition: GetUsageResult.h:137
Aws::APIGateway::Model::GetUsageResult::GetItems
const Aws::Map< Aws::String, Aws::Vector< Aws::Vector< long long > > > & GetItems() const
Definition: GetUsageResult.h:184
Aws::APIGateway::Model::GetUsageResult::SetItems
void SetItems(const Aws::Map< Aws::String, Aws::Vector< Aws::Vector< long long >>> &value)
Definition: GetUsageResult.h:193
Aws::APIGateway::Model::GetUsageResult::SetUsagePlanId
void SetUsagePlanId(const char *value)
Definition: GetUsageResult.h:65
Aws::APIGateway::Model::GetUsageResult::SetPosition
void SetPosition(const char *value)
Definition: GetUsageResult.h:165
Aws::APIGateway::Model::GetUsageResult::GetUsagePlanId
const Aws::String & GetUsagePlanId() const
Definition: GetUsageResult.h:50
Aws::APIGateway::Model::GetUsageResult
Definition: GetUsageResult.h:40
AWSString.h
Aws::APIGateway::Model::GetUsageResult::AddItems
GetUsageResult & AddItems(const char *key, const Aws::Vector< Aws::Vector< long long >> &value)
Definition: GetUsageResult.h:274
Aws::APIGateway::Model::GetUsageResult::WithUsagePlanId
GetUsageResult & WithUsagePlanId(Aws::String &&value)
Definition: GetUsageResult.h:75
Aws::APIGateway::Model::GetUsageResult::SetPosition
void SetPosition(Aws::String &&value)
Definition: GetUsageResult.h:162
Aws::APIGateway::Model::GetUsageResult::SetStartDate
void SetStartDate(const Aws::String &value)
Definition: GetUsageResult.h:91
Aws::APIGateway::Model::GetUsageResult::WithEndDate
GetUsageResult & WithEndDate(const Aws::String &value)
Definition: GetUsageResult.h:142
Aws::APIGateway::Model::GetUsageResult::AddItems
GetUsageResult & AddItems(Aws::String &&key, const Aws::Vector< Aws::Vector< long long >> &value)
Definition: GetUsageResult.h:238
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetUsageResult::WithStartDate
GetUsageResult & WithStartDate(const Aws::String &value)
Definition: GetUsageResult.h:106
Aws::APIGateway::Model::GetUsageResult::GetStartDate
const Aws::String & GetStartDate() const
Definition: GetUsageResult.h:86
Aws::APIGateway::Model::GetUsageResult::SetStartDate
void SetStartDate(Aws::String &&value)
Definition: GetUsageResult.h:96
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19