AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
48 inline int GetClientStatus() const{ return m_clientStatus; }
49 inline void SetClientStatus(int value) { 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 inline void SetLog(const Aws::String& value) { m_log = value; }
59 inline void SetLog(Aws::String&& value) { m_log = std::move(value); }
60 inline void SetLog(const char* value) { m_log.assign(value); }
61 inline TestInvokeAuthorizerResult& WithLog(const Aws::String& value) { SetLog(value); return *this;}
62 inline TestInvokeAuthorizerResult& WithLog(Aws::String&& value) { SetLog(std::move(value)); return *this;}
63 inline TestInvokeAuthorizerResult& WithLog(const char* value) { SetLog(value); return *this;}
65
67
70 inline long long GetLatency() const{ return m_latency; }
71 inline void SetLatency(long long value) { m_latency = value; }
72 inline TestInvokeAuthorizerResult& WithLatency(long long value) { SetLatency(value); return *this;}
74
76
79 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
80 inline void SetPrincipalId(const Aws::String& value) { m_principalId = value; }
81 inline void SetPrincipalId(Aws::String&& value) { m_principalId = std::move(value); }
82 inline void SetPrincipalId(const char* value) { m_principalId.assign(value); }
83 inline TestInvokeAuthorizerResult& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
84 inline TestInvokeAuthorizerResult& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
85 inline TestInvokeAuthorizerResult& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
87
89
92 inline const Aws::String& GetPolicy() const{ return m_policy; }
93 inline void SetPolicy(const Aws::String& value) { m_policy = value; }
94 inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
95 inline void SetPolicy(const char* value) { m_policy.assign(value); }
96 inline TestInvokeAuthorizerResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
97 inline TestInvokeAuthorizerResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
98 inline TestInvokeAuthorizerResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
100
102
105 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAuthorization() const{ return m_authorization; }
106 inline void SetAuthorization(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_authorization = value; }
107 inline void SetAuthorization(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_authorization = std::move(value); }
110 inline TestInvokeAuthorizerResult& AddAuthorization(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_authorization.emplace(key, value); return *this; }
111 inline TestInvokeAuthorizerResult& AddAuthorization(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_authorization.emplace(std::move(key), value); return *this; }
112 inline TestInvokeAuthorizerResult& AddAuthorization(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_authorization.emplace(key, std::move(value)); return *this; }
113 inline TestInvokeAuthorizerResult& AddAuthorization(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_authorization.emplace(std::move(key), std::move(value)); return *this; }
114 inline TestInvokeAuthorizerResult& AddAuthorization(const char* key, Aws::Vector<Aws::String>&& value) { m_authorization.emplace(key, std::move(value)); return *this; }
115 inline TestInvokeAuthorizerResult& AddAuthorization(const char* key, const Aws::Vector<Aws::String>& value) { m_authorization.emplace(key, value); return *this; }
117
119
123 inline const Aws::Map<Aws::String, Aws::String>& GetClaims() const{ return m_claims; }
124 inline void SetClaims(const Aws::Map<Aws::String, Aws::String>& value) { m_claims = value; }
125 inline void SetClaims(Aws::Map<Aws::String, Aws::String>&& value) { m_claims = std::move(value); }
127 inline TestInvokeAuthorizerResult& WithClaims(Aws::Map<Aws::String, Aws::String>&& value) { SetClaims(std::move(value)); return *this;}
128 inline TestInvokeAuthorizerResult& AddClaims(const Aws::String& key, const Aws::String& value) { m_claims.emplace(key, value); return *this; }
129 inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, const Aws::String& value) { m_claims.emplace(std::move(key), value); return *this; }
130 inline TestInvokeAuthorizerResult& AddClaims(const Aws::String& key, Aws::String&& value) { m_claims.emplace(key, std::move(value)); return *this; }
131 inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, Aws::String&& value) { m_claims.emplace(std::move(key), std::move(value)); return *this; }
132 inline TestInvokeAuthorizerResult& AddClaims(const char* key, Aws::String&& value) { m_claims.emplace(key, std::move(value)); return *this; }
133 inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, const char* value) { m_claims.emplace(std::move(key), value); return *this; }
134 inline TestInvokeAuthorizerResult& AddClaims(const char* key, const char* value) { m_claims.emplace(key, value); return *this; }
136
138
139 inline const Aws::String& GetRequestId() const{ return m_requestId; }
140 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
141 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
142 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
143 inline TestInvokeAuthorizerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
144 inline TestInvokeAuthorizerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
145 inline TestInvokeAuthorizerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
147 private:
148
149 int m_clientStatus;
150
151 Aws::String m_log;
152
153 long long m_latency;
154
155 Aws::String m_principalId;
156
157 Aws::String m_policy;
158
160
162
163 Aws::String m_requestId;
164 };
165
166} // namespace Model
167} // namespace APIGateway
168} // namespace Aws
AWS_APIGATEWAY_API TestInvokeAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetClaims(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerResult & AddClaims(const char *key, const char *value)
TestInvokeAuthorizerResult & WithClaims(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerResult & AddAuthorization(const Aws::String &key, Aws::Vector< Aws::String > &&value)
TestInvokeAuthorizerResult & AddAuthorization(const char *key, const Aws::Vector< Aws::String > &value)
TestInvokeAuthorizerResult & AddAuthorization(const Aws::String &key, const Aws::Vector< Aws::String > &value)
TestInvokeAuthorizerResult & WithPrincipalId(const char *value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAuthorization() const
TestInvokeAuthorizerResult & WithPolicy(const char *value)
TestInvokeAuthorizerResult & WithPolicy(const Aws::String &value)
TestInvokeAuthorizerResult & WithAuthorization(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, const char *value)
TestInvokeAuthorizerResult & WithLog(const Aws::String &value)
TestInvokeAuthorizerResult & WithPrincipalId(const Aws::String &value)
void SetClaims(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, const Aws::String &value)
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, Aws::String &&value)
TestInvokeAuthorizerResult & AddAuthorization(Aws::String &&key, Aws::Vector< Aws::String > &&value)
TestInvokeAuthorizerResult & WithLatency(long long value)
TestInvokeAuthorizerResult & WithLog(const char *value)
void SetAuthorization(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetAuthorization(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
TestInvokeAuthorizerResult & WithClientStatus(int value)
TestInvokeAuthorizerResult & AddClaims(const Aws::String &key, const Aws::String &value)
TestInvokeAuthorizerResult & AddClaims(const char *key, Aws::String &&value)
TestInvokeAuthorizerResult & WithRequestId(const Aws::String &value)
TestInvokeAuthorizerResult & AddClaims(const Aws::String &key, Aws::String &&value)
TestInvokeAuthorizerResult & WithRequestId(Aws::String &&value)
TestInvokeAuthorizerResult & AddAuthorization(Aws::String &&key, const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetClaims() const
TestInvokeAuthorizerResult & WithRequestId(const char *value)
TestInvokeAuthorizerResult & WithLog(Aws::String &&value)
TestInvokeAuthorizerResult & WithPolicy(Aws::String &&value)
AWS_APIGATEWAY_API TestInvokeAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TestInvokeAuthorizerResult & AddAuthorization(const char *key, Aws::Vector< Aws::String > &&value)
TestInvokeAuthorizerResult & WithClaims(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeAuthorizerResult & WithAuthorization(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
TestInvokeAuthorizerResult & WithPrincipalId(Aws::String &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue