AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
TestInvokeAuthorizerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/HttpContext.h>
11#include <aws/iot/model/MqttContext.h>
12#include <aws/iot/model/TlsContext.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API TestInvokeAuthorizerRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "TestInvokeAuthorizer"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetAuthorizerName() const { return m_authorizerName; }
39 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
40 template <typename AuthorizerNameT = Aws::String>
41 void SetAuthorizerName(AuthorizerNameT&& value) {
42 m_authorizerNameHasBeenSet = true;
43 m_authorizerName = std::forward<AuthorizerNameT>(value);
44 }
45 template <typename AuthorizerNameT = Aws::String>
47 SetAuthorizerName(std::forward<AuthorizerNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetToken() const { return m_token; }
57 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
58 template <typename TokenT = Aws::String>
59 void SetToken(TokenT&& value) {
60 m_tokenHasBeenSet = true;
61 m_token = std::forward<TokenT>(value);
62 }
63 template <typename TokenT = Aws::String>
65 SetToken(std::forward<TokenT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetTokenSignature() const { return m_tokenSignature; }
76 inline bool TokenSignatureHasBeenSet() const { return m_tokenSignatureHasBeenSet; }
77 template <typename TokenSignatureT = Aws::String>
78 void SetTokenSignature(TokenSignatureT&& value) {
79 m_tokenSignatureHasBeenSet = true;
80 m_tokenSignature = std::forward<TokenSignatureT>(value);
81 }
82 template <typename TokenSignatureT = Aws::String>
84 SetTokenSignature(std::forward<TokenSignatureT>(value));
85 return *this;
86 }
88
90
93 inline const HttpContext& GetHttpContext() const { return m_httpContext; }
94 inline bool HttpContextHasBeenSet() const { return m_httpContextHasBeenSet; }
95 template <typename HttpContextT = HttpContext>
96 void SetHttpContext(HttpContextT&& value) {
97 m_httpContextHasBeenSet = true;
98 m_httpContext = std::forward<HttpContextT>(value);
99 }
100 template <typename HttpContextT = HttpContext>
102 SetHttpContext(std::forward<HttpContextT>(value));
103 return *this;
104 }
106
108
111 inline const MqttContext& GetMqttContext() const { return m_mqttContext; }
112 inline bool MqttContextHasBeenSet() const { return m_mqttContextHasBeenSet; }
113 template <typename MqttContextT = MqttContext>
114 void SetMqttContext(MqttContextT&& value) {
115 m_mqttContextHasBeenSet = true;
116 m_mqttContext = std::forward<MqttContextT>(value);
117 }
118 template <typename MqttContextT = MqttContext>
120 SetMqttContext(std::forward<MqttContextT>(value));
121 return *this;
122 }
124
126
129 inline const TlsContext& GetTlsContext() const { return m_tlsContext; }
130 inline bool TlsContextHasBeenSet() const { return m_tlsContextHasBeenSet; }
131 template <typename TlsContextT = TlsContext>
132 void SetTlsContext(TlsContextT&& value) {
133 m_tlsContextHasBeenSet = true;
134 m_tlsContext = std::forward<TlsContextT>(value);
135 }
136 template <typename TlsContextT = TlsContext>
138 SetTlsContext(std::forward<TlsContextT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_authorizerName;
144 bool m_authorizerNameHasBeenSet = false;
145
146 Aws::String m_token;
147 bool m_tokenHasBeenSet = false;
148
149 Aws::String m_tokenSignature;
150 bool m_tokenSignatureHasBeenSet = false;
151
152 HttpContext m_httpContext;
153 bool m_httpContextHasBeenSet = false;
154
155 MqttContext m_mqttContext;
156 bool m_mqttContextHasBeenSet = false;
157
158 TlsContext m_tlsContext;
159 bool m_tlsContextHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace IoT
164} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
TestInvokeAuthorizerRequest & WithAuthorizerName(AuthorizerNameT &&value)
TestInvokeAuthorizerRequest & WithToken(TokenT &&value)
TestInvokeAuthorizerRequest & WithTlsContext(TlsContextT &&value)
TestInvokeAuthorizerRequest & WithTokenSignature(TokenSignatureT &&value)
TestInvokeAuthorizerRequest & WithHttpContext(HttpContextT &&value)
TestInvokeAuthorizerRequest & WithMqttContext(MqttContextT &&value)
AWS_IOT_API TestInvokeAuthorizerRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String