@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getTTL() == null) ? 0 : getTTL().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyId() == null) ? 0 : getTrafficPolicyId().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyVersion() == null) ? 0 : getTrafficPolicyVersion().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyType() == null) ? 0 : getTrafficPolicyType().hashCode()); return hashCode; }
public TrafficPolicyInstance unmarshall(StaxUnmarshallerContext context) throws Exception { TrafficPolicyInstance trafficPolicyInstance = new TrafficPolicyInstance(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; trafficPolicyInstance.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicyInstance.setHostedZoneId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicyInstance.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicyInstance.setTTL(LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicyInstance.setState(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicyInstance.setMessage(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicyInstance.setTrafficPolicyId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicyInstance.setTrafficPolicyVersion(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicyInstance.setTrafficPolicyType(StringStaxUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateTrafficPolicyInstanceResult == false) return false; UpdateTrafficPolicyInstanceResult other = (UpdateTrafficPolicyInstanceResult) obj; if (other.getTrafficPolicyInstance() == null ^ this.getTrafficPolicyInstance() == null) return false; if (other.getTrafficPolicyInstance() != null && other.getTrafficPolicyInstance().equals(this.getTrafficPolicyInstance()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTrafficPolicyInstanceResult == false) return false; GetTrafficPolicyInstanceResult other = (GetTrafficPolicyInstanceResult) obj; if (other.getTrafficPolicyInstance() == null ^ this.getTrafficPolicyInstance() == null) return false; if (other.getTrafficPolicyInstance() != null && other.getTrafficPolicyInstance().equals(this.getTrafficPolicyInstance()) == false) return false; return true; }
return false; TrafficPolicyInstance other = (TrafficPolicyInstance) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getTTL() == null ^ this.getTTL() == null) return false; if (other.getTTL() != null && other.getTTL().equals(this.getTTL()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getTrafficPolicyId() == null ^ this.getTrafficPolicyId() == null) return false; if (other.getTrafficPolicyId() != null && other.getTrafficPolicyId().equals(this.getTrafficPolicyId()) == false)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTrafficPolicyInstanceResult == false) return false; CreateTrafficPolicyInstanceResult other = (CreateTrafficPolicyInstanceResult) obj; if (other.getTrafficPolicyInstance() == null ^ this.getTrafficPolicyInstance() == null) return false; if (other.getTrafficPolicyInstance() != null && other.getTrafficPolicyInstance().equals(this.getTrafficPolicyInstance()) == false) return false; if (other.getLocation() == null ^ this.getLocation() == null) return false; if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false) return false; return true; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getTTL() != null) sb.append("TTL: ").append(getTTL()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getTrafficPolicyId() != null) sb.append("TrafficPolicyId: ").append(getTrafficPolicyId()).append(","); if (getTrafficPolicyVersion() != null) sb.append("TrafficPolicyVersion: ").append(getTrafficPolicyVersion()).append(","); if (getTrafficPolicyType() != null) sb.append("TrafficPolicyType: ").append(getTrafficPolicyType()); sb.append("}"); return sb.toString();