@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnableImageDeprecationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<EnableImageDeprecationRequest>
NOOP
Constructor and Description |
---|
EnableImageDeprecationRequest() |
Modifier and Type | Method and Description |
---|---|
EnableImageDeprecationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Date |
getDeprecateAt()
The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ.
|
Request<EnableImageDeprecationRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImageId()
The ID of the AMI.
|
int |
hashCode() |
void |
setDeprecateAt(Date deprecateAt)
The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ.
|
void |
setImageId(String imageId)
The ID of the AMI.
|
String |
toString()
Returns a string representation of this object.
|
EnableImageDeprecationRequest |
withDeprecateAt(Date deprecateAt)
The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ.
|
EnableImageDeprecationRequest |
withImageId(String imageId)
The ID of the AMI.
|
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 setImageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public String getImageId()
The ID of the AMI.
public EnableImageDeprecationRequest withImageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public void setDeprecateAt(Date deprecateAt)
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now, except
for public AMIs, where the upper limit is 2 years from the creation date.
deprecateAt
- The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon
EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now,
except for public AMIs, where the upper limit is 2 years from the creation date.
public Date getDeprecateAt()
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now, except
for public AMIs, where the upper limit is 2 years from the creation date.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now,
except for public AMIs, where the upper limit is 2 years from the creation date.
public EnableImageDeprecationRequest withDeprecateAt(Date deprecateAt)
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now, except
for public AMIs, where the upper limit is 2 years from the creation date.
deprecateAt
- The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon
EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now,
except for public AMIs, where the upper limit is 2 years from the creation date.
public Request<EnableImageDeprecationRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<EnableImageDeprecationRequest>
public String toString()
toString
in class Object
Object.toString()
public EnableImageDeprecationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()