AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAuthorizerName(const Aws::String& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = value; }
45 inline void SetAuthorizerName(Aws::String&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::move(value); }
46 inline void SetAuthorizerName(const char* value) { m_authorizerNameHasBeenSet = true; m_authorizerName.assign(value); }
47 inline TestInvokeAuthorizerRequest& WithAuthorizerName(const Aws::String& value) { SetAuthorizerName(value); return *this;}
48 inline TestInvokeAuthorizerRequest& WithAuthorizerName(Aws::String&& value) { SetAuthorizerName(std::move(value)); return *this;}
49 inline TestInvokeAuthorizerRequest& WithAuthorizerName(const char* value) { SetAuthorizerName(value); return *this;}
51
53
56 inline const Aws::String& GetToken() const{ return m_token; }
57 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
58 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
59 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
60 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
61 inline TestInvokeAuthorizerRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
62 inline TestInvokeAuthorizerRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
63 inline TestInvokeAuthorizerRequest& WithToken(const char* value) { SetToken(value); return *this;}
65
67
71 inline const Aws::String& GetTokenSignature() const{ return m_tokenSignature; }
72 inline bool TokenSignatureHasBeenSet() const { return m_tokenSignatureHasBeenSet; }
73 inline void SetTokenSignature(const Aws::String& value) { m_tokenSignatureHasBeenSet = true; m_tokenSignature = value; }
74 inline void SetTokenSignature(Aws::String&& value) { m_tokenSignatureHasBeenSet = true; m_tokenSignature = std::move(value); }
75 inline void SetTokenSignature(const char* value) { m_tokenSignatureHasBeenSet = true; m_tokenSignature.assign(value); }
76 inline TestInvokeAuthorizerRequest& WithTokenSignature(const Aws::String& value) { SetTokenSignature(value); return *this;}
77 inline TestInvokeAuthorizerRequest& WithTokenSignature(Aws::String&& value) { SetTokenSignature(std::move(value)); return *this;}
78 inline TestInvokeAuthorizerRequest& WithTokenSignature(const char* value) { SetTokenSignature(value); return *this;}
80
82
85 inline const HttpContext& GetHttpContext() const{ return m_httpContext; }
86 inline bool HttpContextHasBeenSet() const { return m_httpContextHasBeenSet; }
87 inline void SetHttpContext(const HttpContext& value) { m_httpContextHasBeenSet = true; m_httpContext = value; }
88 inline void SetHttpContext(HttpContext&& value) { m_httpContextHasBeenSet = true; m_httpContext = std::move(value); }
89 inline TestInvokeAuthorizerRequest& WithHttpContext(const HttpContext& value) { SetHttpContext(value); return *this;}
90 inline TestInvokeAuthorizerRequest& WithHttpContext(HttpContext&& value) { SetHttpContext(std::move(value)); return *this;}
92
94
97 inline const MqttContext& GetMqttContext() const{ return m_mqttContext; }
98 inline bool MqttContextHasBeenSet() const { return m_mqttContextHasBeenSet; }
99 inline void SetMqttContext(const MqttContext& value) { m_mqttContextHasBeenSet = true; m_mqttContext = value; }
100 inline void SetMqttContext(MqttContext&& value) { m_mqttContextHasBeenSet = true; m_mqttContext = std::move(value); }
101 inline TestInvokeAuthorizerRequest& WithMqttContext(const MqttContext& value) { SetMqttContext(value); return *this;}
102 inline TestInvokeAuthorizerRequest& WithMqttContext(MqttContext&& value) { SetMqttContext(std::move(value)); return *this;}
104
106
109 inline const TlsContext& GetTlsContext() const{ return m_tlsContext; }
110 inline bool TlsContextHasBeenSet() const { return m_tlsContextHasBeenSet; }
111 inline void SetTlsContext(const TlsContext& value) { m_tlsContextHasBeenSet = true; m_tlsContext = value; }
112 inline void SetTlsContext(TlsContext&& value) { m_tlsContextHasBeenSet = true; m_tlsContext = std::move(value); }
113 inline TestInvokeAuthorizerRequest& WithTlsContext(const TlsContext& value) { SetTlsContext(value); return *this;}
114 inline TestInvokeAuthorizerRequest& WithTlsContext(TlsContext&& value) { SetTlsContext(std::move(value)); return *this;}
116 private:
117
118 Aws::String m_authorizerName;
119 bool m_authorizerNameHasBeenSet = false;
120
121 Aws::String m_token;
122 bool m_tokenHasBeenSet = false;
123
124 Aws::String m_tokenSignature;
125 bool m_tokenSignatureHasBeenSet = false;
126
127 HttpContext m_httpContext;
128 bool m_httpContextHasBeenSet = false;
129
130 MqttContext m_mqttContext;
131 bool m_mqttContextHasBeenSet = false;
132
133 TlsContext m_tlsContext;
134 bool m_tlsContextHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace IoT
139} // namespace Aws
TestInvokeAuthorizerRequest & WithMqttContext(const MqttContext &value)
TestInvokeAuthorizerRequest & WithAuthorizerName(const Aws::String &value)
TestInvokeAuthorizerRequest & WithTokenSignature(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
TestInvokeAuthorizerRequest & WithHttpContext(HttpContext &&value)
TestInvokeAuthorizerRequest & WithTokenSignature(const Aws::String &value)
TestInvokeAuthorizerRequest & WithToken(const Aws::String &value)
TestInvokeAuthorizerRequest & WithAuthorizerName(Aws::String &&value)
TestInvokeAuthorizerRequest & WithAuthorizerName(const char *value)
TestInvokeAuthorizerRequest & WithToken(const char *value)
TestInvokeAuthorizerRequest & WithTokenSignature(Aws::String &&value)
TestInvokeAuthorizerRequest & WithToken(Aws::String &&value)
TestInvokeAuthorizerRequest & WithHttpContext(const HttpContext &value)
virtual const char * GetServiceRequestName() const override
TestInvokeAuthorizerRequest & WithTlsContext(const TlsContext &value)
TestInvokeAuthorizerRequest & WithTlsContext(TlsContext &&value)
TestInvokeAuthorizerRequest & WithMqttContext(MqttContext &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String