org.jclouds.aws.ec2.domain
Class LaunchSpecification.Builder
java.lang.Object
org.jclouds.aws.ec2.domain.LaunchSpecification.Builder
- Enclosing class:
- LaunchSpecification
public static class LaunchSpecification.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LaunchSpecification.Builder
public LaunchSpecification.Builder()
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.