@Generated(value="software.amazon.awssdk:codegen") public final class ApiKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ApiKey.Builder,ApiKey>
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ApiKey.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ApiKey.Builder |
builder() |
Instant |
createdDate()
The timestamp when the API Key was created.
|
String |
customerId()
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS
Marketplace.
|
String |
description()
The description of the API Key.
|
Boolean |
enabled()
Specifies whether the API Key can be used by callers.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasStageKeys()
For responses, this returns true if the service returned a value for the StageKeys property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
id()
The identifier of the API Key.
|
Instant |
lastUpdatedDate()
The timestamp when the API Key was last updated.
|
String |
name()
The name of the API Key.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ApiKey.Builder> |
serializableBuilderClass() |
List<String> |
stageKeys()
A list of Stage resources that are associated with the ApiKey resource.
|
Map<String,String> |
tags()
The collection of tags.
|
ApiKey.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
The value of the API Key.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The identifier of the API Key.
public final String value()
The value of the API Key.
public final String name()
The name of the API Key.
public final String customerId()
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
public final String description()
The description of the API Key.
public final Boolean enabled()
Specifies whether the API Key can be used by callers.
public final Instant createdDate()
The timestamp when the API Key was created.
public final Instant lastUpdatedDate()
The timestamp when the API Key was last updated.
public final boolean hasStageKeys()
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> stageKeys()
A list of Stage resources that are associated with the ApiKey resource.
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 hasStageKeys() method.
public final boolean hasTags()
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 Map<String,String> tags()
The collection of tags. Each tag element is associated with a given resource.
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 hasTags() method.
public ApiKey.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ApiKey.Builder,ApiKey>public static ApiKey.Builder builder()
public static Class<? extends ApiKey.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.