public static class LaunchSpecification.Builder extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
LaunchSpecification.Builder() |
protected com.google.common.collect.ImmutableMap.Builder<String,String> securityGroupIdToNames
protected String imageId
protected String instanceType
protected String kernelId
protected String keyName
protected String availabilityZone
protected String ramdiskId
protected Boolean monitoringEnabled
protected com.google.common.collect.ImmutableSet.Builder<BlockDeviceMapping> blockDeviceMappings
protected com.google.common.collect.ImmutableSet.Builder<String> securityGroupIds
protected com.google.common.collect.ImmutableSet.Builder<String> securityGroupNames
protected byte[] userData
public void clear()
public LaunchSpecification.Builder securityGroupIdToNames(Map<String,String> securityGroupIdToNames)
public LaunchSpecification.Builder securityGroupIdToName(String groupId, String groupName)
public LaunchSpecification.Builder imageId(String imageId)
public LaunchSpecification.Builder monitoringEnabled(Boolean monitoringEnabled)
public LaunchSpecification.Builder instanceType(String instanceType)
public LaunchSpecification.Builder kernelId(String kernelId)
public LaunchSpecification.Builder keyName(String keyName)
public LaunchSpecification.Builder availabilityZone(String availabilityZone)
public LaunchSpecification.Builder ramdiskId(String ramdiskId)
public LaunchSpecification.Builder mapEBSSnapshotToDevice(String deviceName, String snapshotId, @Nullable Integer sizeInGib, boolean deleteOnTermination)
public LaunchSpecification.Builder mapNewVolumeToDevice(String deviceName, int sizeInGib, boolean deleteOnTermination)
public LaunchSpecification.Builder mapEphemeralDeviceToDevice(String deviceName, String virtualName)
public LaunchSpecification.Builder blockDeviceMapping(BlockDeviceMapping blockDeviceMapping)
public LaunchSpecification.Builder blockDeviceMappings(Iterable<? extends BlockDeviceMapping> blockDeviceMappings)
public LaunchSpecification.Builder securityGroupIds(Iterable<String> securityGroupIds)
public LaunchSpecification.Builder securityGroupId(String securityGroupId)
public LaunchSpecification.Builder securityGroupNames(Iterable<String> securityGroupNames)
public LaunchSpecification.Builder securityGroupName(String securityGroupName)
public LaunchSpecification.Builder userData(byte[] userData)
public LaunchSpecification build()
public static LaunchSpecification.Builder fromLaunchSpecification(LaunchSpecification in)
Copyright © 2009-2012 jclouds. All Rights Reserved.