Package com.amazonaws.services.ec2.model
Class InstanceBlockDeviceMapping
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceBlockDeviceMapping
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceBlockDeviceMapping extends Object implements Serializable, Cloneable
Describes a block device mapping.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceBlockDeviceMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceBlockDeviceMapping
clone()
boolean
equals(Object obj)
String
getDeviceName()
The device name exposed to the instance (for example,/dev/sdh
orxvdh
).EbsInstanceBlockDevice
getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.int
hashCode()
void
setDeviceName(String deviceName)
The device name exposed to the instance (for example,/dev/sdh
orxvdh
).void
setEbs(EbsInstanceBlockDevice ebs)
Parameters used to automatically set up 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
orxvdh
).InstanceBlockDeviceMapping
withEbs(EbsInstanceBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
-
-
-
Method Detail
-
setDeviceName
public void setDeviceName(String deviceName)
The device name exposed to the instance (for example,
/dev/sdh
orxvdh
).- Parameters:
deviceName
- The device name exposed to the instance (for example,/dev/sdh
orxvdh
).
-
getDeviceName
public String getDeviceName()
The device name exposed to the instance (for example,
/dev/sdh
orxvdh
).- Returns:
- The device name exposed to the instance (for example,
/dev/sdh
orxvdh
).
-
withDeviceName
public InstanceBlockDeviceMapping withDeviceName(String deviceName)
The device name exposed to the instance (for example,
/dev/sdh
orxvdh
).- Parameters:
deviceName
- The device name exposed to the instance (for example,/dev/sdh
orxvdh
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbs
public void setEbs(EbsInstanceBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
- Parameters:
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.
-
getEbs
public EbsInstanceBlockDevice getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.
- Returns:
- Parameters used to automatically set up EBS volumes when the instance is launched.
-
withEbs
public InstanceBlockDeviceMapping withEbs(EbsInstanceBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
- Parameters:
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceBlockDeviceMapping clone()
-
-