AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetApiKeysResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/ApiKey.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{
36 {
37 public:
38 AWS_APIGATEWAY_API GetApiKeysResult() = default;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
49 template<typename WarningsT = Aws::Vector<Aws::String>>
50 void SetWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings = std::forward<WarningsT>(value); }
51 template<typename WarningsT = Aws::Vector<Aws::String>>
52 GetApiKeysResult& WithWarnings(WarningsT&& value) { SetWarnings(std::forward<WarningsT>(value)); return *this;}
53 template<typename WarningsT = Aws::String>
54 GetApiKeysResult& AddWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings.emplace_back(std::forward<WarningsT>(value)); return *this; }
56
58
59 inline const Aws::String& GetPosition() const { return m_position; }
60 template<typename PositionT = Aws::String>
61 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
62 template<typename PositionT = Aws::String>
63 GetApiKeysResult& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
65
67
70 inline const Aws::Vector<ApiKey>& GetItems() const { return m_items; }
71 template<typename ItemsT = Aws::Vector<ApiKey>>
72 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
73 template<typename ItemsT = Aws::Vector<ApiKey>>
74 GetApiKeysResult& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
75 template<typename ItemsT = ApiKey>
76 GetApiKeysResult& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 GetApiKeysResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
89 Aws::Vector<Aws::String> m_warnings;
90 bool m_warningsHasBeenSet = false;
91
92 Aws::String m_position;
93 bool m_positionHasBeenSet = false;
94
95 Aws::Vector<ApiKey> m_items;
96 bool m_itemsHasBeenSet = false;
97
98 Aws::String m_requestId;
99 bool m_requestIdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace APIGateway
104} // namespace Aws
const Aws::Vector< Aws::String > & GetWarnings() const
const Aws::Vector< ApiKey > & GetItems() const
AWS_APIGATEWAY_API GetApiKeysResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApiKeysResult & WithRequestId(RequestIdT &&value)
GetApiKeysResult & WithItems(ItemsT &&value)
GetApiKeysResult & AddItems(ItemsT &&value)
AWS_APIGATEWAY_API GetApiKeysResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAY_API GetApiKeysResult()=default
const Aws::String & GetPosition() const
GetApiKeysResult & WithWarnings(WarningsT &&value)
const Aws::String & GetRequestId() const
GetApiKeysResult & WithPosition(PositionT &&value)
GetApiKeysResult & AddWarnings(WarningsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue