Class EC2TemplateOptions

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    AWSEC2TemplateOptions

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

    Usage

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

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

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