AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateAuthorizerRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/iot/model/AuthorizerStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iot/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOT_API CreateAuthorizerRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAuthorizer"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAuthorizerName() const { return m_authorizerName; }
44 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
45 template<typename AuthorizerNameT = Aws::String>
46 void SetAuthorizerName(AuthorizerNameT&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::forward<AuthorizerNameT>(value); }
47 template<typename AuthorizerNameT = Aws::String>
48 CreateAuthorizerRequest& WithAuthorizerName(AuthorizerNameT&& value) { SetAuthorizerName(std::forward<AuthorizerNameT>(value)); return *this;}
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) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = std::forward<AuthorizerFunctionArnT>(value); }
59 template<typename AuthorizerFunctionArnT = Aws::String>
60 CreateAuthorizerRequest& WithAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) { SetAuthorizerFunctionArn(std::forward<AuthorizerFunctionArnT>(value)); return *this;}
62
64
68 inline const Aws::String& GetTokenKeyName() const { return m_tokenKeyName; }
69 inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
70 template<typename TokenKeyNameT = Aws::String>
71 void SetTokenKeyName(TokenKeyNameT&& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = std::forward<TokenKeyNameT>(value); }
72 template<typename TokenKeyNameT = Aws::String>
73 CreateAuthorizerRequest& WithTokenKeyName(TokenKeyNameT&& value) { SetTokenKeyName(std::forward<TokenKeyNameT>(value)); return *this;}
75
77
81 inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const { return m_tokenSigningPublicKeys; }
82 inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
83 template<typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
84 void SetTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = std::forward<TokenSigningPublicKeysT>(value); }
85 template<typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
86 CreateAuthorizerRequest& WithTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) { SetTokenSigningPublicKeys(std::forward<TokenSigningPublicKeysT>(value)); return *this;}
87 template<typename TokenSigningPublicKeysKeyT = Aws::String, typename TokenSigningPublicKeysValueT = Aws::String>
88 CreateAuthorizerRequest& AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT&& key, TokenSigningPublicKeysValueT&& value) {
89 m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::forward<TokenSigningPublicKeysKeyT>(key), std::forward<TokenSigningPublicKeysValueT>(value)); return *this;
90 }
92
94
97 inline AuthorizerStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(AuthorizerStatus value) { m_statusHasBeenSet = true; m_status = value; }
100 inline CreateAuthorizerRequest& WithStatus(AuthorizerStatus value) { SetStatus(value); return *this;}
102
104
111 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template<typename TagsT = Aws::Vector<Tag>>
114 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
115 template<typename TagsT = Aws::Vector<Tag>>
116 CreateAuthorizerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
117 template<typename TagsT = Tag>
118 CreateAuthorizerRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
120
122
126 inline bool GetSigningDisabled() const { return m_signingDisabled; }
127 inline bool SigningDisabledHasBeenSet() const { return m_signingDisabledHasBeenSet; }
128 inline void SetSigningDisabled(bool value) { m_signingDisabledHasBeenSet = true; m_signingDisabled = value; }
129 inline CreateAuthorizerRequest& WithSigningDisabled(bool value) { SetSigningDisabled(value); return *this;}
131
133
141 inline bool GetEnableCachingForHttp() const { return m_enableCachingForHttp; }
142 inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; }
143 inline void SetEnableCachingForHttp(bool value) { m_enableCachingForHttpHasBeenSet = true; m_enableCachingForHttp = value; }
146 private:
147
148 Aws::String m_authorizerName;
149 bool m_authorizerNameHasBeenSet = false;
150
151 Aws::String m_authorizerFunctionArn;
152 bool m_authorizerFunctionArnHasBeenSet = false;
153
154 Aws::String m_tokenKeyName;
155 bool m_tokenKeyNameHasBeenSet = false;
156
157 Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
158 bool m_tokenSigningPublicKeysHasBeenSet = false;
159
161 bool m_statusHasBeenSet = false;
162
163 Aws::Vector<Tag> m_tags;
164 bool m_tagsHasBeenSet = false;
165
166 bool m_signingDisabled{false};
167 bool m_signingDisabledHasBeenSet = false;
168
169 bool m_enableCachingForHttp{false};
170 bool m_enableCachingForHttpHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace IoT
175} // namespace Aws
void SetAuthorizerName(AuthorizerNameT &&value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT &&key, TokenSigningPublicKeysValueT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateAuthorizerRequest & WithAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
void SetAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
CreateAuthorizerRequest & WithStatus(AuthorizerStatus value)
CreateAuthorizerRequest & WithTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
CreateAuthorizerRequest & WithTokenKeyName(TokenKeyNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
CreateAuthorizerRequest & WithEnableCachingForHttp(bool value)
CreateAuthorizerRequest & WithAuthorizerName(AuthorizerNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAuthorizerRequest & WithSigningDisabled(bool value)
AWS_IOT_API CreateAuthorizerRequest()=default
CreateAuthorizerRequest & AddTags(TagsT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
const Aws::String & GetAuthorizerFunctionArn() const
CreateAuthorizerRequest & WithTags(TagsT &&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