org.kuali.common.aws.ec2.model
Class ImmutableBlockDeviceMapping

java.lang.Object
  extended by com.amazonaws.services.ec2.model.BlockDeviceMapping
      extended by org.kuali.common.aws.ec2.model.ImmutableBlockDeviceMapping
All Implemented Interfaces:
Serializable

public final class ImmutableBlockDeviceMapping
extends com.amazonaws.services.ec2.model.BlockDeviceMapping

See Also:
Serialized Form

Field Summary
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 Summary
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)
           
 
Method Summary
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)
           
 
Methods inherited from class com.amazonaws.services.ec2.model.BlockDeviceMapping
equals, getDeviceName, getEbs, getNoDevice, getVirtualName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE_STORE_0

public static final 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/


INSTANCE_STORE_1

public static final ImmutableBlockDeviceMapping INSTANCE_STORE_1

DEFAULT_INSTANCE_STORES

public static final com.google.common.collect.ImmutableList<com.amazonaws.services.ec2.model.BlockDeviceMapping> DEFAULT_INSTANCE_STORES
Constructor Detail

ImmutableBlockDeviceMapping

public ImmutableBlockDeviceMapping(String deviceName,
                                   com.amazonaws.services.ec2.model.EbsBlockDevice ebs)

ImmutableBlockDeviceMapping

public ImmutableBlockDeviceMapping(String deviceName,
                                   String virtualName)

ImmutableBlockDeviceMapping

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)
Method Detail

copyOf

public static com.google.common.collect.ImmutableList<com.amazonaws.services.ec2.model.BlockDeviceMapping> copyOf(List<com.amazonaws.services.ec2.model.BlockDeviceMapping> mappings)

copyOf

public static ImmutableBlockDeviceMapping copyOf(com.amazonaws.services.ec2.model.BlockDeviceMapping mapping)

setVirtualName

public void setVirtualName(String virtualName)
Overrides:
setVirtualName in class com.amazonaws.services.ec2.model.BlockDeviceMapping

withVirtualName

public com.amazonaws.services.ec2.model.BlockDeviceMapping withVirtualName(String virtualName)
Overrides:
withVirtualName in class com.amazonaws.services.ec2.model.BlockDeviceMapping

setDeviceName

public void setDeviceName(String deviceName)
Overrides:
setDeviceName in class com.amazonaws.services.ec2.model.BlockDeviceMapping

withDeviceName

public com.amazonaws.services.ec2.model.BlockDeviceMapping withDeviceName(String deviceName)
Overrides:
withDeviceName in class com.amazonaws.services.ec2.model.BlockDeviceMapping

setEbs

public void setEbs(com.amazonaws.services.ec2.model.EbsBlockDevice ebs)
Overrides:
setEbs in class com.amazonaws.services.ec2.model.BlockDeviceMapping

withEbs

public com.amazonaws.services.ec2.model.BlockDeviceMapping withEbs(com.amazonaws.services.ec2.model.EbsBlockDevice ebs)
Overrides:
withEbs in class com.amazonaws.services.ec2.model.BlockDeviceMapping

setNoDevice

public void setNoDevice(String noDevice)
Overrides:
setNoDevice in class com.amazonaws.services.ec2.model.BlockDeviceMapping

withNoDevice

public com.amazonaws.services.ec2.model.BlockDeviceMapping withNoDevice(String noDevice)
Overrides:
withNoDevice in class com.amazonaws.services.ec2.model.BlockDeviceMapping

getEbs

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.