Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class InstanceBlockDeviceMapping

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

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

Describes how block devices are mapped on an Amazon EC2 instance.

See Also:
Serialized Form

Constructor Summary
InstanceBlockDeviceMapping()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDeviceName()
          The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.
 EbsInstanceBlockDevice getEbs()
          The optional EBS device mapped to the specified device name.
 int hashCode()
           
 void setDeviceName(java.lang.String deviceName)
          The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.
 void setEbs(EbsInstanceBlockDevice ebs)
          The optional EBS device mapped to the specified device name.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceBlockDeviceMapping withDeviceName(java.lang.String deviceName)
          The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.
 InstanceBlockDeviceMapping withEbs(EbsInstanceBlockDevice ebs)
          The optional EBS device mapped to the specified device name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceBlockDeviceMapping

public InstanceBlockDeviceMapping()
Method Detail

getDeviceName

public java.lang.String getDeviceName()
The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.

Returns:
The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.

setDeviceName

public void setDeviceName(java.lang.String deviceName)
The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.

Parameters:
deviceName - The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.

withDeviceName

public InstanceBlockDeviceMapping withDeviceName(java.lang.String deviceName)
The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.

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

Parameters:
deviceName - The device name (e.g., /dev/sdh) at which the block device is exposed on the instance.

getEbs

public EbsInstanceBlockDevice getEbs()
The optional EBS device mapped to the specified device name.

Returns:
The optional EBS device mapped to the specified device name.

setEbs

public void setEbs(EbsInstanceBlockDevice ebs)
The optional EBS device mapped to the specified device name.

Parameters:
ebs - The optional EBS device mapped to the specified device name.

withEbs

public InstanceBlockDeviceMapping withEbs(EbsInstanceBlockDevice ebs)
The optional EBS device mapped to the specified device name.

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

Parameters:
ebs - The optional EBS device mapped to the specified device name.

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.