@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getDocument() == null) ? 0 : getDocument().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); return hashCode; }
/** * <p> * The comment that you specify in the <code>CreateTrafficPolicy</code> request, if any. * </p> * * @param comment * The comment that you specify in the <code>CreateTrafficPolicy</code> request, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public TrafficPolicy withComment(String comment) { setComment(comment); return this; }
public TrafficPolicy unmarshall(StaxUnmarshallerContext context) throws Exception { TrafficPolicy trafficPolicy = new TrafficPolicy(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; trafficPolicy.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicy.setVersion(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicy.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicy.setType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicy.setDocument(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; trafficPolicy.setComment(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrafficPolicy() == null) ? 0 : getTrafficPolicy().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateTrafficPolicyCommentResult == false) return false; UpdateTrafficPolicyCommentResult other = (UpdateTrafficPolicyCommentResult) obj; if (other.getTrafficPolicy() == null ^ this.getTrafficPolicy() == null) return false; if (other.getTrafficPolicy() != null && other.getTrafficPolicy().equals(this.getTrafficPolicy()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrafficPolicy() == null) ? 0 : getTrafficPolicy().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTrafficPolicyResult == false) return false; GetTrafficPolicyResult other = (GetTrafficPolicyResult) obj; if (other.getTrafficPolicy() == null ^ this.getTrafficPolicy() == null) return false; if (other.getTrafficPolicy() != null && other.getTrafficPolicy().equals(this.getTrafficPolicy()) == false) return false; return true; }
return false; TrafficPolicy other = (TrafficPolicy) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == 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.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getDocument() == null ^ this.getDocument() == null) return false; if (other.getDocument() != null && other.getDocument().equals(this.getDocument()) == false) return false; if (other.getComment() == null ^ this.getComment() == null) return false; if (other.getComment() != null && other.getComment().equals(this.getComment()) == false) return false; return true;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrafficPolicy() == null) ? 0 : getTrafficPolicy().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTrafficPolicyResult == false) return false; CreateTrafficPolicyResult other = (CreateTrafficPolicyResult) obj; if (other.getTrafficPolicy() == null ^ this.getTrafficPolicy() == null) return false; if (other.getTrafficPolicy() != null && other.getTrafficPolicy().equals(this.getTrafficPolicy()) == 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; }
/** * 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getDocument() != null) sb.append("Document: ").append(getDocument()).append(","); if (getComment() != null) sb.append("Comment: ").append(getComment()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrafficPolicy() == null) ? 0 : getTrafficPolicy().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTrafficPolicyVersionResult == false) return false; CreateTrafficPolicyVersionResult other = (CreateTrafficPolicyVersionResult) obj; if (other.getTrafficPolicy() == null ^ this.getTrafficPolicy() == null) return false; if (other.getTrafficPolicy() != null && other.getTrafficPolicy().equals(this.getTrafficPolicy()) == 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; }