Class CreateApiKeyRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
Request to create an ApiKey resource.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The description of the ApiKey.Specifies whether the ApiKey can be used by callers.getName()
The name of the ApiKey.Specifies whether the ApiKey can be used by callers.int
hashCode()
Specifies whether the ApiKey can be used by callers.void
setDescription
(String description) The description of the ApiKey.void
setEnabled
(Boolean enabled) Specifies whether the ApiKey can be used by callers.void
The name of the ApiKey.void
setStageKeys
(Collection<StageKey> stageKeys) Specifies whether the ApiKey can be used by callers.toString()
Returns a string representation of this object; useful for testing and debugging.withDescription
(String description) The description of the ApiKey.withEnabled
(Boolean enabled) Specifies whether the ApiKey can be used by callers.The name of the ApiKey.withStageKeys
(StageKey... stageKeys) Specifies whether the ApiKey can be used by callers.withStageKeys
(Collection<StageKey> stageKeys) Specifies whether the ApiKey can be used by callers.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateApiKeyRequest
public CreateApiKeyRequest()
-
-
Method Details
-
setName
The name of the ApiKey.
- Parameters:
name
- The name of the ApiKey.
-
getName
The name of the ApiKey.
- Returns:
- The name of the ApiKey.
-
withName
The name of the ApiKey.
- Parameters:
name
- The name of the ApiKey.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
The description of the ApiKey.
- Parameters:
description
- The description of the ApiKey.
-
getDescription
The description of the ApiKey.
- Returns:
- The description of the ApiKey.
-
withDescription
The description of the ApiKey.
- Parameters:
description
- The description of the ApiKey.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnabled
Specifies whether the ApiKey can be used by callers.
- Parameters:
enabled
- Specifies whether the ApiKey can be used by callers.
-
getEnabled
Specifies whether the ApiKey can be used by callers.
- Returns:
- Specifies whether the ApiKey can be used by callers.
-
withEnabled
Specifies whether the ApiKey can be used by callers.
- Parameters:
enabled
- Specifies whether the ApiKey can be used by callers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnabled
Specifies whether the ApiKey can be used by callers.
- Returns:
- Specifies whether the ApiKey can be used by callers.
-
getStageKeys
Specifies whether the ApiKey can be used by callers.
- Returns:
- Specifies whether the ApiKey can be used by callers.
-
setStageKeys
Specifies whether the ApiKey can be used by callers.
- Parameters:
stageKeys
- Specifies whether the ApiKey can be used by callers.
-
withStageKeys
Specifies whether the ApiKey can be used by callers.
NOTE: This method appends the values to the existing list (if any). Use
setStageKeys(java.util.Collection)
orwithStageKeys(java.util.Collection)
if you want to override the existing values.- Parameters:
stageKeys
- Specifies whether the ApiKey can be used by callers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withStageKeys
Specifies whether the ApiKey can be used by callers.
- Parameters:
stageKeys
- Specifies whether the ApiKey can be used by callers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-