public class AuthorizerDescription extends Object implements Serializable
The authorizer description.
Constructor and Description |
---|
AuthorizerDescription() |
Modifier and Type | Method and Description |
---|---|
AuthorizerDescription |
addtokenSigningPublicKeysEntry(String key,
String value)
The public keys used to validate the token signature returned by your
custom authentication service.
|
AuthorizerDescription |
cleartokenSigningPublicKeysEntries()
Removes all the entries added into tokenSigningPublicKeys.
|
boolean |
equals(Object obj) |
String |
getAuthorizerArn()
The authorizer ARN.
|
String |
getAuthorizerFunctionArn()
The authorizer's Lambda function ARN.
|
String |
getAuthorizerName()
The authorizer name.
|
Date |
getCreationDate()
The UNIX timestamp of when the authorizer was created.
|
Date |
getLastModifiedDate()
The UNIX timestamp of when the authorizer was last updated.
|
String |
getStatus()
The status of the authorizer.
|
String |
getTokenKeyName()
The key used to extract the token from the HTTP headers.
|
Map<String,String> |
getTokenSigningPublicKeys()
The public keys used to validate the token signature returned by your
custom authentication service.
|
int |
hashCode() |
void |
setAuthorizerArn(String authorizerArn)
The authorizer ARN.
|
void |
setAuthorizerFunctionArn(String authorizerFunctionArn)
The authorizer's Lambda function ARN.
|
void |
setAuthorizerName(String authorizerName)
The authorizer name.
|
void |
setCreationDate(Date creationDate)
The UNIX timestamp of when the authorizer was created.
|
void |
setLastModifiedDate(Date lastModifiedDate)
The UNIX timestamp of when the authorizer was last updated.
|
void |
setStatus(AuthorizerStatus status)
The status of the authorizer.
|
void |
setStatus(String status)
The status of the authorizer.
|
void |
setTokenKeyName(String tokenKeyName)
The key used to extract the token from the HTTP headers.
|
void |
setTokenSigningPublicKeys(Map<String,String> tokenSigningPublicKeys)
The public keys used to validate the token signature returned by your
custom authentication service.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuthorizerDescription |
withAuthorizerArn(String authorizerArn)
The authorizer ARN.
|
AuthorizerDescription |
withAuthorizerFunctionArn(String authorizerFunctionArn)
The authorizer's Lambda function ARN.
|
AuthorizerDescription |
withAuthorizerName(String authorizerName)
The authorizer name.
|
AuthorizerDescription |
withCreationDate(Date creationDate)
The UNIX timestamp of when the authorizer was created.
|
AuthorizerDescription |
withLastModifiedDate(Date lastModifiedDate)
The UNIX timestamp of when the authorizer was last updated.
|
AuthorizerDescription |
withStatus(AuthorizerStatus status)
The status of the authorizer.
|
AuthorizerDescription |
withStatus(String status)
The status of the authorizer.
|
AuthorizerDescription |
withTokenKeyName(String tokenKeyName)
The key used to extract the token from the HTTP headers.
|
AuthorizerDescription |
withTokenSigningPublicKeys(Map<String,String> tokenSigningPublicKeys)
The public keys used to validate the token signature returned by your
custom authentication service.
|
public String getAuthorizerName()
The authorizer name.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
The authorizer name.
public void setAuthorizerName(String authorizerName)
The authorizer name.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
authorizerName
- The authorizer name.
public AuthorizerDescription withAuthorizerName(String authorizerName)
The authorizer name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
authorizerName
- The authorizer name.
public String getAuthorizerArn()
The authorizer ARN.
The authorizer ARN.
public void setAuthorizerArn(String authorizerArn)
The authorizer ARN.
authorizerArn
- The authorizer ARN.
public AuthorizerDescription withAuthorizerArn(String authorizerArn)
The authorizer ARN.
Returns a reference to this object so that method calls can be chained together.
authorizerArn
- The authorizer ARN.
public String getAuthorizerFunctionArn()
The authorizer's Lambda function ARN.
The authorizer's Lambda function ARN.
public void setAuthorizerFunctionArn(String authorizerFunctionArn)
The authorizer's Lambda function ARN.
authorizerFunctionArn
- The authorizer's Lambda function ARN.
public AuthorizerDescription withAuthorizerFunctionArn(String authorizerFunctionArn)
The authorizer's Lambda function ARN.
Returns a reference to this object so that method calls can be chained together.
authorizerFunctionArn
- The authorizer's Lambda function ARN.
public String getTokenKeyName()
The key used to extract the token from the HTTP headers.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
The key used to extract the token from the HTTP headers.
public void setTokenKeyName(String tokenKeyName)
The key used to extract the token from the HTTP headers.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
tokenKeyName
- The key used to extract the token from the HTTP headers.
public AuthorizerDescription withTokenKeyName(String 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_-]+
tokenKeyName
- The key used to extract the token from the HTTP headers.
public Map<String,String> getTokenSigningPublicKeys()
The public keys used to validate the token signature returned by your custom authentication service.
The public keys used to validate the token signature returned by your custom authentication service.
public void setTokenSigningPublicKeys(Map<String,String> tokenSigningPublicKeys)
The public keys used to validate the token signature returned by your custom authentication service.
tokenSigningPublicKeys
- The public keys used to validate the token signature returned by your custom authentication service.
public AuthorizerDescription withTokenSigningPublicKeys(Map<String,String> tokenSigningPublicKeys)
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.
tokenSigningPublicKeys
- The public keys used to validate the token signature returned by your custom authentication service.
public AuthorizerDescription addtokenSigningPublicKeysEntry(String key, String value)
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.
key
- The key of the entry to be added into tokenSigningPublicKeys.value
- The corresponding value of the entry to be added into
tokenSigningPublicKeys.public AuthorizerDescription cleartokenSigningPublicKeysEntries()
Returns a reference to this object so that method calls can be chained together.
public String getStatus()
The status of the authorizer.
Constraints:
Allowed Values: ACTIVE, INACTIVE
The status of the authorizer.
AuthorizerStatus
public void setStatus(String status)
The status of the authorizer.
Constraints:
Allowed Values: ACTIVE, INACTIVE
status
- The status of the authorizer.
AuthorizerStatus
public AuthorizerDescription withStatus(String status)
The status of the authorizer.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACTIVE, INACTIVE
status
- The status of the authorizer.
AuthorizerStatus
public void setStatus(AuthorizerStatus status)
The status of the authorizer.
Constraints:
Allowed Values: ACTIVE, INACTIVE
status
- The status of the authorizer.
AuthorizerStatus
public AuthorizerDescription withStatus(AuthorizerStatus status)
The status of the authorizer.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACTIVE, INACTIVE
status
- The status of the authorizer.
AuthorizerStatus
public Date getCreationDate()
The UNIX timestamp of when the authorizer was created.
The UNIX timestamp of when the authorizer was created.
public void setCreationDate(Date creationDate)
The UNIX timestamp of when the authorizer was created.
creationDate
- The UNIX timestamp of when the authorizer was created.
public AuthorizerDescription withCreationDate(Date creationDate)
The UNIX timestamp of when the authorizer was created.
Returns a reference to this object so that method calls can be chained together.
creationDate
- The UNIX timestamp of when the authorizer was created.
public Date getLastModifiedDate()
The UNIX timestamp of when the authorizer was last updated.
The UNIX timestamp of when the authorizer was last updated.
public void setLastModifiedDate(Date lastModifiedDate)
The UNIX timestamp of when the authorizer was last updated.
lastModifiedDate
- The UNIX timestamp of when the authorizer was last updated.
public AuthorizerDescription withLastModifiedDate(Date lastModifiedDate)
The UNIX timestamp of when the authorizer was last updated.
Returns a reference to this object so that method calls can be chained together.
lastModifiedDate
- The UNIX timestamp of when the authorizer was last updated.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.