Class CloudStackTemplateOptions

  • All Implemented Interfaces:
    Cloneable

    public class CloudStackTemplateOptions
    extends TemplateOptions
    implements Cloneable
    Contains options supported by the ComputeService#createNodesInGroup(String, int, TemplateOptions) and ComputeService#createNodesInGroup(String, int, TemplateOptions) operations on the gogrid provider.

    Usage

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

     import static org.jclouds.compute.options.CloudStackTemplateOptions.Builder.*;
     ComputeService client = // get connection
     templateBuilder.options(inboundPorts(22, 80, 8080, 443));
     Set<? extends NodeMetadata> set = client.createNodesInGroup(tag, 2, templateBuilder.build());