@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 AWS Marketplace customer identifier , when integrating with the AWS 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()
Returns true if the StageKeys property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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()
|
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 AWS Marketplace customer identifier , when integrating with the AWS 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()
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.
You can use hasStageKeys() to see if a value was sent in this field.
public final boolean hasTags()
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.
You can use hasTags() to see if a value was sent in this field.
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 © 2021. All rights reserved.