@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getTTL() == null) ? 0 : getTTL().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyId() == null) ? 0 : getTrafficPolicyId().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyVersion() == null) ? 0 : getTrafficPolicyVersion().hashCode()); return hashCode; }
/** * <p> * The ID of the traffic policy instance that you want to update. * </p> * * @param id * The ID of the traffic policy instance that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTrafficPolicyInstanceRequest withId(String id) { setId(id); return this; }
/** * <p> * The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets. * </p> * * @param tTL * The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTrafficPolicyInstanceRequest withTTL(Long tTL) { setTTL(tTL); return this; }
/** * <p> * The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the * specified traffic policy instance. * </p> * * @param trafficPolicyId * The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the * specified traffic policy instance. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTrafficPolicyInstanceRequest withTrafficPolicyId(String trafficPolicyId) { setTrafficPolicyId(trafficPolicyId); return this; }
/** * <p> * The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the * specified traffic policy instance. * </p> * * @param trafficPolicyVersion * The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for * the specified traffic policy instance. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTrafficPolicyInstanceRequest withTrafficPolicyVersion(Integer trafficPolicyVersion) { setTrafficPolicyVersion(trafficPolicyVersion); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateTrafficPolicyInstanceRequest == false) return false; UpdateTrafficPolicyInstanceRequest other = (UpdateTrafficPolicyInstanceRequest) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == 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.getTrafficPolicyId() == null ^ this.getTrafficPolicyId() == null) return false; if (other.getTrafficPolicyId() != null && other.getTrafficPolicyId().equals(this.getTrafficPolicyId()) == false) return false; if (other.getTrafficPolicyVersion() == null ^ this.getTrafficPolicyVersion() == null) return false; if (other.getTrafficPolicyVersion() != null && other.getTrafficPolicyVersion().equals(this.getTrafficPolicyVersion()) == 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 (getTTL() != null) sb.append("TTL: ").append(getTTL()).append(","); if (getTrafficPolicyId() != null) sb.append("TrafficPolicyId: ").append(getTrafficPolicyId()).append(","); if (getTrafficPolicyVersion() != null) sb.append("TrafficPolicyVersion: ").append(getTrafficPolicyVersion()); sb.append("}"); return sb.toString(); }
uriResourcePath = com.amazonaws.transform.PathMarshallers.NON_GREEDY.marshall(uriResourcePath, "Id", updateTrafficPolicyInstanceRequest.getId()); request.setResourcePath(uriResourcePath); if (updateTrafficPolicyInstanceRequest != null) { if (updateTrafficPolicyInstanceRequest.getTTL() != null) { xmlWriter.startElement("TTL").value(updateTrafficPolicyInstanceRequest.getTTL()).endElement(); if (updateTrafficPolicyInstanceRequest.getTrafficPolicyId() != null) { xmlWriter.startElement("TrafficPolicyId").value(updateTrafficPolicyInstanceRequest.getTrafficPolicyId()).endElement(); if (updateTrafficPolicyInstanceRequest.getTrafficPolicyVersion() != null) { xmlWriter.startElement("TrafficPolicyVersion").value(updateTrafficPolicyInstanceRequest.getTrafficPolicyVersion()).endElement();