public class ModifyVolumeAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ModifyVolumeAttributeRequest>
ModifyVolumeAttribute operation
.
Modifies a volume attribute.
By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.
You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.
Constructor and Description |
---|
ModifyVolumeAttributeRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getAutoEnableIO()
Indicates whether the volume should be auto-enabled for I/O
operations.
|
Request<ModifyVolumeAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getVolumeId()
The ID of the volume.
|
int |
hashCode() |
java.lang.Boolean |
isAutoEnableIO()
Indicates whether the volume should be auto-enabled for I/O
operations.
|
void |
setAutoEnableIO(java.lang.Boolean autoEnableIO)
Indicates whether the volume should be auto-enabled for I/O
operations.
|
void |
setVolumeId(java.lang.String volumeId)
The ID of the volume.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyVolumeAttributeRequest |
withAutoEnableIO(java.lang.Boolean autoEnableIO)
Indicates whether the volume should be auto-enabled for I/O
operations.
|
ModifyVolumeAttributeRequest |
withVolumeId(java.lang.String volumeId)
The ID of the volume.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId
- The ID of the volume.public ModifyVolumeAttributeRequest withVolumeId(java.lang.String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the volume.public java.lang.Boolean isAutoEnableIO()
public void setAutoEnableIO(java.lang.Boolean autoEnableIO)
autoEnableIO
- Indicates whether the volume should be auto-enabled for I/O
operations.public ModifyVolumeAttributeRequest withAutoEnableIO(java.lang.Boolean autoEnableIO)
Returns a reference to this object so that method calls can be chained together.
autoEnableIO
- Indicates whether the volume should be auto-enabled for I/O
operations.public java.lang.Boolean getAutoEnableIO()
public Request<ModifyVolumeAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyVolumeAttributeRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.