@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateKeyRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateKeyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
Updates the description for the API key resource.
|
Date |
getExpireTime()
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
Boolean |
getForceUpdate()
The boolean flag to be included for updating
ExpireTime or Restrictions details. |
String |
getKeyName()
The name of the API key resource to update.
|
Boolean |
getNoExpiry()
Whether the API key should expire.
|
ApiKeyRestrictions |
getRestrictions()
Updates the API key restrictions for the API key resource.
|
int |
hashCode() |
Boolean |
isForceUpdate()
The boolean flag to be included for updating
ExpireTime or Restrictions details. |
Boolean |
isNoExpiry()
Whether the API key should expire.
|
void |
setDescription(String description)
Updates the description for the API key resource.
|
void |
setExpireTime(Date expireTime)
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
void |
setForceUpdate(Boolean forceUpdate)
The boolean flag to be included for updating
ExpireTime or Restrictions details. |
void |
setKeyName(String keyName)
The name of the API key resource to update.
|
void |
setNoExpiry(Boolean noExpiry)
Whether the API key should expire.
|
void |
setRestrictions(ApiKeyRestrictions restrictions)
Updates the API key restrictions for the API key resource.
|
String |
toString()
Returns a string representation of this object.
|
UpdateKeyRequest |
withDescription(String description)
Updates the description for the API key resource.
|
UpdateKeyRequest |
withExpireTime(Date expireTime)
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ . |
UpdateKeyRequest |
withForceUpdate(Boolean forceUpdate)
The boolean flag to be included for updating
ExpireTime or Restrictions details. |
UpdateKeyRequest |
withKeyName(String keyName)
The name of the API key resource to update.
|
UpdateKeyRequest |
withNoExpiry(Boolean noExpiry)
Whether the API key should expire.
|
UpdateKeyRequest |
withRestrictions(ApiKeyRestrictions restrictions)
Updates the API key restrictions for the API key resource.
|
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 setKeyName(String keyName)
The name of the API key resource to update.
keyName
- The name of the API key resource to update.public String getKeyName()
The name of the API key resource to update.
public UpdateKeyRequest withKeyName(String keyName)
The name of the API key resource to update.
keyName
- The name of the API key resource to update.public void setDescription(String description)
Updates the description for the API key resource.
description
- Updates the description for the API key resource.public String getDescription()
Updates the description for the API key resource.
public UpdateKeyRequest withDescription(String description)
Updates the description for the API key resource.
description
- Updates the description for the API key resource.public void setExpireTime(Date expireTime)
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
expireTime
- Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public Date getExpireTime()
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
YYYY-MM-DDThh:mm:ss.sssZ
.public UpdateKeyRequest withExpireTime(Date expireTime)
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
expireTime
- Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.public void setNoExpiry(Boolean noExpiry)
Whether the API key should expire. Set to true
to set the API key to have no expiration time.
noExpiry
- Whether the API key should expire. Set to true
to set the API key to have no expiration time.public Boolean getNoExpiry()
Whether the API key should expire. Set to true
to set the API key to have no expiration time.
true
to set the API key to have no expiration
time.public UpdateKeyRequest withNoExpiry(Boolean noExpiry)
Whether the API key should expire. Set to true
to set the API key to have no expiration time.
noExpiry
- Whether the API key should expire. Set to true
to set the API key to have no expiration time.public Boolean isNoExpiry()
Whether the API key should expire. Set to true
to set the API key to have no expiration time.
true
to set the API key to have no expiration
time.public void setForceUpdate(Boolean forceUpdate)
The boolean flag to be included for updating ExpireTime
or Restrictions
details.
Must be set to true
to update an API key resource that has been used in the past 7 days.
False
if force update is not preferred
Default value: False
forceUpdate
- The boolean flag to be included for updating ExpireTime
or Restrictions
details.
Must be set to true
to update an API key resource that has been used in the past 7 days.
False
if force update is not preferred
Default value: False
public Boolean getForceUpdate()
The boolean flag to be included for updating ExpireTime
or Restrictions
details.
Must be set to true
to update an API key resource that has been used in the past 7 days.
False
if force update is not preferred
Default value: False
ExpireTime
or Restrictions
details.
Must be set to true
to update an API key resource that has been used in the past 7 days.
False
if force update is not preferred
Default value: False
public UpdateKeyRequest withForceUpdate(Boolean forceUpdate)
The boolean flag to be included for updating ExpireTime
or Restrictions
details.
Must be set to true
to update an API key resource that has been used in the past 7 days.
False
if force update is not preferred
Default value: False
forceUpdate
- The boolean flag to be included for updating ExpireTime
or Restrictions
details.
Must be set to true
to update an API key resource that has been used in the past 7 days.
False
if force update is not preferred
Default value: False
public Boolean isForceUpdate()
The boolean flag to be included for updating ExpireTime
or Restrictions
details.
Must be set to true
to update an API key resource that has been used in the past 7 days.
False
if force update is not preferred
Default value: False
ExpireTime
or Restrictions
details.
Must be set to true
to update an API key resource that has been used in the past 7 days.
False
if force update is not preferred
Default value: False
public void setRestrictions(ApiKeyRestrictions restrictions)
Updates the API key restrictions for the API key resource.
restrictions
- Updates the API key restrictions for the API key resource.public ApiKeyRestrictions getRestrictions()
Updates the API key restrictions for the API key resource.
public UpdateKeyRequest withRestrictions(ApiKeyRestrictions restrictions)
Updates the API key restrictions for the API key resource.
restrictions
- Updates the API key restrictions for the API key resource.public String toString()
toString
in class Object
Object.toString()
public UpdateKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()