public class CreateApiKeyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Request to create an ApiKey resource.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
The description of the ApiKey.
|
private java.lang.Boolean |
enabled
Specifies whether the ApiKey can be used by callers.
|
private java.lang.String |
name
The name of the ApiKey.
|
private java.util.List<StageKey> |
stageKeys
Specifies whether the ApiKey can be used by callers.
|
NOOP
Constructor and Description |
---|
CreateApiKeyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateApiKeyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
The description of the ApiKey.
|
java.lang.Boolean |
getEnabled()
Specifies whether the ApiKey can be used by callers.
|
java.lang.String |
getName()
The name of the ApiKey.
|
java.util.List<StageKey> |
getStageKeys()
Specifies whether the ApiKey can be used by callers.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Specifies whether the ApiKey can be used by callers.
|
void |
setDescription(java.lang.String description)
The description of the ApiKey.
|
void |
setEnabled(java.lang.Boolean enabled)
Specifies whether the ApiKey can be used by callers.
|
void |
setName(java.lang.String name)
The name of the ApiKey.
|
void |
setStageKeys(java.util.Collection<StageKey> stageKeys)
Specifies whether the ApiKey can be used by callers.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateApiKeyRequest |
withDescription(java.lang.String description)
The description of the ApiKey.
|
CreateApiKeyRequest |
withEnabled(java.lang.Boolean enabled)
Specifies whether the ApiKey can be used by callers.
|
CreateApiKeyRequest |
withName(java.lang.String name)
The name of the ApiKey.
|
CreateApiKeyRequest |
withStageKeys(java.util.Collection<StageKey> stageKeys)
Specifies whether the ApiKey can be used by callers.
|
CreateApiKeyRequest |
withStageKeys(StageKey... stageKeys)
Specifies whether the ApiKey can be used by callers.
|
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
private java.lang.String name
The name of the ApiKey.
private java.lang.String description
The description of the ApiKey.
private java.lang.Boolean enabled
Specifies whether the ApiKey can be used by callers.
public void setName(java.lang.String name)
The name of the ApiKey.
name
- The name of the ApiKey.public CreateApiKeyRequest withName(java.lang.String name)
The name of the ApiKey.
name
- The name of the ApiKey.public void setDescription(java.lang.String description)
The description of the ApiKey.
description
- The description of the ApiKey.public java.lang.String getDescription()
The description of the ApiKey.
public CreateApiKeyRequest withDescription(java.lang.String description)
The description of the ApiKey.
description
- The description of the ApiKey.public void setEnabled(java.lang.Boolean enabled)
Specifies whether the ApiKey can be used by callers.
enabled
- Specifies whether the ApiKey can be used by callers.public java.lang.Boolean getEnabled()
Specifies whether the ApiKey can be used by callers.
public CreateApiKeyRequest withEnabled(java.lang.Boolean enabled)
Specifies whether the ApiKey can be used by callers.
enabled
- Specifies whether the ApiKey can be used by callers.public java.lang.Boolean isEnabled()
Specifies whether the ApiKey can be used by callers.
public java.util.List<StageKey> getStageKeys()
Specifies whether the ApiKey can be used by callers.
public void setStageKeys(java.util.Collection<StageKey> stageKeys)
Specifies whether the ApiKey can be used by callers.
stageKeys
- Specifies whether the ApiKey can be used by callers.public CreateApiKeyRequest withStageKeys(StageKey... stageKeys)
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)
or
withStageKeys(java.util.Collection)
if you want to override the
existing values.
stageKeys
- Specifies whether the ApiKey can be used by callers.public CreateApiKeyRequest withStageKeys(java.util.Collection<StageKey> stageKeys)
Specifies whether the ApiKey can be used by callers.
stageKeys
- Specifies whether the ApiKey can be used by callers.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateApiKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()