public class DigitalOcean2TemplateOptions extends TemplateOptions implements Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
DigitalOcean2TemplateOptions.Builder |
TemplateOptions.ImmutableTemplateOptions
RunScriptOptions.ImmutableRunScriptOptions
blockUntilRunning, inboundPorts, networks, nodeNames, NONE, privateKey, publicKey, script, securityGroups, tags, userMetadata
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
Constructor and Description |
---|
DigitalOcean2TemplateOptions() |
Modifier and Type | Method and Description |
---|---|
DigitalOcean2TemplateOptions |
autoCreateKeyPair(boolean autoCreateKeyPair)
Sets whether an SSH key pair should be created automatically.
|
DigitalOcean2TemplateOptions |
backupsEnabled(boolean backupsEnabled)
Enabled backups for the droplet.
|
DigitalOcean2TemplateOptions |
clone() |
void |
copyTo(TemplateOptions to) |
boolean |
equals(Object obj) |
boolean |
getAutoCreateKeyPair() |
boolean |
getBackupsEnabled() |
boolean |
getPrivateNetworking() |
Set<Integer> |
getSshKeyIds() |
byte[] |
getUserData() |
Map<String,String> |
getUserMetadata()
Deprecated.
Key value metadata is not supported in DigitalOcean. User data
can be retrieved with
getUserData() . |
int |
hashCode() |
DigitalOcean2TemplateOptions |
privateNetworking(boolean privateNetworking)
Enables a private network interface if the region supports private networking.
|
DigitalOcean2TemplateOptions |
sshKeyIds(Iterable<Integer> sshKeyIds)
Sets the ssh key ids to be added to the droplet.
|
com.google.common.base.MoreObjects.ToStringHelper |
string() |
DigitalOcean2TemplateOptions |
userData(byte[] userData)
Sets the userData member.
|
TemplateOptions |
userMetadata(Map<String,String> userMetadata)
Deprecated.
Key value metadata is not supported in DigitalOcean. Use
userData(byte[]) instead. |
TemplateOptions |
userMetadata(String key,
String value)
Deprecated.
Key value metadata is not supported in DigitalOcean. Use
userData(byte[]) instead. |
as, authorizePublicKey, blockOnComplete, blockOnPort, blockUntilRunning, dontAuthorizePublicKey, getGroups, getInboundPorts, getNetworks, getNodeNames, getPrivateKey, getPublicKey, getRunScript, getTags, inboundPorts, installPrivateKey, nameTask, networks, networks, nodeNames, overrideAuthenticateSudo, overrideLoginCredentials, overrideLoginPassword, overrideLoginPrivateKey, overrideLoginUser, runAsRoot, runScript, runScript, securityGroups, securityGroups, shouldBlockUntilRunning, tags, wrapInInitScript
copyTo, getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, overrideLoginPassword, overrideLoginPrivateKey, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
public DigitalOcean2TemplateOptions privateNetworking(boolean privateNetworking)
public DigitalOcean2TemplateOptions backupsEnabled(boolean backupsEnabled)
public DigitalOcean2TemplateOptions sshKeyIds(Iterable<Integer> sshKeyIds)
public DigitalOcean2TemplateOptions autoCreateKeyPair(boolean autoCreateKeyPair)
public DigitalOcean2TemplateOptions userData(byte[] userData)
@Deprecated public TemplateOptions userMetadata(Map<String,String> userMetadata)
userData(byte[])
instead.userMetadata
in class TemplateOptions
userMetadata
- user-defined metadata to assign to this server@Deprecated public TemplateOptions userMetadata(String key, String value)
userData(byte[])
instead.userMetadata
in class TemplateOptions
key
- key to place into the metadata mapvalue
- value to associate with that key@Deprecated public Map<String,String> getUserMetadata()
getUserData()
.getUserMetadata
in class TemplateOptions
TemplateOptions.userMetadata(Map)
public boolean getPrivateNetworking()
public boolean getBackupsEnabled()
public boolean getAutoCreateKeyPair()
public byte[] getUserData()
public DigitalOcean2TemplateOptions clone()
clone
in class TemplateOptions
public void copyTo(TemplateOptions to)
copyTo
in class TemplateOptions
public int hashCode()
hashCode
in class TemplateOptions
public boolean equals(Object obj)
equals
in class TemplateOptions
public com.google.common.base.MoreObjects.ToStringHelper string()
string
in class TemplateOptions
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.