AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuthorizerDescription.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/iot/model/AuthorizerStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOT_API AuthorizerDescription() = default;
41
42
44
47 inline const Aws::String& GetAuthorizerName() const { return m_authorizerName; }
48 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
49 template<typename AuthorizerNameT = Aws::String>
50 void SetAuthorizerName(AuthorizerNameT&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::forward<AuthorizerNameT>(value); }
51 template<typename AuthorizerNameT = Aws::String>
52 AuthorizerDescription& WithAuthorizerName(AuthorizerNameT&& value) { SetAuthorizerName(std::forward<AuthorizerNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetAuthorizerArn() const { return m_authorizerArn; }
60 inline bool AuthorizerArnHasBeenSet() const { return m_authorizerArnHasBeenSet; }
61 template<typename AuthorizerArnT = Aws::String>
62 void SetAuthorizerArn(AuthorizerArnT&& value) { m_authorizerArnHasBeenSet = true; m_authorizerArn = std::forward<AuthorizerArnT>(value); }
63 template<typename AuthorizerArnT = Aws::String>
64 AuthorizerDescription& WithAuthorizerArn(AuthorizerArnT&& value) { SetAuthorizerArn(std::forward<AuthorizerArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetAuthorizerFunctionArn() const { return m_authorizerFunctionArn; }
72 inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; }
73 template<typename AuthorizerFunctionArnT = Aws::String>
74 void SetAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = std::forward<AuthorizerFunctionArnT>(value); }
75 template<typename AuthorizerFunctionArnT = Aws::String>
76 AuthorizerDescription& WithAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) { SetAuthorizerFunctionArn(std::forward<AuthorizerFunctionArnT>(value)); return *this;}
78
80
83 inline const Aws::String& GetTokenKeyName() const { return m_tokenKeyName; }
84 inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
85 template<typename TokenKeyNameT = Aws::String>
86 void SetTokenKeyName(TokenKeyNameT&& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = std::forward<TokenKeyNameT>(value); }
87 template<typename TokenKeyNameT = Aws::String>
88 AuthorizerDescription& WithTokenKeyName(TokenKeyNameT&& value) { SetTokenKeyName(std::forward<TokenKeyNameT>(value)); return *this;}
90
92
96 inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const { return m_tokenSigningPublicKeys; }
97 inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
98 template<typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
99 void SetTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = std::forward<TokenSigningPublicKeysT>(value); }
100 template<typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
101 AuthorizerDescription& WithTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) { SetTokenSigningPublicKeys(std::forward<TokenSigningPublicKeysT>(value)); return *this;}
102 template<typename TokenSigningPublicKeysKeyT = Aws::String, typename TokenSigningPublicKeysValueT = Aws::String>
103 AuthorizerDescription& AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT&& key, TokenSigningPublicKeysValueT&& value) {
104 m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::forward<TokenSigningPublicKeysKeyT>(key), std::forward<TokenSigningPublicKeysValueT>(value)); return *this;
105 }
107
109
112 inline AuthorizerStatus GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(AuthorizerStatus value) { m_statusHasBeenSet = true; m_status = value; }
115 inline AuthorizerDescription& WithStatus(AuthorizerStatus value) { SetStatus(value); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
123 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
124 template<typename CreationDateT = Aws::Utils::DateTime>
125 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
126 template<typename CreationDateT = Aws::Utils::DateTime>
127 AuthorizerDescription& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
135 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
136 template<typename LastModifiedDateT = Aws::Utils::DateTime>
137 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
138 template<typename LastModifiedDateT = Aws::Utils::DateTime>
139 AuthorizerDescription& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
141
143
147 inline bool GetSigningDisabled() const { return m_signingDisabled; }
148 inline bool SigningDisabledHasBeenSet() const { return m_signingDisabledHasBeenSet; }
149 inline void SetSigningDisabled(bool value) { m_signingDisabledHasBeenSet = true; m_signingDisabled = value; }
150 inline AuthorizerDescription& WithSigningDisabled(bool value) { SetSigningDisabled(value); return *this;}
152
154
159 inline bool GetEnableCachingForHttp() const { return m_enableCachingForHttp; }
160 inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; }
161 inline void SetEnableCachingForHttp(bool value) { m_enableCachingForHttpHasBeenSet = true; m_enableCachingForHttp = value; }
162 inline AuthorizerDescription& WithEnableCachingForHttp(bool value) { SetEnableCachingForHttp(value); return *this;}
164 private:
165
166 Aws::String m_authorizerName;
167 bool m_authorizerNameHasBeenSet = false;
168
169 Aws::String m_authorizerArn;
170 bool m_authorizerArnHasBeenSet = false;
171
172 Aws::String m_authorizerFunctionArn;
173 bool m_authorizerFunctionArnHasBeenSet = false;
174
175 Aws::String m_tokenKeyName;
176 bool m_tokenKeyNameHasBeenSet = false;
177
178 Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
179 bool m_tokenSigningPublicKeysHasBeenSet = false;
180
182 bool m_statusHasBeenSet = false;
183
184 Aws::Utils::DateTime m_creationDate{};
185 bool m_creationDateHasBeenSet = false;
186
187 Aws::Utils::DateTime m_lastModifiedDate{};
188 bool m_lastModifiedDateHasBeenSet = false;
189
190 bool m_signingDisabled{false};
191 bool m_signingDisabledHasBeenSet = false;
192
193 bool m_enableCachingForHttp{false};
194 bool m_enableCachingForHttpHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace IoT
199} // namespace Aws
AuthorizerDescription & WithEnableCachingForHttp(bool value)
void SetAuthorizerArn(AuthorizerArnT &&value)
AuthorizerDescription & WithStatus(AuthorizerStatus value)
void SetTokenKeyName(TokenKeyNameT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
void SetTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
AuthorizerDescription & WithTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
const Aws::String & GetAuthorizerArn() const
AuthorizerDescription & WithAuthorizerArn(AuthorizerArnT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API AuthorizerDescription()=default
void SetAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
const Aws::String & GetAuthorizerFunctionArn() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_IOT_API AuthorizerDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthorizerDescription & WithLastModifiedDate(LastModifiedDateT &&value)
AuthorizerDescription & WithAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
void SetAuthorizerName(AuthorizerNameT &&value)
const Aws::String & GetAuthorizerName() const
AuthorizerDescription & AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT &&key, TokenSigningPublicKeysValueT &&value)
AuthorizerDescription & WithTokenKeyName(TokenKeyNameT &&value)
AuthorizerDescription & WithSigningDisabled(bool value)
AuthorizerDescription & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AuthorizerDescription & WithAuthorizerName(AuthorizerNameT &&value)
AWS_IOT_API AuthorizerDescription(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTokenKeyName() const
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
Aws::Utils::Json::JsonValue JsonValue