public class InstanceBlockDeviceMappingSpecification
extends java.lang.Object
implements java.io.Serializable
Describes a block device mapping entry.
Constructor and Description |
---|
InstanceBlockDeviceMappingSpecification() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeviceName()
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
EbsInstanceBlockDeviceSpecification |
getEbs()
Parameters used to automatically set up EBS volumes when the instance
is launched.
|
java.lang.String |
getNoDevice()
suppress the specified device included in the block device mapping.
|
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 or xvdh ). |
void |
setEbs(EbsInstanceBlockDeviceSpecification ebs)
Parameters used to automatically set up EBS volumes when the instance
is launched.
|
void |
setNoDevice(java.lang.String noDevice)
suppress the specified device included in the block device mapping.
|
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.
|
InstanceBlockDeviceMappingSpecification |
withDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
InstanceBlockDeviceMappingSpecification |
withEbs(EbsInstanceBlockDeviceSpecification ebs)
Parameters used to automatically set up EBS volumes when the instance
is launched.
|
InstanceBlockDeviceMappingSpecification |
withNoDevice(java.lang.String noDevice)
suppress the specified device included in the block device mapping.
|
InstanceBlockDeviceMappingSpecification |
withVirtualName(java.lang.String virtualName)
The virtual device name.
|
public InstanceBlockDeviceMappingSpecification()
public java.lang.String getDeviceName()
/dev/sdh
or xvdh
)./dev/sdh
or xvdh
).public void setDeviceName(java.lang.String deviceName)
/dev/sdh
or xvdh
).deviceName
- The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).public InstanceBlockDeviceMappingSpecification withDeviceName(java.lang.String deviceName)
/dev/sdh
or xvdh
).
Returns a reference to this object so that method calls can be chained together.
deviceName
- The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).public EbsInstanceBlockDeviceSpecification getEbs()
public void setEbs(EbsInstanceBlockDeviceSpecification ebs)
ebs
- Parameters used to automatically set up EBS volumes when the instance
is launched.public InstanceBlockDeviceMappingSpecification withEbs(EbsInstanceBlockDeviceSpecification ebs)
Returns a reference to this object so that method calls can be chained together.
ebs
- Parameters used to automatically set up EBS volumes when the instance
is launched.public java.lang.String getVirtualName()
public void setVirtualName(java.lang.String virtualName)
virtualName
- The virtual device name.public InstanceBlockDeviceMappingSpecification withVirtualName(java.lang.String virtualName)
Returns a reference to this object so that method calls can be chained together.
virtualName
- The virtual device name.public java.lang.String getNoDevice()
public void setNoDevice(java.lang.String noDevice)
noDevice
- suppress the specified device included in the block device mapping.public InstanceBlockDeviceMappingSpecification withNoDevice(java.lang.String noDevice)
Returns a reference to this object so that method calls can be chained together.
noDevice
- suppress the specified device included in the block device mapping.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.