/** * Create an instance of {@link Ec2OnDemandPricing } * */ public Ec2OnDemandPricing createEc2OnDemandPricing() { return new Ec2OnDemandPricing(); }
public Object createNewInstance() { return new Ec2OnDemandPricing(); }
@Override public Ec2OnDemandPricing build() { if (_storedValue == null) { return this.init(new Ec2OnDemandPricing()); } else { return ((Ec2OnDemandPricing) _storedValue); } }
preInstalledSoftware.toString().equalsIgnoreCase(JSON_ATTRIBUTE_VALUE_PRE_INSTALLED_SOFTWARE)) result = new Ec2OnDemandPricing(new Ec2OnDemandPricingKey(convertLocationToRegionName(location.toString()), instanceType.toString()), null, sku);
preInstalledSoftware.toString().equalsIgnoreCase(JSON_ATTRIBUTE_VALUE_PRE_INSTALLED_SOFTWARE)) result = new Ec2OnDemandPricing(new Ec2OnDemandPricingKey(convertLocationToRegionName(location.toString()), instanceType.toString()), null, sku);
assertEquals(Collections.singletonList(new Ec2OnDemandPricing(new Ec2OnDemandPricingKey(AWS_REGION_NAME, EC2_INSTANCE_TYPE), HOURLY_PRICE, SKU)), result);
List<Ec2OnDemandPricing> ec2OnDemandPricingEntries = Arrays.asList(new Ec2OnDemandPricing(ec2OnDemandPricingKeys.get(1), HOURLY_PRICE_2, NO_SKU), new Ec2OnDemandPricing(ec2OnDemandPricingKeys.get(2), HOURLY_PRICE_5, NO_SKU), new Ec2OnDemandPricing(ec2OnDemandPricingKeys.get(3), HOURLY_PRICE_4, NO_SKU));
assertEquals(new Ec2OnDemandPricing(new Ec2OnDemandPricingKey(AWS_REGION_NAME, EC2_INSTANCE_TYPE), NO_HOURLY_PRICE, SKU), ec2OnDemandPricingUpdateServiceImpl .createEc2OnDemandPricingEntry(SKU, AWS_REGION_NAME, Ec2OnDemandPricingUpdateServiceImpl.JSON_ATTRIBUTE_VALUE_OPERATING_SYSTEM, EC2_INSTANCE_TYPE, Ec2OnDemandPricingUpdateServiceImpl.JSON_ATTRIBUTE_VALUE_TENANCY, "BoxUsage" + RANDOM_SUFFIX, Ec2OnDemandPricingUpdateServiceImpl.JSON_ATTRIBUTE_VALUE_PRE_INSTALLED_SOFTWARE)); assertEquals(new Ec2OnDemandPricing(new Ec2OnDemandPricingKey(AWS_REGION_NAME, EC2_INSTANCE_TYPE), NO_HOURLY_PRICE, SKU), ec2OnDemandPricingUpdateServiceImpl .createEc2OnDemandPricingEntry(SKU, AWS_REGION_NAME, Ec2OnDemandPricingUpdateServiceImpl.JSON_ATTRIBUTE_VALUE_OPERATING_SYSTEM,