/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

The authorizer description.

See Also:

AWS * API Reference

*/ class AuthorizerDescription { public: AWS_IOT_API AuthorizerDescription(); AWS_IOT_API AuthorizerDescription(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API AuthorizerDescription& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The authorizer name.

*/ inline const Aws::String& GetAuthorizerName() const{ return m_authorizerName; } /** *

The authorizer name.

*/ inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; } /** *

The authorizer name.

*/ inline void SetAuthorizerName(const Aws::String& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = value; } /** *

The authorizer name.

*/ inline void SetAuthorizerName(Aws::String&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::move(value); } /** *

The authorizer name.

*/ inline void SetAuthorizerName(const char* value) { m_authorizerNameHasBeenSet = true; m_authorizerName.assign(value); } /** *

The authorizer name.

*/ inline AuthorizerDescription& WithAuthorizerName(const Aws::String& value) { SetAuthorizerName(value); return *this;} /** *

The authorizer name.

*/ inline AuthorizerDescription& WithAuthorizerName(Aws::String&& value) { SetAuthorizerName(std::move(value)); return *this;} /** *

The authorizer name.

*/ inline AuthorizerDescription& WithAuthorizerName(const char* value) { SetAuthorizerName(value); return *this;} /** *

The authorizer ARN.

*/ inline const Aws::String& GetAuthorizerArn() const{ return m_authorizerArn; } /** *

The authorizer ARN.

*/ inline bool AuthorizerArnHasBeenSet() const { return m_authorizerArnHasBeenSet; } /** *

The authorizer ARN.

*/ inline void SetAuthorizerArn(const Aws::String& value) { m_authorizerArnHasBeenSet = true; m_authorizerArn = value; } /** *

The authorizer ARN.

*/ inline void SetAuthorizerArn(Aws::String&& value) { m_authorizerArnHasBeenSet = true; m_authorizerArn = std::move(value); } /** *

The authorizer ARN.

*/ inline void SetAuthorizerArn(const char* value) { m_authorizerArnHasBeenSet = true; m_authorizerArn.assign(value); } /** *

The authorizer ARN.

*/ inline AuthorizerDescription& WithAuthorizerArn(const Aws::String& value) { SetAuthorizerArn(value); return *this;} /** *

The authorizer ARN.

*/ inline AuthorizerDescription& WithAuthorizerArn(Aws::String&& value) { SetAuthorizerArn(std::move(value)); return *this;} /** *

The authorizer ARN.

*/ inline AuthorizerDescription& WithAuthorizerArn(const char* value) { SetAuthorizerArn(value); return *this;} /** *

The authorizer's Lambda function ARN.

*/ inline const Aws::String& GetAuthorizerFunctionArn() const{ return m_authorizerFunctionArn; } /** *

The authorizer's Lambda function ARN.

*/ inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; } /** *

The authorizer's Lambda function ARN.

*/ inline void SetAuthorizerFunctionArn(const Aws::String& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = value; } /** *

The authorizer's Lambda function ARN.

*/ inline void SetAuthorizerFunctionArn(Aws::String&& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = std::move(value); } /** *

The authorizer's Lambda function ARN.

*/ inline void SetAuthorizerFunctionArn(const char* value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn.assign(value); } /** *

The authorizer's Lambda function ARN.

*/ inline AuthorizerDescription& WithAuthorizerFunctionArn(const Aws::String& value) { SetAuthorizerFunctionArn(value); return *this;} /** *

The authorizer's Lambda function ARN.

*/ inline AuthorizerDescription& WithAuthorizerFunctionArn(Aws::String&& value) { SetAuthorizerFunctionArn(std::move(value)); return *this;} /** *

The authorizer's Lambda function ARN.

*/ inline AuthorizerDescription& WithAuthorizerFunctionArn(const char* value) { SetAuthorizerFunctionArn(value); return *this;} /** *

The key used to extract the token from the HTTP headers.

*/ inline const Aws::String& GetTokenKeyName() const{ return m_tokenKeyName; } /** *

The key used to extract the token from the HTTP headers.

*/ inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; } /** *

The key used to extract the token from the HTTP headers.

*/ inline void SetTokenKeyName(const Aws::String& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = value; } /** *

The key used to extract the token from the HTTP headers.

*/ inline void SetTokenKeyName(Aws::String&& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = std::move(value); } /** *

The key used to extract the token from the HTTP headers.

*/ inline void SetTokenKeyName(const char* value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName.assign(value); } /** *

The key used to extract the token from the HTTP headers.

*/ inline AuthorizerDescription& WithTokenKeyName(const Aws::String& value) { SetTokenKeyName(value); return *this;} /** *

The key used to extract the token from the HTTP headers.

*/ inline AuthorizerDescription& WithTokenKeyName(Aws::String&& value) { SetTokenKeyName(std::move(value)); return *this;} /** *

The key used to extract the token from the HTTP headers.

*/ inline AuthorizerDescription& WithTokenKeyName(const char* value) { SetTokenKeyName(value); return *this;} /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline const Aws::Map& GetTokenSigningPublicKeys() const{ return m_tokenSigningPublicKeys; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline void SetTokenSigningPublicKeys(const Aws::Map& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = value; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline void SetTokenSigningPublicKeys(Aws::Map&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = std::move(value); } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& WithTokenSigningPublicKeys(const Aws::Map& value) { SetTokenSigningPublicKeys(value); return *this;} /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& WithTokenSigningPublicKeys(Aws::Map&& value) { SetTokenSigningPublicKeys(std::move(value)); return *this;} /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& AddTokenSigningPublicKeys(const Aws::String& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& AddTokenSigningPublicKeys(Aws::String&& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& AddTokenSigningPublicKeys(const Aws::String& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& AddTokenSigningPublicKeys(Aws::String&& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), std::move(value)); return *this; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& AddTokenSigningPublicKeys(const char* key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& AddTokenSigningPublicKeys(Aws::String&& key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; } /** *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ inline AuthorizerDescription& AddTokenSigningPublicKeys(const char* key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; } /** *

The status of the authorizer.

*/ inline const AuthorizerStatus& GetStatus() const{ return m_status; } /** *

The status of the authorizer.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the authorizer.

*/ inline void SetStatus(const AuthorizerStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the authorizer.

*/ inline void SetStatus(AuthorizerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the authorizer.

*/ inline AuthorizerDescription& WithStatus(const AuthorizerStatus& value) { SetStatus(value); return *this;} /** *

The status of the authorizer.

*/ inline AuthorizerDescription& WithStatus(AuthorizerStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The UNIX timestamp of when the authorizer was created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The UNIX timestamp of when the authorizer was created.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The UNIX timestamp of when the authorizer was created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The UNIX timestamp of when the authorizer was created.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

The UNIX timestamp of when the authorizer was created.

*/ inline AuthorizerDescription& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The UNIX timestamp of when the authorizer was created.

*/ inline AuthorizerDescription& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The UNIX timestamp of when the authorizer was last updated.

*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The UNIX timestamp of when the authorizer was last updated.

*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

The UNIX timestamp of when the authorizer was last updated.

*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *

The UNIX timestamp of when the authorizer was last updated.

*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); } /** *

The UNIX timestamp of when the authorizer was last updated.

*/ inline AuthorizerDescription& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *

The UNIX timestamp of when the authorizer was last updated.

*/ inline AuthorizerDescription& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *

Specifies whether IoT validates the token signature in an authorization * request.

*/ inline bool GetSigningDisabled() const{ return m_signingDisabled; } /** *

Specifies whether IoT validates the token signature in an authorization * request.

*/ inline bool SigningDisabledHasBeenSet() const { return m_signingDisabledHasBeenSet; } /** *

Specifies whether IoT validates the token signature in an authorization * request.

*/ inline void SetSigningDisabled(bool value) { m_signingDisabledHasBeenSet = true; m_signingDisabled = value; } /** *

Specifies whether IoT validates the token signature in an authorization * request.

*/ inline AuthorizerDescription& WithSigningDisabled(bool value) { SetSigningDisabled(value); return *this;} /** *

When true, the result from the authorizer’s Lambda function is * cached for the time specified in refreshAfterInSeconds. The cached * result is used while the device reuses the same HTTP connection.

*/ inline bool GetEnableCachingForHttp() const{ return m_enableCachingForHttp; } /** *

When true, the result from the authorizer’s Lambda function is * cached for the time specified in refreshAfterInSeconds. The cached * result is used while the device reuses the same HTTP connection.

*/ inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; } /** *

When true, the result from the authorizer’s Lambda function is * cached for the time specified in refreshAfterInSeconds. The cached * result is used while the device reuses the same HTTP connection.

*/ inline void SetEnableCachingForHttp(bool value) { m_enableCachingForHttpHasBeenSet = true; m_enableCachingForHttp = value; } /** *

When true, the result from the authorizer’s Lambda function is * cached for the time specified in refreshAfterInSeconds. The cached * result is used while the device reuses the same HTTP connection.

*/ inline AuthorizerDescription& WithEnableCachingForHttp(bool value) { SetEnableCachingForHttp(value); return *this;} private: Aws::String m_authorizerName; bool m_authorizerNameHasBeenSet = false; Aws::String m_authorizerArn; bool m_authorizerArnHasBeenSet = false; Aws::String m_authorizerFunctionArn; bool m_authorizerFunctionArnHasBeenSet = false; Aws::String m_tokenKeyName; bool m_tokenKeyNameHasBeenSet = false; Aws::Map m_tokenSigningPublicKeys; bool m_tokenSigningPublicKeysHasBeenSet = false; AuthorizerStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; bool m_signingDisabled; bool m_signingDisabledHasBeenSet = false; bool m_enableCachingForHttp; bool m_enableCachingForHttpHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws