@Generated(value="software.amazon.awssdk:codegen") public final class APIKeySummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<APIKeySummary.Builder,APIKeySummary>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
APIKeySummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
apiKey()
The generated, encrypted API key.
|
static APIKeySummary.Builder |
builder() |
Instant |
creationTimestamp()
The date and time that the key was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTokenDomains()
For responses, this returns true if the service returned a value for the TokenDomains property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends APIKeySummary.Builder> |
serializableBuilderClass() |
APIKeySummary.Builder |
toBuilder() |
List<String> |
tokenDomains()
The token domains that are defined in this API key.
|
String |
toString()
Returns a string representation of this object.
|
Integer |
version()
Internal value used by WAF to manage the key.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasTokenDomains()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> tokenDomains()
The token domains that are defined in this API key.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTokenDomains() method.
public final String apiKey()
The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.
public final Instant creationTimestamp()
The date and time that the key was created.
public final Integer version()
Internal value used by WAF to manage the key.
public APIKeySummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<APIKeySummary.Builder,APIKeySummary>public static APIKeySummary.Builder builder()
public static Class<? extends APIKeySummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.