AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
47 inline const Aws::String& GetAuthorizerName() const{ return m_authorizerName; }
48 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
49 inline void SetAuthorizerName(const Aws::String& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = value; }
50 inline void SetAuthorizerName(Aws::String&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::move(value); }
51 inline void SetAuthorizerName(const char* value) { m_authorizerNameHasBeenSet = true; m_authorizerName.assign(value); }
52 inline AuthorizerDescription& WithAuthorizerName(const Aws::String& value) { SetAuthorizerName(value); return *this;}
53 inline AuthorizerDescription& WithAuthorizerName(Aws::String&& value) { SetAuthorizerName(std::move(value)); return *this;}
54 inline AuthorizerDescription& WithAuthorizerName(const char* value) { SetAuthorizerName(value); return *this;}
56
58
61 inline const Aws::String& GetAuthorizerArn() const{ return m_authorizerArn; }
62 inline bool AuthorizerArnHasBeenSet() const { return m_authorizerArnHasBeenSet; }
63 inline void SetAuthorizerArn(const Aws::String& value) { m_authorizerArnHasBeenSet = true; m_authorizerArn = value; }
64 inline void SetAuthorizerArn(Aws::String&& value) { m_authorizerArnHasBeenSet = true; m_authorizerArn = std::move(value); }
65 inline void SetAuthorizerArn(const char* value) { m_authorizerArnHasBeenSet = true; m_authorizerArn.assign(value); }
66 inline AuthorizerDescription& WithAuthorizerArn(const Aws::String& value) { SetAuthorizerArn(value); return *this;}
67 inline AuthorizerDescription& WithAuthorizerArn(Aws::String&& value) { SetAuthorizerArn(std::move(value)); return *this;}
68 inline AuthorizerDescription& WithAuthorizerArn(const char* value) { SetAuthorizerArn(value); return *this;}
70
72
75 inline const Aws::String& GetAuthorizerFunctionArn() const{ return m_authorizerFunctionArn; }
76 inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; }
77 inline void SetAuthorizerFunctionArn(const Aws::String& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = value; }
78 inline void SetAuthorizerFunctionArn(Aws::String&& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = std::move(value); }
79 inline void SetAuthorizerFunctionArn(const char* value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn.assign(value); }
81 inline AuthorizerDescription& WithAuthorizerFunctionArn(Aws::String&& value) { SetAuthorizerFunctionArn(std::move(value)); return *this;}
82 inline AuthorizerDescription& WithAuthorizerFunctionArn(const char* value) { SetAuthorizerFunctionArn(value); return *this;}
84
86
89 inline const Aws::String& GetTokenKeyName() const{ return m_tokenKeyName; }
90 inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
91 inline void SetTokenKeyName(const Aws::String& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = value; }
92 inline void SetTokenKeyName(Aws::String&& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = std::move(value); }
93 inline void SetTokenKeyName(const char* value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName.assign(value); }
94 inline AuthorizerDescription& WithTokenKeyName(const Aws::String& value) { SetTokenKeyName(value); return *this;}
95 inline AuthorizerDescription& WithTokenKeyName(Aws::String&& value) { SetTokenKeyName(std::move(value)); return *this;}
96 inline AuthorizerDescription& WithTokenKeyName(const char* value) { SetTokenKeyName(value); return *this;}
98
100
104 inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const{ return m_tokenSigningPublicKeys; }
105 inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
106 inline void SetTokenSigningPublicKeys(const Aws::Map<Aws::String, Aws::String>& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = value; }
107 inline void SetTokenSigningPublicKeys(Aws::Map<Aws::String, Aws::String>&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = std::move(value); }
110 inline AuthorizerDescription& AddTokenSigningPublicKeys(const Aws::String& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; }
111 inline AuthorizerDescription& AddTokenSigningPublicKeys(Aws::String&& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; }
112 inline AuthorizerDescription& AddTokenSigningPublicKeys(const Aws::String& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; }
113 inline AuthorizerDescription& AddTokenSigningPublicKeys(Aws::String&& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), std::move(value)); return *this; }
114 inline AuthorizerDescription& AddTokenSigningPublicKeys(const char* key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; }
115 inline AuthorizerDescription& AddTokenSigningPublicKeys(Aws::String&& key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; }
116 inline AuthorizerDescription& AddTokenSigningPublicKeys(const char* key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; }
118
120
123 inline const AuthorizerStatus& GetStatus() const{ return m_status; }
124 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 inline void SetStatus(const AuthorizerStatus& value) { m_statusHasBeenSet = true; m_status = value; }
126 inline void SetStatus(AuthorizerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
127 inline AuthorizerDescription& WithStatus(const AuthorizerStatus& value) { SetStatus(value); return *this;}
128 inline AuthorizerDescription& WithStatus(AuthorizerStatus&& value) { SetStatus(std::move(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
136 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
137 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
138 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
139 inline AuthorizerDescription& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
140 inline AuthorizerDescription& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
148 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
149 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
150 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
152 inline AuthorizerDescription& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
154
156
160 inline bool GetSigningDisabled() const{ return m_signingDisabled; }
161 inline bool SigningDisabledHasBeenSet() const { return m_signingDisabledHasBeenSet; }
162 inline void SetSigningDisabled(bool value) { m_signingDisabledHasBeenSet = true; m_signingDisabled = value; }
163 inline AuthorizerDescription& WithSigningDisabled(bool value) { SetSigningDisabled(value); return *this;}
165
167
172 inline bool GetEnableCachingForHttp() const{ return m_enableCachingForHttp; }
173 inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; }
174 inline void SetEnableCachingForHttp(bool value) { m_enableCachingForHttpHasBeenSet = true; m_enableCachingForHttp = value; }
175 inline AuthorizerDescription& WithEnableCachingForHttp(bool value) { SetEnableCachingForHttp(value); return *this;}
177 private:
178
179 Aws::String m_authorizerName;
180 bool m_authorizerNameHasBeenSet = false;
181
182 Aws::String m_authorizerArn;
183 bool m_authorizerArnHasBeenSet = false;
184
185 Aws::String m_authorizerFunctionArn;
186 bool m_authorizerFunctionArnHasBeenSet = false;
187
188 Aws::String m_tokenKeyName;
189 bool m_tokenKeyNameHasBeenSet = false;
190
191 Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
192 bool m_tokenSigningPublicKeysHasBeenSet = false;
193
194 AuthorizerStatus m_status;
195 bool m_statusHasBeenSet = false;
196
197 Aws::Utils::DateTime m_creationDate;
198 bool m_creationDateHasBeenSet = false;
199
200 Aws::Utils::DateTime m_lastModifiedDate;
201 bool m_lastModifiedDateHasBeenSet = false;
202
203 bool m_signingDisabled;
204 bool m_signingDisabledHasBeenSet = false;
205
206 bool m_enableCachingForHttp;
207 bool m_enableCachingForHttpHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace IoT
212} // namespace Aws
const AuthorizerStatus & GetStatus() const
void SetAuthorizerArn(const Aws::String &value)
AuthorizerDescription & AddTokenSigningPublicKeys(const Aws::String &key, Aws::String &&value)
void SetAuthorizerFunctionArn(const Aws::String &value)
AuthorizerDescription & WithTokenKeyName(const Aws::String &value)
void SetCreationDate(const Aws::Utils::DateTime &value)
AuthorizerDescription & WithAuthorizerArn(Aws::String &&value)
AuthorizerDescription & WithCreationDate(const Aws::Utils::DateTime &value)
AuthorizerDescription & WithEnableCachingForHttp(bool value)
AuthorizerDescription & WithAuthorizerFunctionArn(const char *value)
AuthorizerDescription & WithAuthorizerFunctionArn(const Aws::String &value)
AuthorizerDescription & AddTokenSigningPublicKeys(Aws::String &&key, Aws::String &&value)
AuthorizerDescription & WithTokenKeyName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
AuthorizerDescription & WithStatus(const AuthorizerStatus &value)
void SetTokenKeyName(const Aws::String &value)
void SetStatus(AuthorizerStatus &&value)
AuthorizerDescription & WithStatus(AuthorizerStatus &&value)
AuthorizerDescription & WithAuthorizerName(Aws::String &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
void SetTokenSigningPublicKeys(Aws::Map< Aws::String, Aws::String > &&value)
AuthorizerDescription & AddTokenSigningPublicKeys(const char *key, const char *value)
const Aws::String & GetAuthorizerArn() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTokenSigningPublicKeys(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetAuthorizerFunctionArn() const
AuthorizerDescription & WithAuthorizerName(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_IOT_API AuthorizerDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthorizerDescription & WithCreationDate(Aws::Utils::DateTime &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
const Aws::String & GetAuthorizerName() const
AuthorizerDescription & AddTokenSigningPublicKeys(Aws::String &&key, const Aws::String &value)
AuthorizerDescription & AddTokenSigningPublicKeys(const char *key, Aws::String &&value)
AuthorizerDescription & WithTokenKeyName(Aws::String &&value)
AuthorizerDescription & WithTokenSigningPublicKeys(const Aws::Map< Aws::String, Aws::String > &value)
AuthorizerDescription & WithAuthorizerArn(const char *value)
void SetStatus(const AuthorizerStatus &value)
AuthorizerDescription & WithTokenSigningPublicKeys(Aws::Map< Aws::String, Aws::String > &&value)
AuthorizerDescription & WithSigningDisabled(bool value)
AuthorizerDescription & WithAuthorizerArn(const Aws::String &value)
void SetAuthorizerFunctionArn(Aws::String &&value)
AuthorizerDescription & WithLastModifiedDate(Aws::Utils::DateTime &&value)
AuthorizerDescription & WithAuthorizerFunctionArn(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
AuthorizerDescription & WithLastModifiedDate(const Aws::Utils::DateTime &value)
AWS_IOT_API AuthorizerDescription(Aws::Utils::Json::JsonView jsonValue)
AuthorizerDescription & AddTokenSigningPublicKeys(const Aws::String &key, const Aws::String &value)
const Aws::String & GetTokenKeyName() const
AuthorizerDescription & AddTokenSigningPublicKeys(Aws::String &&key, const char *value)
void SetAuthorizerName(const Aws::String &value)
AuthorizerDescription & WithAuthorizerName(const char *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
Aws::Utils::Json::JsonValue JsonValue