Class ScheduledInstancesBlockDeviceMapping
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ScheduledInstancesBlockDeviceMapping
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ScheduledInstancesBlockDeviceMapping extends Object implements Serializable, Cloneable
Describes a block device mapping for a Scheduled Instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduledInstancesBlockDeviceMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledInstancesBlockDeviceMapping
clone()
boolean
equals(Object obj)
String
getDeviceName()
The device name exposed to the instance (for example,/dev/sdh
orxvdh
).ScheduledInstancesEbs
getEbs()
Parameters used to set up EBS volumes automatically when the instance is launched.String
getNoDevice()
Suppresses the specified device included in the block device mapping of the AMI.String
getVirtualName()
The virtual device name (ephemeral
N).int
hashCode()
void
setDeviceName(String deviceName)
The device name exposed to the instance (for example,/dev/sdh
orxvdh
).void
setEbs(ScheduledInstancesEbs ebs)
Parameters used to set up EBS volumes automatically when the instance is launched.void
setNoDevice(String noDevice)
Suppresses the specified device included in the block device mapping of the AMI.void
setVirtualName(String virtualName)
The virtual device name (ephemeral
N).String
toString()
Returns a string representation of this object; useful for testing and debugging.ScheduledInstancesBlockDeviceMapping
withDeviceName(String deviceName)
The device name exposed to the instance (for example,/dev/sdh
orxvdh
).ScheduledInstancesBlockDeviceMapping
withEbs(ScheduledInstancesEbs ebs)
Parameters used to set up EBS volumes automatically when the instance is launched.ScheduledInstancesBlockDeviceMapping
withNoDevice(String noDevice)
Suppresses the specified device included in the block device mapping of the AMI.ScheduledInstancesBlockDeviceMapping
withVirtualName(String virtualName)
The virtual device name (ephemeral
N).
-
-
-
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 ScheduledInstancesBlockDeviceMapping 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.
-
setNoDevice
public void setNoDevice(String noDevice)
Suppresses the specified device included in the block device mapping of the AMI.
- Parameters:
noDevice
- Suppresses the specified device included in the block device mapping of the AMI.
-
getNoDevice
public String getNoDevice()
Suppresses the specified device included in the block device mapping of the AMI.
- Returns:
- Suppresses the specified device included in the block device mapping of the AMI.
-
withNoDevice
public ScheduledInstancesBlockDeviceMapping withNoDevice(String noDevice)
Suppresses the specified device included in the block device mapping of the AMI.
- Parameters:
noDevice
- Suppresses the specified device included in the block device mapping of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVirtualName
public void setVirtualName(String virtualName)
The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with two available instance store volumes can specify mappings forephemeral0
andephemeral1
.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- Parameters:
virtualName
- The virtual device name (ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with two available instance store volumes can specify mappings forephemeral0
andephemeral1
.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
getVirtualName
public String getVirtualName()
The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with two available instance store volumes can specify mappings forephemeral0
andephemeral1
.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- Returns:
- The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with two available instance store volumes can specify mappings forephemeral0
andephemeral1
.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
-
withVirtualName
public ScheduledInstancesBlockDeviceMapping withVirtualName(String virtualName)
The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with two available instance store volumes can specify mappings forephemeral0
andephemeral1
.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- Parameters:
virtualName
- The virtual device name (ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with two available instance store volumes can specify mappings forephemeral0
andephemeral1
.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbs
public void setEbs(ScheduledInstancesEbs ebs)
Parameters used to set up EBS volumes automatically when the instance is launched.
- Parameters:
ebs
- Parameters used to set up EBS volumes automatically when the instance is launched.
-
getEbs
public ScheduledInstancesEbs getEbs()
Parameters used to set up EBS volumes automatically when the instance is launched.
- Returns:
- Parameters used to set up EBS volumes automatically when the instance is launched.
-
withEbs
public ScheduledInstancesBlockDeviceMapping withEbs(ScheduledInstancesEbs ebs)
Parameters used to set up EBS volumes automatically when the instance is launched.
- Parameters:
ebs
- Parameters used to set up EBS volumes automatically 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 ScheduledInstancesBlockDeviceMapping clone()
-
-