org.jclouds.compute.options
Class TemplateOptions.Builder

java.lang.Object
  extended by org.jclouds.compute.options.RunScriptOptions.Builder
      extended by org.jclouds.compute.options.TemplateOptions.Builder
Enclosing class:
TemplateOptions

public static class TemplateOptions.Builder
extends RunScriptOptions.Builder


Constructor Summary
TemplateOptions.Builder()
           
 
Method Summary
static TemplateOptions authorizePublicKey(Payload rsaKey)
           
static TemplateOptions authorizePublicKey(String rsaKey)
          Deprecated. 
static TemplateOptions blockOnComplete(boolean value)
           
static TemplateOptions blockOnPort(int port, int seconds)
           
static TemplateOptions blockUntilRunning(boolean blockUntilRunning)
           
static TemplateOptions inboundPorts(int... ports)
           
static TemplateOptions installPrivateKey(Payload rsaKey)
           
static TemplateOptions installPrivateKey(String rsaKey)
          Deprecated. 
static TemplateOptions nameTask(String name)
           
static TemplateOptions overrideCredentialsWith(Credentials credentials)
           
static TemplateOptions overrideLoginCredentialWith(String credential)
           
static TemplateOptions overrideLoginUserWith(String user)
           
static TemplateOptions runAsRoot(boolean value)
           
static TemplateOptions runScript(byte[] script)
          Deprecated. 
static TemplateOptions runScript(Payload script)
           
static TemplateOptions runScript(Statement script)
           
static TemplateOptions tags(Iterable<String> tags)
           
static TemplateOptions userMetadata(Map<String,String> userMetadata)
           
static TemplateOptions userMetadata(String key, String value)
           
 
Methods inherited from class org.jclouds.compute.options.RunScriptOptions.Builder
wrapInInitScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateOptions.Builder

public TemplateOptions.Builder()
Method Detail

nameTask

public static TemplateOptions nameTask(String name)

overrideLoginUserWith

public static TemplateOptions overrideLoginUserWith(String user)

overrideLoginCredentialWith

public static TemplateOptions overrideLoginCredentialWith(String credential)

overrideCredentialsWith

public static TemplateOptions overrideCredentialsWith(Credentials credentials)

runAsRoot

public static TemplateOptions runAsRoot(boolean value)

blockOnPort

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

inboundPorts

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

tags

public static TemplateOptions tags(Iterable<String> tags)
See Also:
TemplateOptions.tags

blockUntilRunning

public static TemplateOptions blockUntilRunning(boolean blockUntilRunning)
See Also:
TemplateOptions.blockUntilRunning(boolean)

runScript

@Deprecated
public static TemplateOptions runScript(byte[] script)
Deprecated. 

please use alternative that uses the {@link Statement) object

See Also:
TemplateOptions.runScript(Statement)

runScript

public static TemplateOptions runScript(Payload script)
See Also:
TemplateOptions.runScript(Statement), Payloads

runScript

public static TemplateOptions runScript(Statement script)
See Also:
TemplateOptions.runScript(Statement)

installPrivateKey

@Deprecated
public static TemplateOptions installPrivateKey(String rsaKey)
Deprecated. 

please use alternative that uses the Payload object

See Also:
Payloads, installPrivateKey(Payload)

installPrivateKey

public static TemplateOptions installPrivateKey(Payload rsaKey)
See Also:
TemplateOptions.installPrivateKey(java.lang.String), Payloads

authorizePublicKey

@Deprecated
public static TemplateOptions authorizePublicKey(String rsaKey)
Deprecated. 

please use alternative that uses the Payload object

See Also:
Payloads, authorizePublicKey(Payload)

authorizePublicKey

public static TemplateOptions authorizePublicKey(Payload rsaKey)
See Also:
TemplateOptions.authorizePublicKey(Payload), Payloads

userMetadata

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

userMetadata

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

blockOnComplete

public static TemplateOptions blockOnComplete(boolean value)


Copyright © 2009-2011 jclouds. All Rights Reserved.