AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TestInvokeAuthorizerResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 TestInvokeAuthorizerResult() = default;
41
42
44
48 inline int GetClientStatus() const { return m_clientStatus; }
49 inline void SetClientStatus(int value) { m_clientStatusHasBeenSet = true; m_clientStatus = value; }
50 inline TestInvokeAuthorizerResult& WithClientStatus(int value) { SetClientStatus(value); return *this;}
52
54
57 inline const Aws::String& GetLog() const { return m_log; }
58 template<typename LogT = Aws::String>
59 void SetLog(LogT&& value) { m_logHasBeenSet = true; m_log = std::forward<LogT>(value); }
60 template<typename LogT = Aws::String>
61 TestInvokeAuthorizerResult& WithLog(LogT&& value) { SetLog(std::forward<LogT>(value)); return *this;}
63
65
68 inline long long GetLatency() const { return m_latency; }
69 inline void SetLatency(long long value) { m_latencyHasBeenSet = true; m_latency = value; }
70 inline TestInvokeAuthorizerResult& WithLatency(long long value) { SetLatency(value); return *this;}
72
74
77 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
78 template<typename PrincipalIdT = Aws::String>
79 void SetPrincipalId(PrincipalIdT&& value) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
80 template<typename PrincipalIdT = Aws::String>
81 TestInvokeAuthorizerResult& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
83
85
88 inline const Aws::String& GetPolicy() const { return m_policy; }
89 template<typename PolicyT = Aws::String>
90 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
91 template<typename PolicyT = Aws::String>
92 TestInvokeAuthorizerResult& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
94
96
99 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAuthorization() const { return m_authorization; }
100 template<typename AuthorizationT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
101 void SetAuthorization(AuthorizationT&& value) { m_authorizationHasBeenSet = true; m_authorization = std::forward<AuthorizationT>(value); }
102 template<typename AuthorizationT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
103 TestInvokeAuthorizerResult& WithAuthorization(AuthorizationT&& value) { SetAuthorization(std::forward<AuthorizationT>(value)); return *this;}
104 template<typename AuthorizationKeyT = Aws::String, typename AuthorizationValueT = Aws::Vector<Aws::String>>
105 TestInvokeAuthorizerResult& AddAuthorization(AuthorizationKeyT&& key, AuthorizationValueT&& value) {
106 m_authorizationHasBeenSet = true; m_authorization.emplace(std::forward<AuthorizationKeyT>(key), std::forward<AuthorizationValueT>(value)); return *this;
107 }
109
111
115 inline const Aws::Map<Aws::String, Aws::String>& GetClaims() const { return m_claims; }
116 template<typename ClaimsT = Aws::Map<Aws::String, Aws::String>>
117 void SetClaims(ClaimsT&& value) { m_claimsHasBeenSet = true; m_claims = std::forward<ClaimsT>(value); }
118 template<typename ClaimsT = Aws::Map<Aws::String, Aws::String>>
119 TestInvokeAuthorizerResult& WithClaims(ClaimsT&& value) { SetClaims(std::forward<ClaimsT>(value)); return *this;}
120 template<typename ClaimsKeyT = Aws::String, typename ClaimsValueT = Aws::String>
121 TestInvokeAuthorizerResult& AddClaims(ClaimsKeyT&& key, ClaimsValueT&& value) {
122 m_claimsHasBeenSet = true; m_claims.emplace(std::forward<ClaimsKeyT>(key), std::forward<ClaimsValueT>(value)); return *this;
123 }
125
127
128 inline const Aws::String& GetRequestId() const { return m_requestId; }
129 template<typename RequestIdT = Aws::String>
130 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
131 template<typename RequestIdT = Aws::String>
132 TestInvokeAuthorizerResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
134 private:
135
136 int m_clientStatus{0};
137 bool m_clientStatusHasBeenSet = false;
138
139 Aws::String m_log;
140 bool m_logHasBeenSet = false;
141
142 long long m_latency{0};
143 bool m_latencyHasBeenSet = false;
144
145 Aws::String m_principalId;
146 bool m_principalIdHasBeenSet = false;
147
148 Aws::String m_policy;
149 bool m_policyHasBeenSet = false;
150
152 bool m_authorizationHasBeenSet = false;
153
155 bool m_claimsHasBeenSet = false;
156
157 Aws::String m_requestId;
158 bool m_requestIdHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace APIGateway
163} // 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