com.amazonaws.services.ec2.model
Class ModifyVolumeAttributeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ModifyVolumeAttributeRequest
All Implemented Interfaces:
DryRunSupportedRequest<ModifyVolumeAttributeRequest>, java.io.Serializable

public class ModifyVolumeAttributeRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<ModifyVolumeAttributeRequest>

Container for the parameters to the 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.

See Also:
AmazonEC2.modifyVolumeAttribute(ModifyVolumeAttributeRequest), Serialized Form

Constructor Summary
ModifyVolumeAttributeRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModifyVolumeAttributeRequest

public ModifyVolumeAttributeRequest()
Method Detail

getVolumeId

public java.lang.String getVolumeId()
The ID of the volume.

Returns:
The ID of the volume.

setVolumeId

public void setVolumeId(java.lang.String volumeId)
The ID of the volume.

Parameters:
volumeId - The ID of the volume.

withVolumeId

public ModifyVolumeAttributeRequest withVolumeId(java.lang.String volumeId)
The ID of the volume.

Returns a reference to this object so that method calls can be chained together.

Parameters:
volumeId - The ID of the volume.
Returns:
A reference to this updated object so that method calls can be chained together.

isAutoEnableIO

public java.lang.Boolean isAutoEnableIO()
Indicates whether the volume should be auto-enabled for I/O operations.

Returns:
Indicates whether the volume should be auto-enabled for I/O operations.

setAutoEnableIO

public void setAutoEnableIO(java.lang.Boolean autoEnableIO)
Indicates whether the volume should be auto-enabled for I/O operations.

Parameters:
autoEnableIO - Indicates whether the volume should be auto-enabled for I/O operations.

withAutoEnableIO

public ModifyVolumeAttributeRequest withAutoEnableIO(java.lang.Boolean autoEnableIO)
Indicates whether the volume should be auto-enabled for I/O operations.

Returns a reference to this object so that method calls can be chained together.

Parameters:
autoEnableIO - Indicates whether the volume should be auto-enabled for I/O operations.
Returns:
A reference to this updated object so that method calls can be chained together.

getAutoEnableIO

public java.lang.Boolean getAutoEnableIO()
Indicates whether the volume should be auto-enabled for I/O operations.

Returns:
Indicates whether the volume should be auto-enabled for I/O operations.

getDryRunRequest

public Request<ModifyVolumeAttributeRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<ModifyVolumeAttributeRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.