AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TestInvokeAuthorizerRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/HttpContext.h>
11#include <aws/iot/model/MqttContext.h>
12#include <aws/iot/model/TlsContext.h>
13#include <utility>
14
15namespace Aws
16{
17namespace IoT
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IOT_API TestInvokeAuthorizerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "TestInvokeAuthorizer"; }
34
35 AWS_IOT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetAuthorizerName() const { return m_authorizerName; }
43 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
44 template<typename AuthorizerNameT = Aws::String>
45 void SetAuthorizerName(AuthorizerNameT&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::forward<AuthorizerNameT>(value); }
46 template<typename AuthorizerNameT = Aws::String>
47 TestInvokeAuthorizerRequest& WithAuthorizerName(AuthorizerNameT&& value) { SetAuthorizerName(std::forward<AuthorizerNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetToken() const { return m_token; }
55 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
56 template<typename TokenT = Aws::String>
57 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
58 template<typename TokenT = Aws::String>
59 TestInvokeAuthorizerRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
61
63
67 inline const Aws::String& GetTokenSignature() const { return m_tokenSignature; }
68 inline bool TokenSignatureHasBeenSet() const { return m_tokenSignatureHasBeenSet; }
69 template<typename TokenSignatureT = Aws::String>
70 void SetTokenSignature(TokenSignatureT&& value) { m_tokenSignatureHasBeenSet = true; m_tokenSignature = std::forward<TokenSignatureT>(value); }
71 template<typename TokenSignatureT = Aws::String>
72 TestInvokeAuthorizerRequest& WithTokenSignature(TokenSignatureT&& value) { SetTokenSignature(std::forward<TokenSignatureT>(value)); return *this;}
74
76
79 inline const HttpContext& GetHttpContext() const { return m_httpContext; }
80 inline bool HttpContextHasBeenSet() const { return m_httpContextHasBeenSet; }
81 template<typename HttpContextT = HttpContext>
82 void SetHttpContext(HttpContextT&& value) { m_httpContextHasBeenSet = true; m_httpContext = std::forward<HttpContextT>(value); }
83 template<typename HttpContextT = HttpContext>
84 TestInvokeAuthorizerRequest& WithHttpContext(HttpContextT&& value) { SetHttpContext(std::forward<HttpContextT>(value)); return *this;}
86
88
91 inline const MqttContext& GetMqttContext() const { return m_mqttContext; }
92 inline bool MqttContextHasBeenSet() const { return m_mqttContextHasBeenSet; }
93 template<typename MqttContextT = MqttContext>
94 void SetMqttContext(MqttContextT&& value) { m_mqttContextHasBeenSet = true; m_mqttContext = std::forward<MqttContextT>(value); }
95 template<typename MqttContextT = MqttContext>
96 TestInvokeAuthorizerRequest& WithMqttContext(MqttContextT&& value) { SetMqttContext(std::forward<MqttContextT>(value)); return *this;}
98
100
103 inline const TlsContext& GetTlsContext() const { return m_tlsContext; }
104 inline bool TlsContextHasBeenSet() const { return m_tlsContextHasBeenSet; }
105 template<typename TlsContextT = TlsContext>
106 void SetTlsContext(TlsContextT&& value) { m_tlsContextHasBeenSet = true; m_tlsContext = std::forward<TlsContextT>(value); }
107 template<typename TlsContextT = TlsContext>
108 TestInvokeAuthorizerRequest& WithTlsContext(TlsContextT&& value) { SetTlsContext(std::forward<TlsContextT>(value)); return *this;}
110 private:
111
112 Aws::String m_authorizerName;
113 bool m_authorizerNameHasBeenSet = false;
114
115 Aws::String m_token;
116 bool m_tokenHasBeenSet = false;
117
118 Aws::String m_tokenSignature;
119 bool m_tokenSignatureHasBeenSet = false;
120
121 HttpContext m_httpContext;
122 bool m_httpContextHasBeenSet = false;
123
124 MqttContext m_mqttContext;
125 bool m_mqttContextHasBeenSet = false;
126
127 TlsContext m_tlsContext;
128 bool m_tlsContextHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace IoT
133} // 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