AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
UpdateAuthorizerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/AuthorizerStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoT {
17namespace Model {
18
22 public:
23 AWS_IOT_API UpdateAuthorizerRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateAuthorizer"; }
30
31 AWS_IOT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAuthorizerName() const { return m_authorizerName; }
38 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
39 template <typename AuthorizerNameT = Aws::String>
40 void SetAuthorizerName(AuthorizerNameT&& value) {
41 m_authorizerNameHasBeenSet = true;
42 m_authorizerName = std::forward<AuthorizerNameT>(value);
43 }
44 template <typename AuthorizerNameT = Aws::String>
45 UpdateAuthorizerRequest& WithAuthorizerName(AuthorizerNameT&& value) {
46 SetAuthorizerName(std::forward<AuthorizerNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetAuthorizerFunctionArn() const { return m_authorizerFunctionArn; }
56 inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; }
57 template <typename AuthorizerFunctionArnT = Aws::String>
58 void SetAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) {
59 m_authorizerFunctionArnHasBeenSet = true;
60 m_authorizerFunctionArn = std::forward<AuthorizerFunctionArnT>(value);
61 }
62 template <typename AuthorizerFunctionArnT = Aws::String>
63 UpdateAuthorizerRequest& WithAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) {
64 SetAuthorizerFunctionArn(std::forward<AuthorizerFunctionArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetTokenKeyName() const { return m_tokenKeyName; }
74 inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
75 template <typename TokenKeyNameT = Aws::String>
76 void SetTokenKeyName(TokenKeyNameT&& value) {
77 m_tokenKeyNameHasBeenSet = true;
78 m_tokenKeyName = std::forward<TokenKeyNameT>(value);
79 }
80 template <typename TokenKeyNameT = Aws::String>
81 UpdateAuthorizerRequest& WithTokenKeyName(TokenKeyNameT&& value) {
82 SetTokenKeyName(std::forward<TokenKeyNameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const { return m_tokenSigningPublicKeys; }
92 inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
93 template <typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
94 void SetTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) {
95 m_tokenSigningPublicKeysHasBeenSet = true;
96 m_tokenSigningPublicKeys = std::forward<TokenSigningPublicKeysT>(value);
97 }
98 template <typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
99 UpdateAuthorizerRequest& WithTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) {
100 SetTokenSigningPublicKeys(std::forward<TokenSigningPublicKeysT>(value));
101 return *this;
102 }
103 template <typename TokenSigningPublicKeysKeyT = Aws::String, typename TokenSigningPublicKeysValueT = Aws::String>
104 UpdateAuthorizerRequest& AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT&& key, TokenSigningPublicKeysValueT&& value) {
105 m_tokenSigningPublicKeysHasBeenSet = true;
106 m_tokenSigningPublicKeys.emplace(std::forward<TokenSigningPublicKeysKeyT>(key), std::forward<TokenSigningPublicKeysValueT>(value));
107 return *this;
108 }
110
112
115 inline AuthorizerStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(AuthorizerStatus value) {
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
133 inline bool GetEnableCachingForHttp() const { return m_enableCachingForHttp; }
134 inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; }
135 inline void SetEnableCachingForHttp(bool value) {
136 m_enableCachingForHttpHasBeenSet = true;
137 m_enableCachingForHttp = value;
138 }
141 return *this;
142 }
144 private:
145 Aws::String m_authorizerName;
146 bool m_authorizerNameHasBeenSet = false;
147
148 Aws::String m_authorizerFunctionArn;
149 bool m_authorizerFunctionArnHasBeenSet = false;
150
151 Aws::String m_tokenKeyName;
152 bool m_tokenKeyNameHasBeenSet = false;
153
154 Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
155 bool m_tokenSigningPublicKeysHasBeenSet = false;
156
158 bool m_statusHasBeenSet = false;
159
160 bool m_enableCachingForHttp{false};
161 bool m_enableCachingForHttpHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace IoT
166} // namespace Aws
const Aws::String & GetAuthorizerFunctionArn() const
UpdateAuthorizerRequest & WithEnableCachingForHttp(bool value)
AWS_IOT_API Aws::String SerializePayload() const override
UpdateAuthorizerRequest & WithAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
void SetAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
void SetTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
UpdateAuthorizerRequest & AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT &&key, TokenSigningPublicKeysValueT &&value)
AWS_IOT_API UpdateAuthorizerRequest()=default
UpdateAuthorizerRequest & WithAuthorizerName(AuthorizerNameT &&value)
UpdateAuthorizerRequest & WithTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
UpdateAuthorizerRequest & WithStatus(AuthorizerStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
void SetAuthorizerName(AuthorizerNameT &&value)
UpdateAuthorizerRequest & WithTokenKeyName(TokenKeyNameT &&value)
virtual const char * GetServiceRequestName() const override
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