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() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the ApiKey.
|
Boolean |
getEnabled()
Specifies whether the ApiKey can be used by callers.
|
String |
getName()
The name of the ApiKey.
|
List<StageKey> |
getStageKeys()
Specifies whether the ApiKey can be used by callers.
|
int |
hashCode() |
Boolean |
isEnabled()
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 |
setName(String name)
The name of the ApiKey.
|
void |
setStageKeys(Collection<StageKey> stageKeys)
Specifies whether the ApiKey can be used by callers.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateApiKeyRequest |
withDescription(String description)
The description of the ApiKey.
|
CreateApiKeyRequest |
withEnabled(Boolean enabled)
Specifies whether the ApiKey can be used by callers.
|
CreateApiKeyRequest |
withName(String name)
The name of the ApiKey.
|
CreateApiKeyRequest |
withStageKeys(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
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 List<StageKey> getStageKeys()
Specifies whether the ApiKey can be used by callers.
public void setStageKeys(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(Collection<StageKey> stageKeys)
Specifies whether the ApiKey can be used by callers.
stageKeys
- Specifies whether the ApiKey can be used by callers.public String toString()
toString
in class Object
Object.toString()
public CreateApiKeyRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.