@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 |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateApiKeyRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateApiKeyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCustomerId()
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services 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.
|
Map<String,String> |
getTags()
The key-value map of strings.
|
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 Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services 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 |
setTags(Map<String,String> tags)
The key-value map of strings.
|
void |
setValue(String value)
Specifies a value of the API key.
|
String |
toString()
Returns a string representation of this object.
|
CreateApiKeyRequest |
withCustomerId(String customerId)
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services 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 |
withTags(Map<String,String> tags)
The key-value map of strings.
|
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 String getName()
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. This parameter is deprecated and should not be used.
generateDistinctId
- Specifies whether (true
) or not (false
) the key identifier is distinct from the
created API key value. This parameter is deprecated and should not be used.public Boolean getGenerateDistinctId()
Specifies whether (true
) or not (false
) the key identifier is distinct from the created
API key value. This parameter is deprecated and should not be used.
true
) or not (false
) the key identifier is distinct from the
created API key value. This parameter is deprecated and should not be used.public CreateApiKeyRequest withGenerateDistinctId(Boolean generateDistinctId)
Specifies whether (true
) or not (false
) the key identifier is distinct from the created
API key value. This parameter is deprecated and should not be used.
generateDistinctId
- Specifies whether (true
) or not (false
) the key identifier is distinct from the
created API key value. This parameter is deprecated and should not be used.public Boolean isGenerateDistinctId()
Specifies whether (true
) or not (false
) the key identifier is distinct from the created
API key value. This parameter is deprecated and should not be used.
true
) or not (false
) the key identifier is distinct from the
created API key value. This parameter is deprecated and should not be used.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 Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
customerId
- An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS
Marketplace.public String getCustomerId()
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
public CreateApiKeyRequest withCustomerId(String customerId)
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
customerId
- An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS
Marketplace.public Map<String,String> getTags()
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
aws:
. The tag value can be up to 256 characters.public void setTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:
. The tag value can be up to 256 characters.public CreateApiKeyRequest withTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:
. The tag value can be up to 256 characters.public CreateApiKeyRequest addTagsEntry(String key, String value)
public CreateApiKeyRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateApiKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()