@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class APIKeySummary extends Object implements Serializable, Cloneable, StructuredPojo
Information for a single API key.
API keys are required for the integration of the CAPTCHA API in your JavaScript client applications. The API lets you customize the placement and characteristics of the CAPTCHA puzzle for your end users. For more information about the CAPTCHA JavaScript integration, see WAF client application integration in the WAF Developer Guide.
Constructor and Description |
---|
APIKeySummary() |
Modifier and Type | Method and Description |
---|---|
APIKeySummary |
clone() |
boolean |
equals(Object obj) |
String |
getAPIKey()
The generated, encrypted API key.
|
Date |
getCreationTimestamp()
The date and time that the key was created.
|
List<String> |
getTokenDomains()
The token domains that are defined in this API key.
|
Integer |
getVersion()
Internal value used by WAF to manage the key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAPIKey(String aPIKey)
The generated, encrypted API key.
|
void |
setCreationTimestamp(Date creationTimestamp)
The date and time that the key was created.
|
void |
setTokenDomains(Collection<String> tokenDomains)
The token domains that are defined in this API key.
|
void |
setVersion(Integer version)
Internal value used by WAF to manage the key.
|
String |
toString()
Returns a string representation of this object.
|
APIKeySummary |
withAPIKey(String aPIKey)
The generated, encrypted API key.
|
APIKeySummary |
withCreationTimestamp(Date creationTimestamp)
The date and time that the key was created.
|
APIKeySummary |
withTokenDomains(Collection<String> tokenDomains)
The token domains that are defined in this API key.
|
APIKeySummary |
withTokenDomains(String... tokenDomains)
The token domains that are defined in this API key.
|
APIKeySummary |
withVersion(Integer version)
Internal value used by WAF to manage the key.
|
public List<String> getTokenDomains()
The token domains that are defined in this API key.
public void setTokenDomains(Collection<String> tokenDomains)
The token domains that are defined in this API key.
tokenDomains
- The token domains that are defined in this API key.public APIKeySummary withTokenDomains(String... tokenDomains)
The token domains that are defined in this API key.
NOTE: This method appends the values to the existing list (if any). Use
setTokenDomains(java.util.Collection)
or withTokenDomains(java.util.Collection)
if you want to
override the existing values.
tokenDomains
- The token domains that are defined in this API key.public APIKeySummary withTokenDomains(Collection<String> tokenDomains)
The token domains that are defined in this API key.
tokenDomains
- The token domains that are defined in this API key.public void setAPIKey(String aPIKey)
The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.
aPIKey
- The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.public String getAPIKey()
The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.
public APIKeySummary withAPIKey(String aPIKey)
The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.
aPIKey
- The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.public void setCreationTimestamp(Date creationTimestamp)
The date and time that the key was created.
creationTimestamp
- The date and time that the key was created.public Date getCreationTimestamp()
The date and time that the key was created.
public APIKeySummary withCreationTimestamp(Date creationTimestamp)
The date and time that the key was created.
creationTimestamp
- The date and time that the key was created.public void setVersion(Integer version)
Internal value used by WAF to manage the key.
version
- Internal value used by WAF to manage the key.public Integer getVersion()
Internal value used by WAF to manage the key.
public APIKeySummary withVersion(Integer version)
Internal value used by WAF to manage the key.
version
- Internal value used by WAF to manage the key.public String toString()
toString
in class Object
Object.toString()
public APIKeySummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.