public class SoftLayerTemplateOptions extends TemplateOptions implements Cloneable
ComputeService.createNodesInGroup(String, int, TemplateOptions) and
ComputeService.createNodesInGroup(String, int, TemplateOptions)
operations on the gogrid provider.
SoftLayerTemplateOptions object is to statically import
SoftLayerTemplateOptions.* and invoke a static creation method
followed by an instance mutator (if needed):
import static org.jclouds.compute.options.SoftLayerTemplateOptions.Builder.*; ComputeService client = // get connection templateBuilder.options(inboundPorts(22, 80, 8080, 443)); Set<? extends NodeMetadata> set = client.createNodesInGroup(tag, 2, templateBuilder.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
SoftLayerTemplateOptions.Builder |
TemplateOptions.ImmutableTemplateOptionsRunScriptOptions.ImmutableRunScriptOptions| Modifier and Type | Field and Description |
|---|---|
protected List<Integer> |
blockDevices |
protected Boolean |
dedicatedAccountHostOnlyFlag |
protected String |
diskType |
protected String |
domainName |
protected Boolean |
hourlyBillingFlag |
protected Integer |
portSpeed |
protected String |
postInstallScriptUri |
protected Integer |
primaryBackendNetworkComponentNetworkVlanId |
protected Integer |
primaryNetworkComponentNetworkVlanId |
protected Boolean |
privateNetworkOnlyFlag |
protected List<Integer> |
sshKeys |
protected String |
userData |
blockUntilRunning, inboundPorts, networks, nodeNames, NONE, privateKey, publicKey, script, securityGroups, tags, userMetadataauthenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript| Constructor and Description |
|---|
SoftLayerTemplateOptions() |
as, blockOnComplete, equals, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, networks, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, string, tags, wrapInInitScriptcopyTo, getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, overrideLoginPassword, overrideLoginPrivateKey, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toStringprotected String domainName
protected String diskType
protected Integer portSpeed
protected String userData
protected Integer primaryNetworkComponentNetworkVlanId
protected Integer primaryBackendNetworkComponentNetworkVlanId
protected Boolean hourlyBillingFlag
protected Boolean dedicatedAccountHostOnlyFlag
protected Boolean privateNetworkOnlyFlag
protected String postInstallScriptUri
public SoftLayerTemplateOptions clone()
clone in class TemplateOptionspublic void copyTo(TemplateOptions to)
copyTo in class TemplateOptionspublic SoftLayerTemplateOptions domainName(String domainName)
VirtualGuestApi.createVirtualGuest(org.jclouds.softlayer.domain.VirtualGuest),
InternetDomainName.hasPublicSuffix()public SoftLayerTemplateOptions blockDevices(Iterable<Integer> capacities)
public SoftLayerTemplateOptions blockDevices(Integer... capacities)
public SoftLayerTemplateOptions diskType(@Nullable String diskType)
public SoftLayerTemplateOptions portSpeed(@Nullable Integer portSpeed)
public SoftLayerTemplateOptions userData(@Nullable String userData)
public SoftLayerTemplateOptions primaryNetworkComponentNetworkVlanId(@Nullable Integer primaryNetworkComponentNetworkVlanId)
public SoftLayerTemplateOptions primaryBackendNetworkComponentNetworkVlanId(@Nullable Integer primaryBackendNetworkComponentNetworkVlanId)
public SoftLayerTemplateOptions hourlyBillingFlag(@Nullable Boolean hourlyBillingFlag)
public SoftLayerTemplateOptions dedicatedAccountHostOnlyFlag(@Nullable Boolean dedicatedAccountHostOnlyFlag)
public SoftLayerTemplateOptions privateNetworkOnlyFlag(@Nullable Boolean privateNetworkOnlyFlag)
public SoftLayerTemplateOptions postInstallScriptUri(@Nullable String postInstallScriptUri)
public SoftLayerTemplateOptions sshKeys(Iterable<Integer> sshKeys)
public SoftLayerTemplateOptions sshKeys(Integer... sshKeys)
public String getDomainName()
public String getDiskType()
public Integer getPortSpeed()
public String getUserData()
public Integer getPrimaryNetworkComponentNetworkVlanId()
public Integer getPrimaryBackendNetworkComponentNetworkVlanId()
public Boolean isHourlyBillingFlag()
public Boolean isDedicatedAccountHostOnlyFlag()
public Boolean isPrivateNetworkOnlyFlag()
public String getPostInstallScriptUri()
public SoftLayerTemplateOptions blockOnPort(int port, int seconds)
blockOnPort in class TemplateOptionspublic SoftLayerTemplateOptions inboundPorts(int... ports)
inboundPorts in class TemplateOptionspublic SoftLayerTemplateOptions authorizePublicKey(String publicKey)
authorizePublicKey in class TemplateOptionspublic SoftLayerTemplateOptions installPrivateKey(String privateKey)
installPrivateKey in class TemplateOptionspublic SoftLayerTemplateOptions blockUntilRunning(boolean blockUntilRunning)
TemplateOptions.runScript(Statement) and
RunScriptOptions.blockOnComplete(boolean), as all current
implementations utilize ssh in order to execute scripts.blockUntilRunning in class TemplateOptionsblockUntilRunning - (default true) whether to block until the nodes in this template
are in Status#RUNNING statepublic SoftLayerTemplateOptions dontAuthorizePublicKey()
dontAuthorizePublicKey in class TemplateOptionspublic SoftLayerTemplateOptions nameTask(String name)
nameTask in class TemplateOptionsjclouds-script-timestamp where timestamp is millis since
epochpublic SoftLayerTemplateOptions runAsRoot(boolean runAsRoot)
runAsRoot in class TemplateOptionspublic SoftLayerTemplateOptions runScript(Statement script)
runScript in class TemplateOptionspublic SoftLayerTemplateOptions overrideLoginCredentials(LoginCredentials overridingCredentials)
overrideLoginCredentials in class TemplateOptionspublic SoftLayerTemplateOptions overrideLoginPassword(String password)
overrideLoginPassword in class TemplateOptionspublic SoftLayerTemplateOptions overrideLoginPrivateKey(String privateKey)
overrideLoginPrivateKey in class TemplateOptionspublic SoftLayerTemplateOptions overrideLoginUser(String loginUser)
overrideLoginUser in class TemplateOptionspublic SoftLayerTemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)
overrideAuthenticateSudo in class TemplateOptionspublic SoftLayerTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata in class TemplateOptionsuserMetadata - user-defined metadata to assign to this serverpublic SoftLayerTemplateOptions userMetadata(String key, String value)
userMetadata in class TemplateOptionskey - key to place into the metadata mapvalue - value to associate with that keypublic SoftLayerTemplateOptions nodeNames(Iterable<String> nodeNames)
nodeNames in class TemplateOptionspublic SoftLayerTemplateOptions networks(Iterable<String> networks)
networks in class TemplateOptionsCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.