Examples of DescribeImagesResponseItemType


Examples of com.amazon.ec2.DescribeImagesResponseItemType

        for (int i = 0; i < images.length; i++) {
            String accountName = images[i].getAccountName();
            String domainId = images[i].getDomainId();
            String ownerId = domainId + ":" + accountName;

            DescribeImagesResponseItemType param3 = new DescribeImagesResponseItemType();
            param3.setImageId(images[i].getId());
            param3.setImageLocation("");
            param3.setImageState(images[i].getState());
            param3.setImageOwnerId(ownerId);
            param3.setIsPublic(images[i].getIsPublic());

            ProductCodesSetType param4 = new ProductCodesSetType();
            ProductCodesSetItemType param5 = new ProductCodesSetItemType();
            param5.setProductCode("");
            param5.setType("");
            param4.addItem(param5);
            param3.setProductCodes(param4);

            String description = images[i].getDescription();
            param3.setDescription((null == description ? "" : description));

            param3.setArchitecture(images[i].getArchitecture());

            param3.setImageType(images[i].getImageType());
            param3.setKernelId("");
            param3.setRamdiskId("");
            param3.setPlatform("");
            param3.setHypervisor(images[i].getHypervisor());

            StateReasonType param6 = new StateReasonType();
            param6.setCode("");
            param6.setMessage("");
            param3.setStateReason(param6);

            param3.setImageOwnerAlias("");
            param3.setName(images[i].getName());
            param3.setRootDeviceType("");
            param3.setRootDeviceName("");

            BlockDeviceMappingType param7 = new BlockDeviceMappingType();
            BlockDeviceMappingItemType param8 = new BlockDeviceMappingItemType();
            BlockDeviceMappingItemTypeChoice_type0 param9 = new BlockDeviceMappingItemTypeChoice_type0();
            param8.setDeviceName("");
            param9.setVirtualName("");
            EbsBlockDeviceType param10 = new EbsBlockDeviceType();
            param10.setSnapshotId("");
            param10.setVolumeSize(0);
            param10.setDeleteOnTermination(false);
            param9.setEbs(param10);
            param8.setBlockDeviceMappingItemTypeChoice_type0(param9);
            param7.addItem(param8);

            param3.setBlockDeviceMapping(param7);

            EC2TagKeyValue[] tags = images[i].getResourceTags();
            param3.setTagSet(setResourceTags(tags));

            param2.addItem(param3);
        }

        param1.setImagesSet(param2);
View Full Code Here

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

            final FileListing listing = listings[i];
            if (listing == null) {
                continue; // *** SKIP ***
            }

            final DescribeImagesResponseItemType dirit =
                                    new DescribeImagesResponseItemType();
            dirit.setArchitecture("i386"); // todo


            final String name = listing.getName();
            if (!inReq(name, req)) {
                continue;
            }

            try {
                // all from same place currently
                givenLocationBase = this.repository.getImageLocation(caller, name);
            } catch (CannotTranslateException e) {
                throw new RuntimeException("Unexpected: " + e.getMessage(), e);
            }
            if (givenLocationBase == null) {
                throw new IllegalArgumentException(
                    "givenLocationBase may not be null");
            }
            //String locationBase = cleanLocationBase(givenLocationBase);

            dirit.setImageId(name);
            dirit.setImageLocation(givenLocationBase + "/");
            dirit.setImageOwnerId(ownerID);
            dirit.setImageState("available"); // todo
            dirit.setImageType("machine"); // todo
            dirit.setIsPublic(!listing.isReadWrite()); // cloud convention
            dirit.setKernelId("default-kernel"); // todo
            dirit.setRamdiskId("default-ramdisk"); // todo
            dirit.setBlockDeviceMapping(new BlockDeviceMappingType(
                    new BlockDeviceMappingItemType[]{}));
            retList.add(dirit);
        }

        dirits.setItem(
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.