/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
* Updates an authorizer. *
** Requires permission to access the UpdateAuthorizer action. *
*/ public class UpdateAuthorizerRequest extends AmazonWebServiceRequest implements Serializable { /** ** The authorizer name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [\w=,@-]+
*/
private String authorizerName;
/**
*
* The ARN of the authorizer's Lambda function. *
*
* Constraints:
* Length: - 2048
* Pattern: [\s\S]*
*/
private String authorizerFunctionArn;
/**
*
* The key used to extract the token from the HTTP headers. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*/
private String tokenKeyName;
/**
*
* The public keys used to verify the token signature. *
*/ private java.util.Map* The status of the update authorizer request. *
*
* Constraints:
* Allowed Values: ACTIVE, INACTIVE
*/
private String status;
/**
*
* 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.
*
* The authorizer name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [\w=,@-]+
*
* @return
* The authorizer name. *
*/ public String getAuthorizerName() { return authorizerName; } /** ** The authorizer name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [\w=,@-]+
*
* @param authorizerName
* The authorizer name. *
*/ public void setAuthorizerName(String authorizerName) { this.authorizerName = authorizerName; } /** ** The authorizer name. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 128
* Pattern: [\w=,@-]+
*
* @param authorizerName
* The authorizer name. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateAuthorizerRequest withAuthorizerName(String authorizerName) { this.authorizerName = authorizerName; return this; } /** ** The ARN of the authorizer's Lambda function. *
*
* Constraints:
* Length: - 2048
* Pattern: [\s\S]*
*
* @return
* The ARN of the authorizer's Lambda function. *
*/ public String getAuthorizerFunctionArn() { return authorizerFunctionArn; } /** ** The ARN of the authorizer's Lambda function. *
*
* Constraints:
* Length: - 2048
* Pattern: [\s\S]*
*
* @param authorizerFunctionArn
* The ARN of the authorizer's Lambda function. *
*/ public void setAuthorizerFunctionArn(String authorizerFunctionArn) { this.authorizerFunctionArn = authorizerFunctionArn; } /** ** The ARN of the authorizer's Lambda function. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 2048
* Pattern: [\s\S]*
*
* @param authorizerFunctionArn
* The ARN of the authorizer's Lambda function. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateAuthorizerRequest withAuthorizerFunctionArn(String authorizerFunctionArn) { this.authorizerFunctionArn = authorizerFunctionArn; return this; } /** ** The key used to extract the token from the HTTP headers. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @return
* The key used to extract the token from the HTTP headers. *
*/ public String getTokenKeyName() { return tokenKeyName; } /** ** The key used to extract the token from the HTTP headers. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @param tokenKeyName
* The key used to extract the token from the HTTP headers. *
*/ public void setTokenKeyName(String tokenKeyName) { this.tokenKeyName = tokenKeyName; } /** ** The key used to extract the token from the HTTP headers. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @param tokenKeyName
* The key used to extract the token from the HTTP headers. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateAuthorizerRequest withTokenKeyName(String tokenKeyName) { this.tokenKeyName = tokenKeyName; return this; } /** ** The public keys used to verify the token signature. *
* * @return* The public keys used to verify the token signature. *
*/ public java.util.Map* The public keys used to verify the token signature. *
* * @param tokenSigningPublicKeys* The public keys used to verify the token signature. *
*/ public void setTokenSigningPublicKeys(java.util.Map* The public keys used to verify the token signature. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tokenSigningPublicKeys
* The public keys used to verify the token signature. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateAuthorizerRequest withTokenSigningPublicKeys( java.util.Map* The public keys used to verify the token signature. *
*
* The method adds a new key-value pair into tokenSigningPublicKeys
* parameter, and returns a reference to this object so that method calls
* can be chained together.
*
* @param key The key of the entry to be added into tokenSigningPublicKeys.
* @param value The corresponding value of the entry to be added into
* tokenSigningPublicKeys.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public UpdateAuthorizerRequest addtokenSigningPublicKeysEntry(String key, String value) {
if (null == this.tokenSigningPublicKeys) {
this.tokenSigningPublicKeys = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public UpdateAuthorizerRequest cleartokenSigningPublicKeysEntries() {
this.tokenSigningPublicKeys = null;
return this;
}
/**
*
* The status of the update authorizer request.
*
* Constraints:
* The status of the update authorizer request.
*
* The status of the update authorizer request.
*
* Constraints:
* The status of the update authorizer request.
*
* The status of the update authorizer request.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The status of the update authorizer request.
*
* The status of the update authorizer request.
*
* Constraints:
* The status of the update authorizer request.
*
* The status of the update authorizer request.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The status of the update authorizer request.
*
* When
* When
* When
* When
* When
* When
* When
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param enableCachingForHttp
* When
* Allowed Values: ACTIVE, INACTIVE
*
* @return
* Allowed Values: ACTIVE, INACTIVE
*
* @param status
* Allowed Values: ACTIVE, INACTIVE
*
* @param status
* Allowed Values: ACTIVE, INACTIVE
*
* @param status
* Allowed Values: ACTIVE, INACTIVE
*
* @param status 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
*