Examples of DescribeSpotPriceHistoryResponseType


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

                logger.error(msg + e.getMessage());
            }
        }
       

        DescribeSpotPriceHistoryResponseType result = new DescribeSpotPriceHistoryResponseType();
       
        if(spotPriceHistory != null){
            SpotPriceHistorySetItemType[] items = new SpotPriceHistorySetItemType[spotPriceHistory.length];
           
            for (int i = 0; i < spotPriceHistory.length; i++) {
                SpotPriceEntry spotPriceEntry = spotPriceHistory[i];               
               
                SpotPriceHistorySetItemType item = new SpotPriceHistorySetItemType();
                item.setInstanceType(supportedType);
                item.setTimestamp(spotPriceEntry.getTimeStamp());
                item.setSpotPrice(spotPriceHistory[i].getSpotPrice().toString());
               
                items[i] = item;
            }

            SpotPriceHistorySetType spotPriceHistorySet = new SpotPriceHistorySetType();
            spotPriceHistorySet.setItem(items);

            result.setSpotPriceHistorySet(spotPriceHistorySet);
        }
       
        return result;
    }
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.