com.amazonaws.services.ec2.model
Class InstanceBlockDeviceMapping

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

public class InstanceBlockDeviceMapping
extends Object
implements Serializable

Describes a block device mapping.

See Also:
Serialized Form

Constructor Summary
InstanceBlockDeviceMapping()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDeviceName()
          The device name exposed to the instance (for example, /dev/sdh).
 EbsInstanceBlockDevice getEbs()
          Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
 int hashCode()
           
 void setDeviceName(String deviceName)
          The device name exposed to the instance (for example, /dev/sdh).
 void setEbs(EbsInstanceBlockDevice ebs)
          Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceBlockDeviceMapping withDeviceName(String deviceName)
          The device name exposed to the instance (for example, /dev/sdh).
 InstanceBlockDeviceMapping withEbs(EbsInstanceBlockDevice ebs)
          Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceBlockDeviceMapping

public InstanceBlockDeviceMapping()
Method Detail

getDeviceName

public 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(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 InstanceBlockDeviceMapping withDeviceName(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 EbsInstanceBlockDevice 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(EbsInstanceBlockDevice 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 InstanceBlockDeviceMapping withEbs(EbsInstanceBlockDevice 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.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.