org.jclouds.ec2.compute.options
Class EC2TemplateOptions.Builder

java.lang.Object
  extended by org.jclouds.ec2.compute.options.EC2TemplateOptions.Builder
Enclosing class:
EC2TemplateOptions

public static class EC2TemplateOptions.Builder
extends Object


Constructor Summary
EC2TemplateOptions.Builder()
           
 
Method Summary
static EC2TemplateOptions authorizePublicKey(String rsaKey)
           
static EC2TemplateOptions blockDeviceMappings(Set<? extends BlockDeviceMapping> blockDeviceMappings)
           
static EC2TemplateOptions blockOnPort(int port, int seconds)
           
static EC2TemplateOptions inboundPorts(int... ports)
           
static EC2TemplateOptions installPrivateKey(String rsaKey)
           
static EC2TemplateOptions keyPair(String keyPair)
           
static EC2TemplateOptions mapEBSSnapshotToDeviceName(String deviceName, String snapshotId, Integer sizeInGib, boolean deleteOnTermination)
           
static EC2TemplateOptions mapEphemeralDeviceToDeviceName(String deviceName, String virtualName)
           
static EC2TemplateOptions mapNewVolumeToDeviceName(String deviceName, int sizeInGib, boolean deleteOnTermination)
           
static EC2TemplateOptions noKeyPair()
           
static EC2TemplateOptions runScript(byte[] script)
           
static EC2TemplateOptions securityGroups(Iterable<String> groupNames)
           
static EC2TemplateOptions securityGroups(String... groupNames)
           
static EC2TemplateOptions unmapDeviceNamed(String deviceName)
           
static EC2TemplateOptions userData(byte[] unencodedData)
           
static EC2TemplateOptions userMetadata(Map<String,String> userMetadata)
           
static EC2TemplateOptions userMetadata(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EC2TemplateOptions.Builder

public EC2TemplateOptions.Builder()
Method Detail

blockDeviceMappings

public static EC2TemplateOptions blockDeviceMappings(Set<? extends BlockDeviceMapping> blockDeviceMappings)
See Also:
EC2TemplateOptions.blockDeviceMappings

mapEBSSnapshotToDeviceName

public static EC2TemplateOptions mapEBSSnapshotToDeviceName(String deviceName,
                                                            String snapshotId,
                                                            @Nullable
                                                            Integer sizeInGib,
                                                            boolean deleteOnTermination)
See Also:
EC2TemplateOptions.mapEBSSnapshotToDeviceName(java.lang.String, java.lang.String, java.lang.Integer, boolean)

mapNewVolumeToDeviceName

public static EC2TemplateOptions mapNewVolumeToDeviceName(String deviceName,
                                                          int sizeInGib,
                                                          boolean deleteOnTermination)
See Also:
EC2TemplateOptions.mapNewVolumeToDeviceName(java.lang.String, int, boolean)

mapEphemeralDeviceToDeviceName

public static EC2TemplateOptions mapEphemeralDeviceToDeviceName(String deviceName,
                                                                String virtualName)
See Also:
EC2TemplateOptions.mapEphemeralDeviceToDeviceName(java.lang.String, java.lang.String)

unmapDeviceNamed

public static EC2TemplateOptions unmapDeviceNamed(String deviceName)
See Also:
EC2TemplateOptions.unmapDeviceNamed(java.lang.String)

securityGroups

public static EC2TemplateOptions securityGroups(String... groupNames)
See Also:
EC2TemplateOptions#securityGroups(Iterable)

securityGroups

public static EC2TemplateOptions securityGroups(Iterable<String> groupNames)
See Also:
EC2TemplateOptions#securityGroups(Iterable)

keyPair

public static EC2TemplateOptions keyPair(String keyPair)
See Also:
EC2TemplateOptions.keyPair

userData

public static EC2TemplateOptions userData(byte[] unencodedData)
See Also:
EC2TemplateOptions.userData

noKeyPair

public static EC2TemplateOptions noKeyPair()
See Also:
EC2TemplateOptions.noKeyPair

inboundPorts

public static EC2TemplateOptions inboundPorts(int... ports)
See Also:
TemplateOptions.inboundPorts

blockOnPort

public static EC2TemplateOptions blockOnPort(int port,
                                             int seconds)
See Also:
RunScriptOptions.port

runScript

public static EC2TemplateOptions runScript(byte[] script)
See Also:
TemplateOptions.runScript(byte[])

installPrivateKey

public static EC2TemplateOptions installPrivateKey(String rsaKey)
See Also:
TemplateOptions.installPrivateKey(java.lang.String)

authorizePublicKey

public static EC2TemplateOptions authorizePublicKey(String rsaKey)
See Also:
TemplateOptions.authorizePublicKey(java.lang.String)

userMetadata

public static EC2TemplateOptions userMetadata(Map<String,String> userMetadata)
See Also:
TemplateOptions.userMetadata(Map)

userMetadata

public static EC2TemplateOptions userMetadata(String key,
                                              String value)
See Also:
TemplateOptions.userMetadata(String, String)


Copyright © 2009-2011 jclouds. All Rights Reserved.