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 overrideAuthenticateSudo(boolean authenticateSudo)
           
static EC2TemplateOptions overrideCredentialsWith(Credentials credentials)
          Deprecated. 
static EC2TemplateOptions overrideLoginCredentials(LoginCredentials credentials)
           
static EC2TemplateOptions overrideLoginCredentialWith(String credential)
          Deprecated. 
static EC2TemplateOptions overrideLoginPassword(String password)
           
static EC2TemplateOptions overrideLoginPrivateKey(String privateKey)
           
static EC2TemplateOptions overrideLoginUser(String user)
           
static EC2TemplateOptions overrideLoginUserWith(String user)
          Deprecated. 
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)
           
 
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

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)

overrideLoginUserWith

@Deprecated
public static EC2TemplateOptions overrideLoginUserWith(String user)
Deprecated. 


overrideLoginUser

public static EC2TemplateOptions overrideLoginUser(String user)

overrideLoginPassword

public static EC2TemplateOptions overrideLoginPassword(String password)

overrideLoginPrivateKey

public static EC2TemplateOptions overrideLoginPrivateKey(String privateKey)

overrideAuthenticateSudo

public static EC2TemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)

overrideLoginCredentialWith

@Deprecated
public static EC2TemplateOptions overrideLoginCredentialWith(String credential)
Deprecated. 


overrideCredentialsWith

@Deprecated
public static EC2TemplateOptions overrideCredentialsWith(Credentials credentials)
Deprecated. 


overrideLoginCredentials

public static EC2TemplateOptions overrideLoginCredentials(LoginCredentials credentials)


Copyright © 2009-2012 jclouds. All Rights Reserved.