public class SoftLayerTemplateOptions extends org.jclouds.compute.options.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 |
| 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 |
| Constructor and Description |
|---|
SoftLayerTemplateOptions() |
as, blockOnComplete, equals, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, getUserMetadata, hashCode, networks, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, string, tags, wrapInInitScriptgetLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, 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 org.jclouds.compute.options.TemplateOptionspublic void copyTo(org.jclouds.compute.options.TemplateOptions to)
copyTo in class org.jclouds.compute.options.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 org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions inboundPorts(int... ports)
inboundPorts in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions authorizePublicKey(String publicKey)
authorizePublicKey in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions installPrivateKey(String privateKey)
installPrivateKey in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions blockUntilRunning(boolean blockUntilRunning)
blockUntilRunning in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions dontAuthorizePublicKey()
dontAuthorizePublicKey in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions nameTask(String name)
nameTask in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions runAsRoot(boolean runAsRoot)
runAsRoot in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions runScript(org.jclouds.scriptbuilder.domain.Statement script)
runScript in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions overrideLoginCredentials(org.jclouds.domain.LoginCredentials overridingCredentials)
overrideLoginCredentials in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions overrideLoginPassword(String password)
overrideLoginPassword in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions overrideLoginPrivateKey(String privateKey)
overrideLoginPrivateKey in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions overrideLoginUser(String loginUser)
overrideLoginUser in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)
overrideAuthenticateSudo in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions userMetadata(Map<String,String> userMetadata)
userMetadata in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions userMetadata(String key, String value)
userMetadata in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions nodeNames(Iterable<String> nodeNames)
nodeNames in class org.jclouds.compute.options.TemplateOptionspublic SoftLayerTemplateOptions networks(Iterable<String> networks)
networks in class org.jclouds.compute.options.TemplateOptionsCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.