Package org.jclouds.ec2.compute.options
Class EC2TemplateOptions.Builder
- java.lang.Object
-
- org.jclouds.compute.options.RunScriptOptions.Builder
-
- org.jclouds.compute.options.TemplateOptions.Builder
-
- org.jclouds.ec2.compute.options.EC2TemplateOptions.Builder
-
- Enclosing class:
- EC2TemplateOptions
public static class EC2TemplateOptions.Builder extends TemplateOptions.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
Methods inherited from class org.jclouds.compute.options.TemplateOptions.Builder
networks
-
Methods inherited from class org.jclouds.compute.options.RunScriptOptions.Builder
wrapInInitScript
-
-
-
-
Method Detail
-
blockDeviceMappings
public static EC2TemplateOptions blockDeviceMappings(Set<? extends BlockDeviceMapping> blockDeviceMappings)
- See Also:
EC2TemplateOptions.blockDeviceMappings
-
mapEBSSnapshotToDeviceName
public static EC2TemplateOptions mapEBSSnapshotToDeviceName(String deviceName, String snapshotId, @Nullable Integer sizeInGib, boolean deleteOnTermination)
-
mapNewVolumeToDeviceName
public static EC2TemplateOptions mapNewVolumeToDeviceName(String deviceName, int sizeInGib, boolean deleteOnTermination)
-
mapEphemeralDeviceToDeviceName
public static EC2TemplateOptions mapEphemeralDeviceToDeviceName(String deviceName, String virtualName)
-
unmapDeviceNamed
public static EC2TemplateOptions unmapDeviceNamed(String deviceName)
-
securityGroups
public static EC2TemplateOptions securityGroups(String... groupNames)
- See Also:
EC2TemplateOptions#securityGroups(Iterable
)
-
securityGroups
public static EC2TemplateOptions securityGroups(Iterable<String> groupNames)
- See Also:
EC2TemplateOptions#securityGroups(Iterable
)
-
keyPair
public static EC2TemplateOptions keyPair(String keyPair)
- See Also:
EC2TemplateOptions.keyPair
-
userData
public static EC2TemplateOptions userData(byte[] unencodedData)
- See Also:
EC2TemplateOptions.userData
-
noKeyPair
public static EC2TemplateOptions noKeyPair()
- See Also:
EC2TemplateOptions.noKeyPair
-
inboundPorts
public static EC2TemplateOptions inboundPorts(int... ports)
- See Also:
TemplateOptions.inboundPorts
-
blockOnPort
public static EC2TemplateOptions blockOnPort(int port, int seconds)
- See Also:
RunScriptOptions.port
-
installPrivateKey
public static EC2TemplateOptions installPrivateKey(String rsaKey)
-
authorizePublicKey
public static EC2TemplateOptions authorizePublicKey(String rsaKey)
-
userMetadata
public static EC2TemplateOptions userMetadata(Map<String,String> userMetadata)
- See Also:
TemplateOptions.userMetadata(Map)
-
nodeNames
public static EC2TemplateOptions nodeNames(Iterable<String> nodeNames)
- See Also:
TemplateOptions.nodeNames(Iterable)
-
networks
public static EC2TemplateOptions networks(Iterable<String> networks)
- See Also:
TemplateOptions.networks(Iterable)
-
overrideLoginUser
public static EC2TemplateOptions overrideLoginUser(String user)
-
overrideLoginPassword
public static EC2TemplateOptions overrideLoginPassword(String password)
-
overrideLoginPrivateKey
public static EC2TemplateOptions overrideLoginPrivateKey(String privateKey)
-
overrideAuthenticateSudo
public static EC2TemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)
-
overrideLoginCredentials
public static EC2TemplateOptions overrideLoginCredentials(LoginCredentials credentials)
-
nameTask
public static EC2TemplateOptions nameTask(String name)
-
runAsRoot
public static EC2TemplateOptions runAsRoot(boolean value)
-
tags
public static EC2TemplateOptions tags(Iterable<String> tags)
-
blockUntilRunning
public static EC2TemplateOptions blockUntilRunning(boolean blockUntilRunning)
-
runScript
public static EC2TemplateOptions runScript(Statement script)
-
runScript
public static EC2TemplateOptions runScript(String script)
-
userMetadata
public static EC2TemplateOptions userMetadata(String key, String value)
-
blockOnComplete
public static EC2TemplateOptions blockOnComplete(boolean value)
-
maxCount
public static EC2TemplateOptions maxCount(Integer maxCount)
-
clientToken
public static EC2TemplateOptions clientToken(String clientToken)
-
-