Examples of LaunchSpecificationRequestType


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

        // only including parameters that are actually used right now

        assureRequiredParameter("LaunchSpecification.ImageId", imageId);
        assureRequiredParameter("SpotPrice", spotPrice);       
       
        final LaunchSpecificationRequestType launchSpec = new LaunchSpecificationRequestType();
       
        launchSpec.setImageId(imageId);
        launchSpec.setKeyName(keyName);
        if (userData != null) {
            final UserDataType data = new UserDataType();
            data.setData(userData);
            launchSpec.setUserData(data);
        }
        launchSpec.setInstanceType(instanceType);

        final RequestSpotInstancesType request = new RequestSpotInstancesType();
        request.setInstanceCount(new BigInteger(instanceCount));
        request.setSpotPrice(spotPrice);
        request.setLaunchSpecification(launchSpec);
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.