com.amazonaws.services.ec2.model
Class BlockDeviceMapping

java.lang.Object
  extended by com.amazonaws.services.ec2.model.BlockDeviceMapping
All Implemented Interfaces:
java.io.Serializable

public class BlockDeviceMapping
extends java.lang.Object
implements java.io.Serializable

Describes a block device mapping.

See Also:
Serialized Form

Constructor Summary
BlockDeviceMapping()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDeviceName()
          The device name exposed to the instance (for example, /dev/sdh).
 EbsBlockDevice getEbs()
          Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
 java.lang.String getNoDevice()
          Suppresses the specified device included in the block device mapping of the AMI.
 java.lang.String getVirtualName()
          The virtual device name.
 int hashCode()
           
 void setDeviceName(java.lang.String deviceName)
          The device name exposed to the instance (for example, /dev/sdh).
 void setEbs(EbsBlockDevice ebs)
          Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
 void setNoDevice(java.lang.String noDevice)
          Suppresses the specified device included in the block device mapping of the AMI.
 void setVirtualName(java.lang.String virtualName)
          The virtual device name.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BlockDeviceMapping withDeviceName(java.lang.String deviceName)
          The device name exposed to the instance (for example, /dev/sdh).
 BlockDeviceMapping withEbs(EbsBlockDevice ebs)
          Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
 BlockDeviceMapping withNoDevice(java.lang.String noDevice)
          Suppresses the specified device included in the block device mapping of the AMI.
 BlockDeviceMapping withVirtualName(java.lang.String virtualName)
          The virtual device name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockDeviceMapping

public BlockDeviceMapping()
Method Detail

getVirtualName

public java.lang.String getVirtualName()
The virtual device name.

Returns:
The virtual device name.

setVirtualName

public void setVirtualName(java.lang.String virtualName)
The virtual device name.

Parameters:
virtualName - The virtual device name.

withVirtualName

public BlockDeviceMapping withVirtualName(java.lang.String virtualName)
The virtual device name.

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

Parameters:
virtualName - The virtual device name.
Returns:
A reference to this updated object so that method calls can be chained together.

getDeviceName

public java.lang.String getDeviceName()
The device name exposed to the instance (for example, /dev/sdh).

Returns:
The device name exposed to the instance (for example, /dev/sdh).

setDeviceName

public void setDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example, /dev/sdh).

Parameters:
deviceName - The device name exposed to the instance (for example, /dev/sdh).

withDeviceName

public BlockDeviceMapping withDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example, /dev/sdh).

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

Parameters:
deviceName - The device name exposed to the instance (for example, /dev/sdh).
Returns:
A reference to this updated object so that method calls can be chained together.

getEbs

public EbsBlockDevice getEbs()
Parameters used to automatically set up Amazon EBS volumes when the instance is launched.

Returns:
Parameters used to automatically set up Amazon EBS volumes when the instance is launched.

setEbs

public void setEbs(EbsBlockDevice ebs)
Parameters used to automatically set up Amazon EBS volumes when the instance is launched.

Parameters:
ebs - Parameters used to automatically set up Amazon EBS volumes when the instance is launched.

withEbs

public BlockDeviceMapping withEbs(EbsBlockDevice ebs)
Parameters used to automatically set up Amazon EBS volumes when the instance is launched.

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

Parameters:
ebs - Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
Returns:
A reference to this updated object so that method calls can be chained together.

getNoDevice

public java.lang.String getNoDevice()
Suppresses the specified device included in the block device mapping of the AMI.

Returns:
Suppresses the specified device included in the block device mapping of the AMI.

setNoDevice

public void setNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the block device mapping of the AMI.

Parameters:
noDevice - Suppresses the specified device included in the block device mapping of the AMI.

withNoDevice

public BlockDeviceMapping withNoDevice(java.lang.String noDevice)
Suppresses the specified device included in the block device mapping of the AMI.

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

Parameters:
noDevice - Suppresses the specified device included in the block device mapping of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

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.