/** * 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 IoT { namespace Model { /** */ class UpdateAuthorizerRequest : public IoTRequest { public: AWS_IOT_API UpdateAuthorizerRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateAuthorizer"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

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 UpdateAuthorizerRequest& WithAuthorizerName(const Aws::String& value) { SetAuthorizerName(value); return *this;} /** *

The authorizer name.

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

The authorizer name.

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

The ARN of the authorizer's Lambda function.

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

The ARN of the authorizer's Lambda function.

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

The ARN of the authorizer's Lambda function.

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

The ARN of the authorizer's Lambda function.

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

The ARN of the authorizer's Lambda function.

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

The ARN of the authorizer's Lambda function.

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

The ARN of the authorizer's Lambda function.

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

The ARN of the authorizer's Lambda function.

*/ inline UpdateAuthorizerRequest& 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 UpdateAuthorizerRequest& WithTokenKeyName(const Aws::String& value) { SetTokenKeyName(value); return *this;} /** *

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

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

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

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

The public keys used to verify the token signature.

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

The public keys used to verify the token signature.

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

The public keys used to verify the token signature.

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

The public keys used to verify the token signature.

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

The public keys used to verify the token signature.

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

The public keys used to verify the token signature.

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

The public keys used to verify the token signature.

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

The public keys used to verify the token signature.

*/ inline UpdateAuthorizerRequest& 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 verify the token signature.

*/ inline UpdateAuthorizerRequest& 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 verify the token signature.

*/ inline UpdateAuthorizerRequest& 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 verify the token signature.

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

The public keys used to verify the token signature.

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

The public keys used to verify the token signature.

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

The status of the update authorizer request.

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

The status of the update authorizer request.

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

The status of the update authorizer request.

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

The status of the update authorizer request.

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

The status of the update authorizer request.

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

The status of the update authorizer request.

*/ inline UpdateAuthorizerRequest& WithStatus(AuthorizerStatus&& value) { SetStatus(std::move(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 UpdateAuthorizerRequest& WithEnableCachingForHttp(bool value) { SetEnableCachingForHttp(value); return *this;} private: Aws::String m_authorizerName; bool m_authorizerNameHasBeenSet = 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; bool m_enableCachingForHttp; bool m_enableCachingForHttpHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws