@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnableImageDeregistrationProtectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<EnableImageDeregistrationProtectionRequest>
NOOP
Constructor and Description |
---|
EnableImageDeregistrationProtectionRequest() |
Modifier and Type | Method and Description |
---|---|
EnableImageDeregistrationProtectionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<EnableImageDeregistrationProtectionRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImageId()
The ID of the AMI.
|
Boolean |
getWithCooldown()
If
true , enforces deregistration protection for 24 hours after deregistration protection is
disabled. |
int |
hashCode() |
Boolean |
isWithCooldown()
If
true , enforces deregistration protection for 24 hours after deregistration protection is
disabled. |
void |
setImageId(String imageId)
The ID of the AMI.
|
void |
setWithCooldown(Boolean withCooldown)
If
true , enforces deregistration protection for 24 hours after deregistration protection is
disabled. |
String |
toString()
Returns a string representation of this object.
|
EnableImageDeregistrationProtectionRequest |
withImageId(String imageId)
The ID of the AMI.
|
EnableImageDeregistrationProtectionRequest |
withWithCooldown(Boolean withCooldown)
If
true , enforces deregistration protection for 24 hours after deregistration protection is
disabled. |
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 EnableImageDeregistrationProtectionRequest()
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 EnableImageDeregistrationProtectionRequest withImageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public void setWithCooldown(Boolean withCooldown)
If true
, enforces deregistration protection for 24 hours after deregistration protection is
disabled.
withCooldown
- If true
, enforces deregistration protection for 24 hours after deregistration protection is
disabled.public Boolean getWithCooldown()
If true
, enforces deregistration protection for 24 hours after deregistration protection is
disabled.
true
, enforces deregistration protection for 24 hours after deregistration protection is
disabled.public EnableImageDeregistrationProtectionRequest withWithCooldown(Boolean withCooldown)
If true
, enforces deregistration protection for 24 hours after deregistration protection is
disabled.
withCooldown
- If true
, enforces deregistration protection for 24 hours after deregistration protection is
disabled.public Boolean isWithCooldown()
If true
, enforces deregistration protection for 24 hours after deregistration protection is
disabled.
true
, enforces deregistration protection for 24 hours after deregistration protection is
disabled.public Request<EnableImageDeregistrationProtectionRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<EnableImageDeregistrationProtectionRequest>
public String toString()
toString
in class Object
Object.toString()
public EnableImageDeregistrationProtectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()