String sku = ec2OnDemandPricing.getSku(); JSONObject current = jsonHelper.getKeyValue(onDemand, sku, JSONObject.class); JSONObject pricingWrapper = jsonHelper.getKeyValue(current, sku + JSON_SKU_WRAPPER_SUFFIX, JSONObject.class);
String sku = ec2OnDemandPricing.getSku(); JSONObject current = jsonHelper.getKeyValue(onDemand, sku, JSONObject.class); JSONObject pricingWrapper = jsonHelper.getKeyValue(current, sku + JSON_SKU_WRAPPER_SUFFIX, JSONObject.class);
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { Ec2OnDemandPricingKey theEc2OnDemandPricingKey; theEc2OnDemandPricingKey = this.getEc2OnDemandPricingKey(); strategy.appendField(locator, this, "ec2OnDemandPricingKey", buffer, theEc2OnDemandPricingKey, (this.ec2OnDemandPricingKey!= null)); } { BigDecimal thePricePerHour; thePricePerHour = this.getPricePerHour(); strategy.appendField(locator, this, "pricePerHour", buffer, thePricePerHour, (this.pricePerHour!= null)); } { String theSku; theSku = this.getSku(); strategy.appendField(locator, this, "sku", buffer, theSku, (this.sku!= null)); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { Ec2OnDemandPricingKey theEc2OnDemandPricingKey; theEc2OnDemandPricingKey = this.getEc2OnDemandPricingKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ec2OnDemandPricingKey", theEc2OnDemandPricingKey), currentHashCode, theEc2OnDemandPricingKey, (this.ec2OnDemandPricingKey!= null)); } { BigDecimal thePricePerHour; thePricePerHour = this.getPricePerHour(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pricePerHour", thePricePerHour), currentHashCode, thePricePerHour, (this.pricePerHour!= null)); } { String theSku; theSku = this.getSku(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sku", theSku), currentHashCode, theSku, (this.sku!= null)); } return currentHashCode; }
if (skuShouldBeCopiedAndSet == Boolean.TRUE) { String sourceSku; sourceSku = this.getSku(); String copySku = ((String) strategy.copy(LocatorUtils.property(locator, "sku", sourceSku), sourceSku, (this.sku!= null))); copy.setSku(copySku);