Examples of InstanceIdSetType


Examples of com.amazon.ec2.InstanceIdSetType

    public StartInstancesResponse startInstances(StartInstances startInstances) {
        EC2StartInstances request = new EC2StartInstances();
        StartInstancesType sit = startInstances.getStartInstances();

        // -> toEC2StartInstances
        InstanceIdSetType iist = sit.getInstancesSet();
        InstanceIdType[] items = iist.getItem();
        if (null != items) {  // -> should not be empty
            for (int i = 0; i < items.length; i++)
                request.addInstanceId(items[i].getInstanceId());
        }
        return toStartInstancesResponse(engine.startInstances(request));
View Full Code Here

Examples of com.amazon.ec2.InstanceIdSetType

        EC2StopInstances request = new EC2StopInstances();
        StopInstancesType sit = stopInstances.getStopInstances();
        Boolean force = sit.getForce();

        // -> toEC2StopInstances
        InstanceIdSetType iist = sit.getInstancesSet();
        InstanceIdType[] items = iist.getItem();
        if (null != items) {  // -> should not be empty
            for (int i = 0; i < items.length; i++)
                request.addInstanceId(items[i].getInstanceId());
        }
View Full Code Here

Examples of com.amazon.ec2.InstanceIdSetType

    public TerminateInstancesResponse terminateInstances(TerminateInstances terminateInstances) {
        EC2StopInstances request = new EC2StopInstances();
        TerminateInstancesType sit = terminateInstances.getTerminateInstances();

        // -> toEC2StopInstances
        InstanceIdSetType iist = sit.getInstancesSet();
        InstanceIdType[] items = iist.getItem();
        if (null != items) {  // -> should not be empty
            for (int i = 0; i < items.length; i++)
                request.addInstanceId(items[i].getInstanceId());
        }
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0_elastic.generated.v2010_08_31.InstanceIdSetType

            throw new IllegalArgumentException("req may not be null");
        }

        final List<String> elasticIDs = new LinkedList<String>();

        final InstanceIdSetType tiitSet = req.getInstancesSet();
        if (tiitSet != null) {

            final InstanceIdType[] tiits = tiitSet.getItem();

            if (tiits == null || tiits.length == 0) {
                return EMPTY_STRING_ARRAY; // *** EARLY RETURN ***
            }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.