Class AWSEC2TemplateOptions

  • All Implemented Interfaces:
    Cloneable

    public class AWSEC2TemplateOptions
    extends EC2TemplateOptions
    implements Cloneable
    Contains options supported in the ComputeService#runNode operation on the "ec2" provider.

    Usage

    The recommended way to instantiate a AWSEC2TemplateOptions object is to statically import AWSEC2TemplateOptions.* and invoke a static creation method followed by an instance mutator (if needed):

    import static org.jclouds.aws.ec2.compute.options.AWSEC2TemplateOptions.Builder.*;

    ComputeService client = // get connection templateBuilder.options(inboundPorts(22, 80, 8080, 443)); Set set = client.createNodesInGroup(tag, 2, templateBuilder.build());