/* * 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; /** *
* The authorizer description. *
*/ public class AuthorizerDescription implements Serializable { /** ** The authorizer name. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [\w=,@-]+
*/
private String authorizerName;
/**
*
* The authorizer ARN. *
*
* Constraints:
* Length: - 2048
*/
private String authorizerArn;
/**
*
* The authorizer's Lambda function ARN. *
*
* 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 validate the token signature returned by your * custom authentication service. *
*/ private java.util.Map* The status of the authorizer. *
*
* Constraints:
* Allowed Values: ACTIVE, INACTIVE
*/
private String status;
/**
*
* The UNIX timestamp of when the authorizer was created. *
*/ private java.util.Date creationDate; /** ** The UNIX timestamp of when the authorizer was last updated. *
*/ private java.util.Date lastModifiedDate; /** ** Specifies whether IoT validates the token signature in an authorization * request. *
*/ private Boolean signingDisabled; /** *
* 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 AuthorizerDescription withAuthorizerName(String authorizerName) { this.authorizerName = authorizerName; return this; } /** ** The authorizer ARN. *
*
* Constraints:
* Length: - 2048
*
* @return
* The authorizer ARN. *
*/ public String getAuthorizerArn() { return authorizerArn; } /** ** The authorizer ARN. *
*
* Constraints:
* Length: - 2048
*
* @param authorizerArn
* The authorizer ARN. *
*/ public void setAuthorizerArn(String authorizerArn) { this.authorizerArn = authorizerArn; } /** ** The authorizer ARN. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 2048
*
* @param authorizerArn
* The authorizer ARN. *
* @return A reference to this updated object so that method calls can be * chained together. */ public AuthorizerDescription withAuthorizerArn(String authorizerArn) { this.authorizerArn = authorizerArn; return this; } /** ** The authorizer's Lambda function ARN. *
*
* Constraints:
* Length: - 2048
* Pattern: [\s\S]*
*
* @return
* The authorizer's Lambda function ARN. *
*/ public String getAuthorizerFunctionArn() { return authorizerFunctionArn; } /** ** The authorizer's Lambda function ARN. *
*
* Constraints:
* Length: - 2048
* Pattern: [\s\S]*
*
* @param authorizerFunctionArn
* The authorizer's Lambda function ARN. *
*/ public void setAuthorizerFunctionArn(String authorizerFunctionArn) { this.authorizerFunctionArn = authorizerFunctionArn; } /** ** The authorizer's Lambda function ARN. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 2048
* Pattern: [\s\S]*
*
* @param authorizerFunctionArn
* The authorizer's Lambda function ARN. *
* @return A reference to this updated object so that method calls can be * chained together. */ public AuthorizerDescription 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 AuthorizerDescription withTokenKeyName(String tokenKeyName) { this.tokenKeyName = tokenKeyName; return this; } /** ** The public keys used to validate the token signature returned by your * custom authentication service. *
* * @return* The public keys used to validate the token signature returned by * your custom authentication service. *
*/ public java.util.Map* The public keys used to validate the token signature returned by your * custom authentication service. *
* * @param tokenSigningPublicKeys* The public keys used to validate the token signature returned * by your custom authentication service. *
*/ public void setTokenSigningPublicKeys(java.util.Map* The public keys used to validate the token signature returned by your * custom authentication service. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tokenSigningPublicKeys
* The public keys used to validate the token signature returned * by your custom authentication service. *
* @return A reference to this updated object so that method calls can be * chained together. */ public AuthorizerDescription withTokenSigningPublicKeys( java.util.Map* The public keys used to validate the token signature returned by your * custom authentication service. *
*
* 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 AuthorizerDescription 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 AuthorizerDescription cleartokenSigningPublicKeysEntries() {
this.tokenSigningPublicKeys = null;
return this;
}
/**
*
* The status of the authorizer.
*
* Constraints:
* The status of the authorizer.
*
* The status of the authorizer.
*
* Constraints:
* The status of the authorizer.
*
* The status of the authorizer.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The status of the authorizer.
*
* The status of the authorizer.
*
* Constraints:
* The status of the authorizer.
*
* The status of the authorizer.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The status of the authorizer.
*
* The UNIX timestamp of when the authorizer was created.
*
* The UNIX timestamp of when the authorizer was created.
*
* The UNIX timestamp of when the authorizer was created.
*
* The UNIX timestamp of when the authorizer was created.
*
* The UNIX timestamp of when the authorizer was created.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param creationDate
* The UNIX timestamp of when the authorizer was created.
*
* The UNIX timestamp of when the authorizer was last updated.
*
* The UNIX timestamp of when the authorizer was last updated.
*
* The UNIX timestamp of when the authorizer was last updated.
*
* The UNIX timestamp of when the authorizer was last updated.
*
* The UNIX timestamp of when the authorizer was last updated.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param lastModifiedDate
* The UNIX timestamp of when the authorizer was last updated.
*
* Specifies whether IoT validates the token signature in an authorization
* request.
*
* Specifies whether IoT validates the token signature in an
* authorization request.
*
* Specifies whether IoT validates the token signature in an authorization
* request.
*
* Specifies whether IoT validates the token signature in an
* authorization request.
*
* Specifies whether IoT validates the token signature in an authorization
* request.
*
* Specifies whether IoT validates the token signature in an
* authorization request.
*
* Specifies whether IoT validates the token signature in an authorization
* request.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param signingDisabled
* Specifies whether IoT validates the token signature in an
* authorization 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.
*