public final class ImmutableBlockDeviceMapping extends com.amazonaws.services.ec2.model.BlockDeviceMapping
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableList<com.amazonaws.services.ec2.model.BlockDeviceMapping> |
DEFAULT_INSTANCE_STORES |
static ImmutableBlockDeviceMapping |
INSTANCE_STORE_0
The semi-magic device names come from the AWS console when launching an Ubuntu 12.04 LTS image
The semi-magic virtual names come from the blog Mike found:
http://theagileadmin.com/2010/03/23/amazon-ec2-ebs-instances-and-ephemeral-storage/ |
static ImmutableBlockDeviceMapping |
INSTANCE_STORE_1 |
Constructor and Description |
---|
ImmutableBlockDeviceMapping(String deviceName,
com.amazonaws.services.ec2.model.EbsBlockDevice ebs) |
ImmutableBlockDeviceMapping(String deviceName,
com.google.common.base.Optional<com.amazonaws.services.ec2.model.EbsBlockDevice> ebs,
com.google.common.base.Optional<String> virtualName,
com.google.common.base.Optional<String> noDevice) |
ImmutableBlockDeviceMapping(String deviceName,
String virtualName) |
Modifier and Type | Method and Description |
---|---|
static ImmutableBlockDeviceMapping |
copyOf(com.amazonaws.services.ec2.model.BlockDeviceMapping mapping) |
static com.google.common.collect.ImmutableList<com.amazonaws.services.ec2.model.BlockDeviceMapping> |
copyOf(List<com.amazonaws.services.ec2.model.BlockDeviceMapping> mappings) |
static com.google.common.base.Optional<com.amazonaws.services.ec2.model.EbsBlockDevice> |
getEbs(com.amazonaws.services.ec2.model.BlockDeviceMapping mapping) |
void |
setDeviceName(String deviceName) |
void |
setEbs(com.amazonaws.services.ec2.model.EbsBlockDevice ebs) |
void |
setNoDevice(String noDevice) |
void |
setVirtualName(String virtualName) |
com.amazonaws.services.ec2.model.BlockDeviceMapping |
withDeviceName(String deviceName) |
com.amazonaws.services.ec2.model.BlockDeviceMapping |
withEbs(com.amazonaws.services.ec2.model.EbsBlockDevice ebs) |
com.amazonaws.services.ec2.model.BlockDeviceMapping |
withNoDevice(String noDevice) |
com.amazonaws.services.ec2.model.BlockDeviceMapping |
withVirtualName(String virtualName) |
public static final ImmutableBlockDeviceMapping INSTANCE_STORE_0
public static final ImmutableBlockDeviceMapping INSTANCE_STORE_1
public static final com.google.common.collect.ImmutableList<com.amazonaws.services.ec2.model.BlockDeviceMapping> DEFAULT_INSTANCE_STORES
public ImmutableBlockDeviceMapping(String deviceName, com.amazonaws.services.ec2.model.EbsBlockDevice ebs)
public ImmutableBlockDeviceMapping(String deviceName, String virtualName)
public ImmutableBlockDeviceMapping(String deviceName, com.google.common.base.Optional<com.amazonaws.services.ec2.model.EbsBlockDevice> ebs, com.google.common.base.Optional<String> virtualName, com.google.common.base.Optional<String> noDevice)
public static com.google.common.collect.ImmutableList<com.amazonaws.services.ec2.model.BlockDeviceMapping> copyOf(List<com.amazonaws.services.ec2.model.BlockDeviceMapping> mappings)
public static ImmutableBlockDeviceMapping copyOf(com.amazonaws.services.ec2.model.BlockDeviceMapping mapping)
public void setVirtualName(String virtualName)
setVirtualName
in class com.amazonaws.services.ec2.model.BlockDeviceMapping
public com.amazonaws.services.ec2.model.BlockDeviceMapping withVirtualName(String virtualName)
withVirtualName
in class com.amazonaws.services.ec2.model.BlockDeviceMapping
public void setDeviceName(String deviceName)
setDeviceName
in class com.amazonaws.services.ec2.model.BlockDeviceMapping
public com.amazonaws.services.ec2.model.BlockDeviceMapping withDeviceName(String deviceName)
withDeviceName
in class com.amazonaws.services.ec2.model.BlockDeviceMapping
public void setEbs(com.amazonaws.services.ec2.model.EbsBlockDevice ebs)
setEbs
in class com.amazonaws.services.ec2.model.BlockDeviceMapping
public com.amazonaws.services.ec2.model.BlockDeviceMapping withEbs(com.amazonaws.services.ec2.model.EbsBlockDevice ebs)
withEbs
in class com.amazonaws.services.ec2.model.BlockDeviceMapping
public void setNoDevice(String noDevice)
setNoDevice
in class com.amazonaws.services.ec2.model.BlockDeviceMapping
public com.amazonaws.services.ec2.model.BlockDeviceMapping withNoDevice(String noDevice)
withNoDevice
in class com.amazonaws.services.ec2.model.BlockDeviceMapping
public static com.google.common.base.Optional<com.amazonaws.services.ec2.model.EbsBlockDevice> getEbs(com.amazonaws.services.ec2.model.BlockDeviceMapping mapping)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.