public static class AWSEC2TemplateOptions.Builder extends Object
Constructor and Description |
---|
AWSEC2TemplateOptions.Builder() |
public static AWSEC2TemplateOptions overrideLoginUser(String user)
public static AWSEC2TemplateOptions overrideLoginPassword(String password)
public static AWSEC2TemplateOptions overrideLoginPrivateKey(String privateKey)
public static AWSEC2TemplateOptions overrideAuthenticateSudo(boolean authenticateSudo)
public static AWSEC2TemplateOptions overrideLoginCredentials(LoginCredentials credentials)
public static AWSEC2TemplateOptions securityGroupIds(String... groupNames)
AWSEC2TemplateOptions#securityGroupIds(Iterable)
public static AWSEC2TemplateOptions securityGroupIds(Iterable<String> groupNames)
AWSEC2TemplateOptions#securityGroupIds(Iterable)
public static AWSEC2TemplateOptions blockDeviceMappings(Set<? extends BlockDeviceMapping> blockDeviceMappings)
public static AWSEC2TemplateOptions mapEBSSnapshotToDeviceName(String deviceName, String snapshotId, @Nullable Integer sizeInGib, boolean deleteOnTermination)
public static AWSEC2TemplateOptions mapNewVolumeToDeviceName(String deviceName, int sizeInGib, boolean deleteOnTermination)
public static AWSEC2TemplateOptions mapEphemeralDeviceToDeviceName(String deviceName, String virtualName)
public static AWSEC2TemplateOptions unmapDeviceNamed(String deviceName)
public static AWSEC2TemplateOptions securityGroups(String... groupIds)
AWSEC2TemplateOptions#securityGroups(Iterable)
public static AWSEC2TemplateOptions securityGroups(Iterable<String> groupIds)
AWSEC2TemplateOptions#securityGroups(Iterable)
public static AWSEC2TemplateOptions keyPair(String keyPair)
public static AWSEC2TemplateOptions userData(byte[] unencodedData)
public static AWSEC2TemplateOptions noKeyPair()
AWSEC2TemplateOptions.noKeyPair()
public static AWSEC2TemplateOptions placementGroup(String placementGroup)
AWSEC2TemplateOptions.placementGroup
public static AWSEC2TemplateOptions noPlacementGroup()
public static AWSEC2TemplateOptions enableMonitoring()
public static AWSEC2TemplateOptions inboundPorts(int... ports)
TemplateOptions.inboundPorts
public static AWSEC2TemplateOptions blockOnPort(int port, int seconds)
RunScriptOptions.port
public static AWSEC2TemplateOptions installPrivateKey(String rsaKey)
public static AWSEC2TemplateOptions authorizePublicKey(String rsaKey)
public static AWSEC2TemplateOptions subnetId(String subnetId)
AWSEC2TemplateOptions.subnetId
public static AWSEC2TemplateOptions iamInstanceProfileArn(String arn)
public static AWSEC2TemplateOptions iamInstanceProfileName(String name)
public static AWSEC2TemplateOptions privateIpAddress(String address)
public static AWSEC2TemplateOptions spotPrice(Float spotPrice)
AWSEC2TemplateOptions.spotPrice
public static AWSEC2TemplateOptions spotOptions(RequestSpotInstancesOptions spotOptions)
AWSEC2TemplateOptions.spotOptions
public static AWSEC2TemplateOptions userMetadata(Map<String,String> userMetadata)
TemplateOptions.userMetadata(Map)
public static AWSEC2TemplateOptions userMetadata(String key, String value)
public static AWSEC2TemplateOptions blockUntilRunning(boolean blockUntilRunning)
public static AWSEC2TemplateOptions nodeNames(Iterable<String> nodeNames)
TemplateOptions.nodeNames(Iterable)
public static AWSEC2TemplateOptions networks(Iterable<String> networks)
TemplateOptions.networks(Iterable)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.