AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
GetApiKeysResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/ApiKey.h>
9#include <aws/core/http/HttpResponse.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 {
33 public:
34 AWS_APIGATEWAY_API GetApiKeysResult() = default;
37
39
43 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
44 template <typename WarningsT = Aws::Vector<Aws::String>>
45 void SetWarnings(WarningsT&& value) {
46 m_warningsHasBeenSet = true;
47 m_warnings = std::forward<WarningsT>(value);
48 }
49 template <typename WarningsT = Aws::Vector<Aws::String>>
50 GetApiKeysResult& WithWarnings(WarningsT&& value) {
51 SetWarnings(std::forward<WarningsT>(value));
52 return *this;
53 }
54 template <typename WarningsT = Aws::String>
55 GetApiKeysResult& AddWarnings(WarningsT&& value) {
56 m_warningsHasBeenSet = true;
57 m_warnings.emplace_back(std::forward<WarningsT>(value));
58 return *this;
59 }
61
63
64 inline const Aws::String& GetPosition() const { return m_position; }
65 template <typename PositionT = Aws::String>
66 void SetPosition(PositionT&& value) {
67 m_positionHasBeenSet = true;
68 m_position = std::forward<PositionT>(value);
69 }
70 template <typename PositionT = Aws::String>
71 GetApiKeysResult& WithPosition(PositionT&& value) {
72 SetPosition(std::forward<PositionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<ApiKey>& GetItems() const { return m_items; }
82 template <typename ItemsT = Aws::Vector<ApiKey>>
83 void SetItems(ItemsT&& value) {
84 m_itemsHasBeenSet = true;
85 m_items = std::forward<ItemsT>(value);
86 }
87 template <typename ItemsT = Aws::Vector<ApiKey>>
88 GetApiKeysResult& WithItems(ItemsT&& value) {
89 SetItems(std::forward<ItemsT>(value));
90 return *this;
91 }
92 template <typename ItemsT = ApiKey>
93 GetApiKeysResult& AddItems(ItemsT&& value) {
94 m_itemsHasBeenSet = true;
95 m_items.emplace_back(std::forward<ItemsT>(value));
96 return *this;
97 }
99
101
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 template <typename RequestIdT = Aws::String>
104 void SetRequestId(RequestIdT&& value) {
105 m_requestIdHasBeenSet = true;
106 m_requestId = std::forward<RequestIdT>(value);
107 }
108 template <typename RequestIdT = Aws::String>
109 GetApiKeysResult& WithRequestId(RequestIdT&& value) {
110 SetRequestId(std::forward<RequestIdT>(value));
111 return *this;
112 }
114 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
115
116 private:
117 Aws::Vector<Aws::String> m_warnings;
118
119 Aws::String m_position;
120
121 Aws::Vector<ApiKey> m_items;
122
123 Aws::String m_requestId;
124 Aws::Http::HttpResponseCode m_HttpResponseCode;
125 bool m_warningsHasBeenSet = false;
126 bool m_positionHasBeenSet = false;
127 bool m_itemsHasBeenSet = false;
128 bool m_requestIdHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace APIGateway
133} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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