Package 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
-
-
Field Summary
Fields Modifier and Type Field 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 String
subnetId
protected byte[]
userData
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
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
-
subnetId
protected String subnetId
-
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
-
-
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)
-
subnetId
public LaunchSpecification.Builder subnetId(String subnetId)
-
ramdiskId
public LaunchSpecification.Builder ramdiskId(String ramdiskId)
-
mapEBSSnapshotToDevice
public LaunchSpecification.Builder mapEBSSnapshotToDevice(String deviceName, String snapshotId, @Nullable Integer sizeInGib, boolean deleteOnTermination)
-
mapEBSSnapshotToDevice
public LaunchSpecification.Builder mapEBSSnapshotToDevice(String deviceName, String snapshotId, @Nullable Integer sizeInGib, boolean deleteOnTermination, @Nullable String volumeType, @Nullable Integer iops, @Nullable Boolean encrypted)
-
mapNewVolumeToDevice
public LaunchSpecification.Builder mapNewVolumeToDevice(String deviceName, int sizeInGib, boolean deleteOnTermination)
-
mapNewVolumeToDevice
public LaunchSpecification.Builder mapNewVolumeToDevice(String deviceName, int sizeInGib, boolean deleteOnTermination, @Nullable String volumeType, @Nullable Integer iops, @Nullable Boolean encrypted)
-
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)
-
iamInstanceProfileArn
public LaunchSpecification.Builder iamInstanceProfileArn(String iamInstanceProfileArn)
-
iamInstanceProfileName
public LaunchSpecification.Builder iamInstanceProfileName(String iamInstanceProfileName)
-
build
public LaunchSpecification build()
-
fromLaunchSpecification
public static LaunchSpecification.Builder fromLaunchSpecification(LaunchSpecification in)
-
-