Class BlockDeviceMapping
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a block device mapping.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The device name exposed to the EC2 instance (for example,/dev/sdh
orxvdh
).getEbs()
The information about the Amazon EBS volume.Suppresses a device mapping.The name of the virtual device (for example,ephemeral0
).int
hashCode()
Suppresses a device mapping.void
setDeviceName
(String deviceName) The device name exposed to the EC2 instance (for example,/dev/sdh
orxvdh
).void
The information about the Amazon EBS volume.void
setNoDevice
(Boolean noDevice) Suppresses a device mapping.void
setVirtualName
(String virtualName) The name of the virtual device (for example,ephemeral0
).toString()
Returns a string representation of this object; useful for testing and debugging.withDeviceName
(String deviceName) The device name exposed to the EC2 instance (for example,/dev/sdh
orxvdh
).The information about the Amazon EBS volume.withNoDevice
(Boolean noDevice) Suppresses a device mapping.withVirtualName
(String virtualName) The name of the virtual device (for example,ephemeral0
).
-
Constructor Details
-
BlockDeviceMapping
public BlockDeviceMapping()
-
-
Method Details
-
setVirtualName
The name of the virtual device (for example,
ephemeral0
).- Parameters:
virtualName
- The name of the virtual device (for example,ephemeral0
).
-
getVirtualName
The name of the virtual device (for example,
ephemeral0
).- Returns:
- The name of the virtual device (for example,
ephemeral0
).
-
withVirtualName
The name of the virtual device (for example,
ephemeral0
).- Parameters:
virtualName
- The name of the virtual device (for example,ephemeral0
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceName
The device name exposed to the EC2 instance (for example,
/dev/sdh
orxvdh
).- Parameters:
deviceName
- The device name exposed to the EC2 instance (for example,/dev/sdh
orxvdh
).
-
getDeviceName
The device name exposed to the EC2 instance (for example,
/dev/sdh
orxvdh
).- Returns:
- The device name exposed to the EC2 instance (for example,
/dev/sdh
orxvdh
).
-
withDeviceName
The device name exposed to the EC2 instance (for example,
/dev/sdh
orxvdh
).- Parameters:
deviceName
- The device name exposed to the EC2 instance (for example,/dev/sdh
orxvdh
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbs
The information about the Amazon EBS volume.
- Parameters:
ebs
- The information about the Amazon EBS volume.
-
getEbs
The information about the Amazon EBS volume.
- Returns:
- The information about the Amazon EBS volume.
-
withEbs
The information about the Amazon EBS volume.
- Parameters:
ebs
- The information about the Amazon EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNoDevice
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
- Parameters:
noDevice
- Suppresses a device mapping.If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
-
getNoDevice
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
- Returns:
- Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
-
withNoDevice
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
- Parameters:
noDevice
- Suppresses a device mapping.If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isNoDevice
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
- Returns:
- Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-