@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateApiKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request to create an ApiKey resource.
NOOP
Constructor and Description |
---|
CreateApiKeyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateApiKeyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCustomerId()
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
|
String |
getDescription()
The description of the ApiKey.
|
Boolean |
getEnabled()
Specifies whether the ApiKey can be used by callers.
|
Boolean |
getGenerateDistinctId()
Specifies whether (
true ) or not (false ) the key identifier is distinct from the created
API key value. |
String |
getName()
The name of the ApiKey.
|
List<StageKey> |
getStageKeys()
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
String |
getValue()
Specifies a value of the API key.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether the ApiKey can be used by callers.
|
Boolean |
isGenerateDistinctId()
Specifies whether (
true ) or not (false ) the key identifier is distinct from the created
API key value. |
void |
setCustomerId(String customerId)
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
|
void |
setDescription(String description)
The description of the ApiKey.
|
void |
setEnabled(Boolean enabled)
Specifies whether the ApiKey can be used by callers.
|
void |
setGenerateDistinctId(Boolean generateDistinctId)
Specifies whether (
true ) or not (false ) the key identifier is distinct from the created
API key value. |
void |
setName(String name)
The name of the ApiKey.
|
void |
setStageKeys(Collection<StageKey> stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
void |
setValue(String value)
Specifies a value of the API key.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateApiKeyRequest |
withCustomerId(String customerId)
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
|
CreateApiKeyRequest |
withDescription(String description)
The description of the ApiKey.
|
CreateApiKeyRequest |
withEnabled(Boolean enabled)
Specifies whether the ApiKey can be used by callers.
|
CreateApiKeyRequest |
withGenerateDistinctId(Boolean generateDistinctId)
Specifies whether (
true ) or not (false ) the key identifier is distinct from the created
API key value. |
CreateApiKeyRequest |
withName(String name)
The name of the ApiKey.
|
CreateApiKeyRequest |
withStageKeys(Collection<StageKey> stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
CreateApiKeyRequest |
withStageKeys(StageKey... stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
CreateApiKeyRequest |
withValue(String value)
Specifies a value of the API key.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the ApiKey.
name
- The name of the ApiKey.public CreateApiKeyRequest withName(String name)
The name of the ApiKey.
name
- The name of the ApiKey.public void setDescription(String description)
The description of the ApiKey.
description
- The description of the ApiKey.public String getDescription()
The description of the ApiKey.
public CreateApiKeyRequest withDescription(String description)
The description of the ApiKey.
description
- The description of the ApiKey.public void setEnabled(Boolean enabled)
Specifies whether the ApiKey can be used by callers.
enabled
- Specifies whether the ApiKey can be used by callers.public Boolean getEnabled()
Specifies whether the ApiKey can be used by callers.
public CreateApiKeyRequest withEnabled(Boolean enabled)
Specifies whether the ApiKey can be used by callers.
enabled
- Specifies whether the ApiKey can be used by callers.public Boolean isEnabled()
Specifies whether the ApiKey can be used by callers.
public void setGenerateDistinctId(Boolean generateDistinctId)
Specifies whether (true
) or not (false
) the key identifier is distinct from the created
API key value.
generateDistinctId
- Specifies whether (true
) or not (false
) the key identifier is distinct from the
created API key value.public Boolean getGenerateDistinctId()
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 CreateApiKeyRequest withGenerateDistinctId(Boolean generateDistinctId)
Specifies whether (true
) or not (false
) the key identifier is distinct from the created
API key value.
generateDistinctId
- Specifies whether (true
) or not (false
) the key identifier is distinct from the
created API key value.public Boolean isGenerateDistinctId()
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 void setValue(String value)
Specifies a value of the API key.
value
- Specifies a value of the API key.public String getValue()
Specifies a value of the API key.
public CreateApiKeyRequest withValue(String value)
Specifies a value of the API key.
value
- Specifies a value of the API key.public List<StageKey> getStageKeys()
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
public void setStageKeys(Collection<StageKey> stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
stageKeys
- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.public CreateApiKeyRequest withStageKeys(StageKey... stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
NOTE: This method appends the values to the existing list (if any). Use
setStageKeys(java.util.Collection)
or withStageKeys(java.util.Collection)
if you want to
override the existing values.
stageKeys
- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.public CreateApiKeyRequest withStageKeys(Collection<StageKey> stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
stageKeys
- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.public void setCustomerId(String customerId)
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
customerId
- An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.public String getCustomerId()
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
public CreateApiKeyRequest withCustomerId(String customerId)
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
customerId
- An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.public String toString()
toString
in class Object
Object.toString()
public CreateApiKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.