AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
TestInvokeAuthorizerResult.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/AWSMap.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 TestInvokeAuthorizerResult() = default;
37
39
43 inline int GetClientStatus() const { return m_clientStatus; }
44 inline void SetClientStatus(int value) {
45 m_clientStatusHasBeenSet = true;
46 m_clientStatus = value;
47 }
49 SetClientStatus(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLog() const { return m_log; }
59 template <typename LogT = Aws::String>
60 void SetLog(LogT&& value) {
61 m_logHasBeenSet = true;
62 m_log = std::forward<LogT>(value);
63 }
64 template <typename LogT = Aws::String>
66 SetLog(std::forward<LogT>(value));
67 return *this;
68 }
70
72
75 inline long long GetLatency() const { return m_latency; }
76 inline void SetLatency(long long value) {
77 m_latencyHasBeenSet = true;
78 m_latency = value;
79 }
80 inline TestInvokeAuthorizerResult& WithLatency(long long value) {
81 SetLatency(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
91 template <typename PrincipalIdT = Aws::String>
92 void SetPrincipalId(PrincipalIdT&& value) {
93 m_principalIdHasBeenSet = true;
94 m_principalId = std::forward<PrincipalIdT>(value);
95 }
96 template <typename PrincipalIdT = Aws::String>
98 SetPrincipalId(std::forward<PrincipalIdT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetPolicy() const { return m_policy; }
108 template <typename PolicyT = Aws::String>
109 void SetPolicy(PolicyT&& value) {
110 m_policyHasBeenSet = true;
111 m_policy = std::forward<PolicyT>(value);
112 }
113 template <typename PolicyT = Aws::String>
115 SetPolicy(std::forward<PolicyT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAuthorization() const { return m_authorization; }
125 template <typename AuthorizationT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
126 void SetAuthorization(AuthorizationT&& value) {
127 m_authorizationHasBeenSet = true;
128 m_authorization = std::forward<AuthorizationT>(value);
129 }
130 template <typename AuthorizationT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
132 SetAuthorization(std::forward<AuthorizationT>(value));
133 return *this;
134 }
135 template <typename AuthorizationKeyT = Aws::String, typename AuthorizationValueT = Aws::Vector<Aws::String>>
136 TestInvokeAuthorizerResult& AddAuthorization(AuthorizationKeyT&& key, AuthorizationValueT&& value) {
137 m_authorizationHasBeenSet = true;
138 m_authorization.emplace(std::forward<AuthorizationKeyT>(key), std::forward<AuthorizationValueT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::Map<Aws::String, Aws::String>& GetClaims() const { return m_claims; }
149 template <typename ClaimsT = Aws::Map<Aws::String, Aws::String>>
150 void SetClaims(ClaimsT&& value) {
151 m_claimsHasBeenSet = true;
152 m_claims = std::forward<ClaimsT>(value);
153 }
154 template <typename ClaimsT = Aws::Map<Aws::String, Aws::String>>
156 SetClaims(std::forward<ClaimsT>(value));
157 return *this;
158 }
159 template <typename ClaimsKeyT = Aws::String, typename ClaimsValueT = Aws::String>
160 TestInvokeAuthorizerResult& AddClaims(ClaimsKeyT&& key, ClaimsValueT&& value) {
161 m_claimsHasBeenSet = true;
162 m_claims.emplace(std::forward<ClaimsKeyT>(key), std::forward<ClaimsValueT>(value));
163 return *this;
164 }
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template <typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) {
172 m_requestIdHasBeenSet = true;
173 m_requestId = std::forward<RequestIdT>(value);
174 }
175 template <typename RequestIdT = Aws::String>
177 SetRequestId(std::forward<RequestIdT>(value));
178 return *this;
179 }
181 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
182
183 private:
184 int m_clientStatus{0};
185
186 Aws::String m_log;
187
188 long long m_latency{0};
189
190 Aws::String m_principalId;
191
192 Aws::String m_policy;
193
195
197
198 Aws::String m_requestId;
199 Aws::Http::HttpResponseCode m_HttpResponseCode;
200 bool m_clientStatusHasBeenSet = false;
201 bool m_logHasBeenSet = false;
202 bool m_latencyHasBeenSet = false;
203 bool m_principalIdHasBeenSet = false;
204 bool m_policyHasBeenSet = false;
205 bool m_authorizationHasBeenSet = false;
206 bool m_claimsHasBeenSet = false;
207 bool m_requestIdHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace APIGateway
212} // namespace Aws
AWS_APIGATEWAY_API TestInvokeAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TestInvokeAuthorizerResult & AddClaims(ClaimsKeyT &&key, ClaimsValueT &&value)
TestInvokeAuthorizerResult & WithAuthorization(AuthorizationT &&value)
TestInvokeAuthorizerResult & AddAuthorization(AuthorizationKeyT &&key, AuthorizationValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAuthorization() const
TestInvokeAuthorizerResult & WithPrincipalId(PrincipalIdT &&value)
TestInvokeAuthorizerResult & WithRequestId(RequestIdT &&value)
TestInvokeAuthorizerResult & WithLatency(long long value)
TestInvokeAuthorizerResult & WithClientStatus(int value)
TestInvokeAuthorizerResult & WithLog(LogT &&value)
AWS_APIGATEWAY_API TestInvokeAuthorizerResult()=default
const Aws::Map< Aws::String, Aws::String > & GetClaims() const
TestInvokeAuthorizerResult & WithPolicy(PolicyT &&value)
AWS_APIGATEWAY_API TestInvokeAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TestInvokeAuthorizerResult & WithClaims(ClaimsT &&value)
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