@Override public int hashCode() { final int prime = 31; int hashCode = 1; 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 + ((getTrafficPolicyId() == null) ? 0 : getTrafficPolicyId().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyVersion() == null) ? 0 : getTrafficPolicyVersion().hashCode()); return hashCode; }
/** * <p> * The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the * configuration in a traffic policy. * </p> * * @param hostedZoneId * The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the * configuration in a traffic policy. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrafficPolicyInstanceRequest withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; }
/** * <p> * The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 * responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance. * </p> * * @param name * The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route * 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy * instance. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrafficPolicyInstanceRequest withName(String name) { setName(name); return this; }
/** * <p> * The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone. * </p> * * @param trafficPolicyId * The ID of the traffic policy that you want to use to create resource record sets in the specified hosted * zone. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrafficPolicyInstanceRequest withTrafficPolicyId(String trafficPolicyId) { setTrafficPolicyId(trafficPolicyId); return this; }
/** * <p> * The version of the traffic policy that you want to use to create resource record sets in the specified hosted * zone. * </p> * * @param trafficPolicyVersion * The version of the traffic policy that you want to use to create resource record sets in the specified * hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrafficPolicyInstanceRequest withTrafficPolicyVersion(Integer trafficPolicyVersion) { setTrafficPolicyVersion(trafficPolicyVersion); return this; }
/** * <p> * (Optional) The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it creates in * the specified hosted zone. * </p> * * @param tTL * (Optional) The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it * creates in the specified hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrafficPolicyInstanceRequest withTTL(Long tTL) { setTTL(tTL); return this; }
return false; CreateTrafficPolicyInstanceRequest other = (CreateTrafficPolicyInstanceRequest) obj; 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.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 (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 (getTrafficPolicyId() != null) sb.append("TrafficPolicyId: ").append(getTrafficPolicyId()).append(","); if (getTrafficPolicyVersion() != null) sb.append("TrafficPolicyVersion: ").append(getTrafficPolicyVersion()); sb.append("}"); return sb.toString(); }
if (createTrafficPolicyInstanceRequest != null) { if (createTrafficPolicyInstanceRequest.getHostedZoneId() != null) { xmlWriter.startElement("HostedZoneId").value(createTrafficPolicyInstanceRequest.getHostedZoneId()).endElement(); if (createTrafficPolicyInstanceRequest.getName() != null) { xmlWriter.startElement("Name").value(createTrafficPolicyInstanceRequest.getName()).endElement(); if (createTrafficPolicyInstanceRequest.getTTL() != null) { xmlWriter.startElement("TTL").value(createTrafficPolicyInstanceRequest.getTTL()).endElement(); if (createTrafficPolicyInstanceRequest.getTrafficPolicyId() != null) { xmlWriter.startElement("TrafficPolicyId").value(createTrafficPolicyInstanceRequest.getTrafficPolicyId()).endElement(); if (createTrafficPolicyInstanceRequest.getTrafficPolicyVersion() != null) { xmlWriter.startElement("TrafficPolicyVersion").value(createTrafficPolicyInstanceRequest.getTrafficPolicyVersion()).endElement();