org.jclouds.aws.ec2.domain
Class LaunchSpecification.Builder

java.lang.Object
  extended by org.jclouds.aws.ec2.domain.LaunchSpecification.Builder
Enclosing class:
LaunchSpecification

public static class LaunchSpecification.Builder
extends Object


Field Summary
protected  String availabilityZone
           
protected  com.google.common.collect.ImmutableSet.Builder<BlockDeviceMapping> blockDeviceMappings
           
protected  String imageId
           
protected  String instanceType
           
protected  String kernelId
           
protected  String keyName
           
protected  Boolean monitoringEnabled
           
protected  String ramdiskId
           
protected  com.google.common.collect.ImmutableSet.Builder<String> securityGroupIds
           
protected  com.google.common.collect.ImmutableMap.Builder<String,String> securityGroupIdToNames
           
protected  com.google.common.collect.ImmutableSet.Builder<String> securityGroupNames
           
protected  byte[] userData
           
 
Constructor Summary
LaunchSpecification.Builder()
           
 
Method Summary
 LaunchSpecification.Builder availabilityZone(String availabilityZone)
           
 LaunchSpecification.Builder blockDeviceMapping(BlockDeviceMapping blockDeviceMapping)
           
 LaunchSpecification.Builder blockDeviceMappings(Iterable<? extends BlockDeviceMapping> blockDeviceMappings)
           
 LaunchSpecification build()
           
 void clear()
           
static LaunchSpecification.Builder fromLaunchSpecification(LaunchSpecification in)
           
 LaunchSpecification.Builder imageId(String imageId)
           
 LaunchSpecification.Builder instanceType(String instanceType)
           
 LaunchSpecification.Builder kernelId(String kernelId)
           
 LaunchSpecification.Builder keyName(String keyName)
           
 LaunchSpecification.Builder mapEBSSnapshotToDevice(String deviceName, String snapshotId, Integer sizeInGib, boolean deleteOnTermination)
           
 LaunchSpecification.Builder mapEphemeralDeviceToDevice(String deviceName, String virtualName)
           
 LaunchSpecification.Builder mapNewVolumeToDevice(String deviceName, int sizeInGib, boolean deleteOnTermination)
           
 LaunchSpecification.Builder monitoringEnabled(Boolean monitoringEnabled)
           
 LaunchSpecification.Builder ramdiskId(String ramdiskId)
           
 LaunchSpecification.Builder securityGroupId(String securityGroupId)
           
 LaunchSpecification.Builder securityGroupIds(Iterable<String> securityGroupIds)
           
 LaunchSpecification.Builder securityGroupIdToName(String groupId, String groupName)
           
 LaunchSpecification.Builder securityGroupIdToNames(Map<String,String> securityGroupIdToNames)
           
 LaunchSpecification.Builder securityGroupName(String securityGroupName)
           
 LaunchSpecification.Builder securityGroupNames(Iterable<String> securityGroupNames)
           
 LaunchSpecification.Builder userData(byte[] userData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

securityGroupIdToNames

protected com.google.common.collect.ImmutableMap.Builder<String,String> securityGroupIdToNames

imageId

protected String imageId

instanceType

protected String instanceType

kernelId

protected String kernelId

keyName

protected String keyName

availabilityZone

protected String availabilityZone

ramdiskId

protected String ramdiskId

monitoringEnabled

protected Boolean monitoringEnabled

blockDeviceMappings

protected com.google.common.collect.ImmutableSet.Builder<BlockDeviceMapping> blockDeviceMappings

securityGroupIds

protected com.google.common.collect.ImmutableSet.Builder<String> securityGroupIds

securityGroupNames

protected com.google.common.collect.ImmutableSet.Builder<String> securityGroupNames

userData

protected byte[] userData
Constructor Detail

LaunchSpecification.Builder

public LaunchSpecification.Builder()
Method Detail

clear

public void clear()

securityGroupIdToNames

public LaunchSpecification.Builder securityGroupIdToNames(Map<String,String> securityGroupIdToNames)

securityGroupIdToName

public LaunchSpecification.Builder securityGroupIdToName(String groupId,
                                                         String groupName)

imageId

public LaunchSpecification.Builder imageId(String imageId)

monitoringEnabled

public LaunchSpecification.Builder monitoringEnabled(Boolean monitoringEnabled)

instanceType

public LaunchSpecification.Builder instanceType(String instanceType)

kernelId

public LaunchSpecification.Builder kernelId(String kernelId)

keyName

public LaunchSpecification.Builder keyName(String keyName)

availabilityZone

public LaunchSpecification.Builder availabilityZone(String availabilityZone)

ramdiskId

public LaunchSpecification.Builder ramdiskId(String ramdiskId)

mapEBSSnapshotToDevice

public LaunchSpecification.Builder mapEBSSnapshotToDevice(String deviceName,
                                                          String snapshotId,
                                                          @Nullable
                                                          Integer sizeInGib,
                                                          boolean deleteOnTermination)

mapNewVolumeToDevice

public LaunchSpecification.Builder mapNewVolumeToDevice(String deviceName,
                                                        int sizeInGib,
                                                        boolean deleteOnTermination)

mapEphemeralDeviceToDevice

public LaunchSpecification.Builder mapEphemeralDeviceToDevice(String deviceName,
                                                              String virtualName)

blockDeviceMapping

public LaunchSpecification.Builder blockDeviceMapping(BlockDeviceMapping blockDeviceMapping)

blockDeviceMappings

public LaunchSpecification.Builder blockDeviceMappings(Iterable<? extends BlockDeviceMapping> blockDeviceMappings)

securityGroupIds

public LaunchSpecification.Builder securityGroupIds(Iterable<String> securityGroupIds)

securityGroupId

public LaunchSpecification.Builder securityGroupId(String securityGroupId)

securityGroupNames

public LaunchSpecification.Builder securityGroupNames(Iterable<String> securityGroupNames)

securityGroupName

public LaunchSpecification.Builder securityGroupName(String securityGroupName)

userData

public LaunchSpecification.Builder userData(byte[] userData)

build

public LaunchSpecification build()

fromLaunchSpecification

public static LaunchSpecification.Builder fromLaunchSpecification(LaunchSpecification in)


Copyright © 2009-2011 jclouds. All Rights Reserved.