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.ImmutableTemplateOptionsNested 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, userMetadataFields 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()voidbooleanbooleanbooleanbooleanbyte[]Deprecated.Key value metadata is not supported in DigitalOcean.inthashCode()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.ToStringHelperstring()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, wrapInInitScriptMethods 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:
userMetadatain 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:
userMetadatain 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:
getUserMetadatain classTemplateOptions- See Also:
-
getSshKeyIds
-
getPrivateNetworking
public boolean getPrivateNetworking() -
getBackupsEnabled
public boolean getBackupsEnabled() -
getAutoCreateKeyPair
public boolean getAutoCreateKeyPair() -
getUserData
public byte[] getUserData() -
clone
- Overrides:
clonein classTemplateOptions
-
copyTo
- Overrides:
copyToin classTemplateOptions
-
hashCode
public int hashCode()- Overrides:
hashCodein classTemplateOptions
-
equals
- Overrides:
equalsin classTemplateOptions
-
string
public com.google.common.base.MoreObjects.ToStringHelper string()- Overrides:
stringin classTemplateOptions
-