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
Custom options for the DigitalOcean API.
-
Nested Class Summary
Nested ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionautoCreateKeyPair
(boolean autoCreateKeyPair) Sets whether an SSH key pair should be created automatically.backupsEnabled
(boolean backupsEnabled) Enabled backups for the droplet.clone()
void
boolean
boolean
boolean
boolean
byte[]
Deprecated.Key value metadata is not supported in DigitalOcean.int
hashCode()
privateNetworking
(boolean privateNetworking) Enables a private network interface if the region supports private networking.Sets the ssh key ids to be added to the droplet.com.google.common.base.MoreObjects.ToStringHelper
string()
userData
(byte[] userData) Sets the userData member.userMetadata
(String key, String value) Deprecated.Key value metadata is not supported in DigitalOcean.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
-
Constructor Details
-
DigitalOcean2TemplateOptions
public DigitalOcean2TemplateOptions()
-
-
Method Details
-
privateNetworking
Enables a private network interface if the region supports private networking. -
backupsEnabled
Enabled backups for the droplet. -
sshKeyIds
Sets the ssh key ids to be added to the droplet. -
autoCreateKeyPair
Sets whether an SSH key pair should be created automatically. -
userData
Sets the userData member. -
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.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.Key value metadata is not supported in DigitalOcean. User data can be retrieved withgetUserData()
.- Overrides:
getUserMetadata
in classTemplateOptions
- See Also:
-
getSshKeyIds
-
getPrivateNetworking
public boolean getPrivateNetworking() -
getBackupsEnabled
public boolean getBackupsEnabled() -
getAutoCreateKeyPair
public boolean getAutoCreateKeyPair() -
getUserData
public byte[] getUserData() -
clone
- Overrides:
clone
in classTemplateOptions
-
copyTo
- Overrides:
copyTo
in classTemplateOptions
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTemplateOptions
-
equals
- Overrides:
equals
in classTemplateOptions
-
string
public com.google.common.base.MoreObjects.ToStringHelper string()- Overrides:
string
in classTemplateOptions
-