@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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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()
|
ApiKey.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
value()
The value of the API Key.
|
copy
public String id()
The identifier of the API Key.
public String value()
The value of the API Key.
public String name()
The name of the API Key.
public String customerId()
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
public String description()
The description of the API Key.
public Boolean enabled()
Specifies whether the API Key can be used by callers.
public Instant createdDate()
The timestamp when the API Key was created.
public Instant lastUpdatedDate()
The timestamp when the API Key was last updated.
public ApiKey.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ApiKey.Builder,ApiKey>
public static ApiKey.Builder builder()
public static Class<? extends ApiKey.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.