@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBucket() == null) ? 0 : getBucket().hashCode()); hashCode = prime * hashCode + ((getFault() == null) ? 0 : getFault().hashCode()); hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getPrefix() == null) ? 0 : getPrefix().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSpotDatafeedSubscription() == null) ? 0 : getSpotDatafeedSubscription().hashCode()); return hashCode; }
/** * <p> * The Amazon S3 bucket where the Spot Instance data feed is located. * </p> * * @param bucket * The Amazon S3 bucket where the Spot Instance data feed is located. * @return Returns a reference to this object so that method calls can be chained together. */ public SpotDatafeedSubscription withBucket(String bucket) { setBucket(bucket); return this; }
public SpotDatafeedSubscription unmarshall(StaxUnmarshallerContext context) throws Exception { SpotDatafeedSubscription spotDatafeedSubscription = new SpotDatafeedSubscription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; spotDatafeedSubscription.setBucket(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setFault(SpotInstanceStateFaultStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setOwnerId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setPrefix(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeSpotDatafeedSubscriptionResult == false) return false; DescribeSpotDatafeedSubscriptionResult other = (DescribeSpotDatafeedSubscriptionResult) obj; if (other.getSpotDatafeedSubscription() == null ^ this.getSpotDatafeedSubscription() == null) return false; if (other.getSpotDatafeedSubscription() != null && other.getSpotDatafeedSubscription().equals(this.getSpotDatafeedSubscription()) == false) return false; return true; }
/** * <p> * The fault codes for the Spot Instance request, if any. * </p> * * @param fault * The fault codes for the Spot Instance request, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public SpotDatafeedSubscription withFault(SpotInstanceStateFault fault) { setFault(fault); return this; }
public SpotDatafeedSubscription unmarshall(StaxUnmarshallerContext context) throws Exception { SpotDatafeedSubscription spotDatafeedSubscription = new SpotDatafeedSubscription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; spotDatafeedSubscription.setOwnerId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setBucket(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setPrefix(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setFault(SpotInstanceStateFaultStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateSpotDatafeedSubscriptionResult == false) return false; CreateSpotDatafeedSubscriptionResult other = (CreateSpotDatafeedSubscriptionResult) obj; if (other.getSpotDatafeedSubscription() == null ^ this.getSpotDatafeedSubscription() == null) return false; if (other.getSpotDatafeedSubscription() != null && other.getSpotDatafeedSubscription().equals(this.getSpotDatafeedSubscription()) == false) return false; return true; }
/** * <p> * The fault codes for the Spot Instance request, if any. * </p> * * @param fault * The fault codes for the Spot Instance request, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public SpotDatafeedSubscription withFault(SpotInstanceStateFault fault) { setFault(fault); return this; }
return false; SpotDatafeedSubscription other = (SpotDatafeedSubscription) obj; if (other.getBucket() == null ^ this.getBucket() == null) return false; if (other.getBucket() != null && other.getBucket().equals(this.getBucket()) == false) return false; if (other.getFault() == null ^ this.getFault() == null) return false; if (other.getFault() != null && other.getFault().equals(this.getFault()) == false) return false; if (other.getOwnerId() == null ^ this.getOwnerId() == null) return false; if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getPrefix() == null ^ this.getPrefix() == null) return false; if (other.getPrefix() != null && other.getPrefix().equals(this.getPrefix()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true;
public SpotDatafeedSubscription unmarshall(StaxUnmarshallerContext context) throws Exception { SpotDatafeedSubscription spotDatafeedSubscription = new SpotDatafeedSubscription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; spotDatafeedSubscription.setBucket(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setFault(SpotInstanceStateFaultStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setOwnerId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setPrefix(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; spotDatafeedSubscription.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSpotDatafeedSubscription() == null) ? 0 : getSpotDatafeedSubscription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeSpotDatafeedSubscriptionResult == false) return false; DescribeSpotDatafeedSubscriptionResult other = (DescribeSpotDatafeedSubscriptionResult)obj; if (other.getSpotDatafeedSubscription() == null ^ this.getSpotDatafeedSubscription() == null) return false; if (other.getSpotDatafeedSubscription() != null && other.getSpotDatafeedSubscription().equals(this.getSpotDatafeedSubscription()) == false) return false; return true; }
/** * <p> * The Amazon S3 bucket where the Spot Instance data feed is located. * </p> * * @param bucket * The Amazon S3 bucket where the Spot Instance data feed is located. * @return Returns a reference to this object so that method calls can be chained together. */ public SpotDatafeedSubscription withBucket(String bucket) { setBucket(bucket); 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 (getBucket() != null) sb.append("Bucket: ").append(getBucket()).append(","); if (getFault() != null) sb.append("Fault: ").append(getFault()).append(","); if (getOwnerId() != null) sb.append("OwnerId: ").append(getOwnerId()).append(","); if (getPrefix() != null) sb.append("Prefix: ").append(getPrefix()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSpotDatafeedSubscription() == null) ? 0 : getSpotDatafeedSubscription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateSpotDatafeedSubscriptionResult == false) return false; CreateSpotDatafeedSubscriptionResult other = (CreateSpotDatafeedSubscriptionResult)obj; if (other.getSpotDatafeedSubscription() == null ^ this.getSpotDatafeedSubscription() == null) return false; if (other.getSpotDatafeedSubscription() != null && other.getSpotDatafeedSubscription().equals(this.getSpotDatafeedSubscription()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getBucket() == null) ? 0 : getBucket().hashCode()); hashCode = prime * hashCode + ((getPrefix() == null) ? 0 : getPrefix().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getFault() == null) ? 0 : getFault().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSpotDatafeedSubscription() == null) ? 0 : getSpotDatafeedSubscription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeSpotDatafeedSubscriptionResult == false) return false; DescribeSpotDatafeedSubscriptionResult other = (DescribeSpotDatafeedSubscriptionResult) obj; if (other.getSpotDatafeedSubscription() == null ^ this.getSpotDatafeedSubscription() == null) return false; if (other.getSpotDatafeedSubscription() != null && other.getSpotDatafeedSubscription().equals(this.getSpotDatafeedSubscription()) == false) return false; return true; }