Class BlockDeviceMapping
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.BlockDeviceMapping
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class BlockDeviceMapping extends Object implements Serializable, Cloneable
Describes a block device mapping.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BlockDeviceMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockDeviceMapping
clone()
boolean
equals(Object obj)
String
getDeviceName()
The device name exposed to the EC2 instance (for example,/dev/sdh
orxvdh
).Ebs
getEbs()
The information about the Amazon EBS volume.Boolean
getNoDevice()
Suppresses a device mapping.String
getVirtualName()
The name of the virtual device (for example,ephemeral0
).int
hashCode()
Boolean
isNoDevice()
Suppresses a device mapping.void
setDeviceName(String deviceName)
The device name exposed to the EC2 instance (for example,/dev/sdh
orxvdh
).void
setEbs(Ebs ebs)
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
).String
toString()
Returns a string representation of this object; useful for testing and debugging.BlockDeviceMapping
withDeviceName(String deviceName)
The device name exposed to the EC2 instance (for example,/dev/sdh
orxvdh
).BlockDeviceMapping
withEbs(Ebs ebs)
The information about the Amazon EBS volume.BlockDeviceMapping
withNoDevice(Boolean noDevice)
Suppresses a device mapping.BlockDeviceMapping
withVirtualName(String virtualName)
The name of the virtual device (for example,ephemeral0
).
-
-
-
Method Detail
-
setVirtualName
public void setVirtualName(String virtualName)
The name of the virtual device (for example,
ephemeral0
).- Parameters:
virtualName
- The name of the virtual device (for example,ephemeral0
).
-
getVirtualName
public String getVirtualName()
The name of the virtual device (for example,
ephemeral0
).- Returns:
- The name of the virtual device (for example,
ephemeral0
).
-
withVirtualName
public BlockDeviceMapping withVirtualName(String virtualName)
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
public void setDeviceName(String deviceName)
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
public String 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
public BlockDeviceMapping withDeviceName(String deviceName)
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
public void setEbs(Ebs ebs)
The information about the Amazon EBS volume.
- Parameters:
ebs
- The information about the Amazon EBS volume.
-
getEbs
public Ebs getEbs()
The information about the Amazon EBS volume.
- Returns:
- The information about the Amazon EBS volume.
-
withEbs
public BlockDeviceMapping withEbs(Ebs ebs)
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
public void setNoDevice(Boolean 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.
- 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
public Boolean 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
public BlockDeviceMapping withNoDevice(Boolean 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.
- 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
public Boolean 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
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 BlockDeviceMapping clone()
-
-