@Generated(value="software.amazon.awssdk:codegen") public class CreateApiKeyRequest extends APIGatewayRequest implements ToCopyableBuilder<CreateApiKeyRequest.Builder,CreateApiKeyRequest>
Request to create an ApiKey resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateApiKeyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateApiKeyRequest.Builder |
builder() |
String |
customerId()
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
|
String |
description()
The description of the ApiKey.
|
Boolean |
enabled()
Specifies whether the ApiKey can be used by callers.
|
boolean |
equals(Object obj) |
Boolean |
generateDistinctId()
Specifies whether (
true) or not (false) the key identifier is distinct from the created
API key value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest. |
int |
hashCode() |
String |
name()
The name of the ApiKey.
|
static Class<? extends CreateApiKeyRequest.Builder> |
serializableBuilderClass() |
List<StageKey> |
stageKeys()
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
CreateApiKeyRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
value()
Specifies a value of the API key.
|
requestOverrideConfigcopypublic String description()
The description of the ApiKey.
public Boolean enabled()
Specifies whether the ApiKey can be used by callers.
public Boolean generateDistinctId()
Specifies whether (true) or not (false) the key identifier is distinct from the created
API key value.
true) or not (false) the key identifier is distinct from the
created API key value.public String value()
Specifies a value of the API key.
public List<StageKey> stageKeys()
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String customerId()
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
public CreateApiKeyRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<CreateApiKeyRequest.Builder,CreateApiKeyRequest>toBuilder in class APIGatewayRequestpublic static CreateApiKeyRequest.Builder builder()
public static Class<? extends CreateApiKeyRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequestSdkRequest. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class) method will
again be available.getValueForField in class SdkRequestfieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.