Class DigitalOcean2TemplateOptions
- java.lang.Object
-
- org.jclouds.compute.options.RunScriptOptions
-
- org.jclouds.compute.options.TemplateOptions
-
- org.jclouds.digitalocean2.compute.options.DigitalOcean2TemplateOptions
-
- All Implemented Interfaces:
Cloneable
public class DigitalOcean2TemplateOptions extends TemplateOptions implements Cloneable
Custom options for the DigitalOcean API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DigitalOcean2TemplateOptions.Builder
-
Nested classes/interfaces inherited from class org.jclouds.compute.options.TemplateOptions
TemplateOptions.ImmutableTemplateOptions
-
Nested classes/interfaces inherited from class org.jclouds.compute.options.RunScriptOptions
RunScriptOptions.ImmutableRunScriptOptions
-
-
Field Summary
-
Fields inherited from class org.jclouds.compute.options.TemplateOptions
blockUntilRunning, inboundPorts, networks, nodeNames, NONE, privateKey, publicKey, script, securityGroups, tags, userMetadata
-
Fields inherited from class org.jclouds.compute.options.RunScriptOptions
authenticateSudo, blockOnComplete, loginPassword, loginPrivateKey, loginUser, port, runAsRoot, seconds, taskName, wrapInInitScript
-
-
Constructor Summary
Constructors Constructor Description DigitalOcean2TemplateOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.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(String key, String value)
Deprecated.Key value metadata is not supported in DigitalOcean.TemplateOptions
userMetadata(Map<String,String> userMetadata)
Deprecated.Key value metadata is not supported in DigitalOcean.-
Methods inherited from class org.jclouds.compute.options.TemplateOptions
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
-
Methods inherited from class org.jclouds.compute.options.RunScriptOptions
copyTo, getLoginPassword, getLoginPrivateKey, getLoginUser, getPort, getSeconds, getTaskName, hasLoginPassword, hasLoginPasswordOption, hasLoginPrivateKey, hasLoginPrivateKeyOption, overrideLoginPassword, overrideLoginPrivateKey, shouldAuthenticateSudo, shouldBlockOnComplete, shouldRunAsRoot, shouldWrapInInitScript, toString
-
-
-
-
Method Detail
-
privateNetworking
public DigitalOcean2TemplateOptions privateNetworking(boolean privateNetworking)
Enables a private network interface if the region supports private networking.
-
backupsEnabled
public DigitalOcean2TemplateOptions backupsEnabled(boolean backupsEnabled)
Enabled backups for the droplet.
-
sshKeyIds
public DigitalOcean2TemplateOptions sshKeyIds(Iterable<Integer> sshKeyIds)
Sets the ssh key ids to be added to the droplet.
-
autoCreateKeyPair
public DigitalOcean2TemplateOptions autoCreateKeyPair(boolean autoCreateKeyPair)
Sets whether an SSH key pair should be created automatically.
-
userData
public DigitalOcean2TemplateOptions userData(byte[] userData)
Sets the userData member.
-
userMetadata
@Deprecated public TemplateOptions userMetadata(Map<String,String> userMetadata)
Deprecated.Key value metadata is not supported in DigitalOcean. UseuserData(byte[])
instead.- Overrides:
userMetadata
in classTemplateOptions
- Parameters:
userMetadata
- user-defined metadata to assign to this server
-
userMetadata
@Deprecated public TemplateOptions userMetadata(String key, String value)
Deprecated.Key value metadata is not supported in DigitalOcean. UseuserData(byte[])
instead.- Overrides:
userMetadata
in classTemplateOptions
- Parameters:
key
- key to place into the metadata mapvalue
- value to associate with that key
-
getUserMetadata
@Deprecated public Map<String,String> getUserMetadata()
Deprecated.Key value metadata is not supported in DigitalOcean. User data can be retrieved withgetUserData()
.- Overrides:
getUserMetadata
in classTemplateOptions
- See Also:
TemplateOptions.userMetadata(Map)
-
getPrivateNetworking
public boolean getPrivateNetworking()
-
getBackupsEnabled
public boolean getBackupsEnabled()
-
getAutoCreateKeyPair
public boolean getAutoCreateKeyPair()
-
getUserData
public byte[] getUserData()
-
clone
public DigitalOcean2TemplateOptions clone()
- Overrides:
clone
in classTemplateOptions
-
copyTo
public void copyTo(TemplateOptions to)
- Overrides:
copyTo
in classTemplateOptions
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTemplateOptions
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classTemplateOptions
-
string
public com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classTemplateOptions
-
-