AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
ImportApiKeysResult.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace APIGateway {
24namespace Model {
32 public:
33 AWS_APIGATEWAY_API ImportApiKeysResult() = default;
36
38
41 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
42 template <typename IdsT = Aws::Vector<Aws::String>>
43 void SetIds(IdsT&& value) {
44 m_idsHasBeenSet = true;
45 m_ids = std::forward<IdsT>(value);
46 }
47 template <typename IdsT = Aws::Vector<Aws::String>>
49 SetIds(std::forward<IdsT>(value));
50 return *this;
51 }
52 template <typename IdsT = Aws::String>
53 ImportApiKeysResult& AddIds(IdsT&& value) {
54 m_idsHasBeenSet = true;
55 m_ids.emplace_back(std::forward<IdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
65 template <typename WarningsT = Aws::Vector<Aws::String>>
66 void SetWarnings(WarningsT&& value) {
67 m_warningsHasBeenSet = true;
68 m_warnings = std::forward<WarningsT>(value);
69 }
70 template <typename WarningsT = Aws::Vector<Aws::String>>
71 ImportApiKeysResult& WithWarnings(WarningsT&& value) {
72 SetWarnings(std::forward<WarningsT>(value));
73 return *this;
74 }
75 template <typename WarningsT = Aws::String>
76 ImportApiKeysResult& AddWarnings(WarningsT&& value) {
77 m_warningsHasBeenSet = true;
78 m_warnings.emplace_back(std::forward<WarningsT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
92 ImportApiKeysResult& WithRequestId(RequestIdT&& value) {
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
101
102 Aws::Vector<Aws::String> m_warnings;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_idsHasBeenSet = false;
107 bool m_warningsHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace APIGateway
113} // namespace Aws
const Aws::Vector< Aws::String > & GetWarnings() const
AWS_APIGATEWAY_API ImportApiKeysResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAY_API ImportApiKeysResult()=default
ImportApiKeysResult & AddIds(IdsT &&value)
AWS_APIGATEWAY_API ImportApiKeysResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImportApiKeysResult & WithRequestId(RequestIdT &&value)
ImportApiKeysResult & WithWarnings(WarningsT &&value)
const Aws::Vector< Aws::String > & GetIds() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ImportApiKeysResult & AddWarnings(WarningsT &&value)
ImportApiKeysResult & WithIds(IdsT &&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