@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInstanceCount() == null) ? 0 : getInstanceCount().hashCode()); hashCode = prime * hashCode + ((getOfferingId() == null) ? 0 : getOfferingId().hashCode()); return hashCode; }
/** * <p> * The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is reserved * and cannot be specified in a request * </p> * * @param instanceCount * The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is * reserved and cannot be specified in a request * @return Returns a reference to this object so that method calls can be chained together. */ public TargetConfiguration withInstanceCount(Integer instanceCount) { setInstanceCount(instanceCount); return this; }
/** * <p> * The ID of the Convertible Reserved Instance offering. * </p> * * @param offeringId * The ID of the Convertible Reserved Instance offering. * @return Returns a reference to this object so that method calls can be chained together. */ public TargetConfiguration withOfferingId(String offeringId) { setOfferingId(offeringId); return this; }
public TargetConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { TargetConfiguration targetConfiguration = new TargetConfiguration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return targetConfiguration; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("instanceCount", targetDepth)) { targetConfiguration.setInstanceCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("offeringId", targetDepth)) { targetConfiguration.setOfferingId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return targetConfiguration; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReservationValue() == null) ? 0 : getReservationValue().hashCode()); hashCode = prime * hashCode + ((getTargetConfiguration() == null) ? 0 : getTargetConfiguration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TargetReservationValue == false) return false; TargetReservationValue other = (TargetReservationValue) obj; if (other.getReservationValue() == null ^ this.getReservationValue() == null) return false; if (other.getReservationValue() != null && other.getReservationValue().equals(this.getReservationValue()) == false) return false; if (other.getTargetConfiguration() == null ^ this.getTargetConfiguration() == null) return false; if (other.getTargetConfiguration() != null && other.getTargetConfiguration().equals(this.getTargetConfiguration()) == false) return false; return true; }
public TargetConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { TargetConfiguration targetConfiguration = new TargetConfiguration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return targetConfiguration; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("instanceCount", targetDepth)) { targetConfiguration.setInstanceCount(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("offeringId", targetDepth)) { targetConfiguration.setOfferingId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return targetConfiguration; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReservationValue() == null) ? 0 : getReservationValue().hashCode()); hashCode = prime * hashCode + ((getTargetConfiguration() == null) ? 0 : getTargetConfiguration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TargetReservationValue == false) return false; TargetReservationValue other = (TargetReservationValue) obj; if (other.getReservationValue() == null ^ this.getReservationValue() == null) return false; if (other.getReservationValue() != null && other.getReservationValue().equals(this.getReservationValue()) == false) return false; if (other.getTargetConfiguration() == null ^ this.getTargetConfiguration() == null) return false; if (other.getTargetConfiguration() != null && other.getTargetConfiguration().equals(this.getTargetConfiguration()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TargetConfiguration == false) return false; TargetConfiguration other = (TargetConfiguration) obj; if (other.getInstanceCount() == null ^ this.getInstanceCount() == null) return false; if (other.getInstanceCount() != null && other.getInstanceCount().equals(this.getInstanceCount()) == false) return false; if (other.getOfferingId() == null ^ this.getOfferingId() == null) return false; if (other.getOfferingId() != null && other.getOfferingId().equals(this.getOfferingId()) == false) return false; return true; }
/** * <p> * The ID of the Convertible Reserved Instance offering. * </p> * * @param offeringId * The ID of the Convertible Reserved Instance offering. * @return Returns a reference to this object so that method calls can be chained together. */ public TargetConfiguration withOfferingId(String offeringId) { setOfferingId(offeringId); return this; }
/** * <p> * The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is reserved * and cannot be specified in a request * </p> * * @param instanceCount * The number of instances the Convertible Reserved Instance offering can be applied to. This parameter is * reserved and cannot be specified in a request * @return Returns a reference to this object so that method calls can be chained together. */ public TargetConfiguration withInstanceCount(Integer instanceCount) { setInstanceCount(instanceCount); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInstanceCount() != null) sb.append("InstanceCount: ").append(getInstanceCount()).append(","); if (getOfferingId() != null) sb.append("OfferingId: ").append(getOfferingId()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInstanceCount() == null) ? 0 : getInstanceCount().hashCode()); hashCode = prime * hashCode + ((getOfferingId() == null) ? 0 : getOfferingId().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TargetConfiguration == false) return false; TargetConfiguration other = (TargetConfiguration) obj; if (other.getInstanceCount() == null ^ this.getInstanceCount() == null) return false; if (other.getInstanceCount() != null && other.getInstanceCount().equals(this.getInstanceCount()) == false) return false; if (other.getOfferingId() == null ^ this.getOfferingId() == null) return false; if (other.getOfferingId() != null && other.getOfferingId().equals(this.getOfferingId()) == false) return false; return true; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInstanceCount() != null) sb.append("InstanceCount: ").append(getInstanceCount()).append(","); if (getOfferingId() != null) sb.append("OfferingId: ").append(getOfferingId()); sb.append("}"); return sb.toString(); }