@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getRecordName() == null) ? 0 : getRecordName().hashCode()); hashCode = prime * hashCode + ((getRecordType() == null) ? 0 : getRecordType().hashCode()); hashCode = prime * hashCode + ((getResolverIP() == null) ? 0 : getResolverIP().hashCode()); hashCode = prime * hashCode + ((getEDNS0ClientSubnetIP() == null) ? 0 : getEDNS0ClientSubnetIP().hashCode()); hashCode = prime * hashCode + ((getEDNS0ClientSubnetMask() == null) ? 0 : getEDNS0ClientSubnetMask().hashCode()); return hashCode; }
/** * <p> * If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in * the applicable location, for example, <code>192.0.2.44</code> or <code>2001:db8:85a3::8a2e:370:7334</code>. * </p> * * @param eDNS0ClientSubnetIP * If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a * client in the applicable location, for example, <code>192.0.2.44</code> or * <code>2001:db8:85a3::8a2e:370:7334</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerRequest withEDNS0ClientSubnetIP(String eDNS0ClientSubnetIP) { setEDNS0ClientSubnetIP(eDNS0ClientSubnetIP); return this; }
/** * <p> * The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. * </p> * * @param hostedZoneId * The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerRequest withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; }
/** * <p> * The name of the resource record set that you want Amazon Route 53 to simulate a query for. * </p> * * @param recordName * The name of the resource record set that you want Amazon Route 53 to simulate a query for. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerRequest withRecordName(String recordName) { setRecordName(recordName); return this; }
setEDNS0ClientSubnetMask(eDNS0ClientSubnetMask); return this;
return false; TestDNSAnswerRequest other = (TestDNSAnswerRequest) obj; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getRecordName() == null ^ this.getRecordName() == null) return false; if (other.getRecordName() != null && other.getRecordName().equals(this.getRecordName()) == false) return false; if (other.getRecordType() == null ^ this.getRecordType() == null) return false; if (other.getRecordType() != null && other.getRecordType().equals(this.getRecordType()) == false) return false; if (other.getResolverIP() == null ^ this.getResolverIP() == null) return false; if (other.getResolverIP() != null && other.getResolverIP().equals(this.getResolverIP()) == false) return false; if (other.getEDNS0ClientSubnetIP() == null ^ this.getEDNS0ClientSubnetIP() == null) return false; if (other.getEDNS0ClientSubnetIP() != null && other.getEDNS0ClientSubnetIP().equals(this.getEDNS0ClientSubnetIP()) == false) return false; if (other.getEDNS0ClientSubnetMask() == null ^ this.getEDNS0ClientSubnetMask() == null) return false; if (other.getEDNS0ClientSubnetMask() != null && other.getEDNS0ClientSubnetMask().equals(this.getEDNS0ClientSubnetMask()) == 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 (getRecordName() != null) sb.append("RecordName: ").append(getRecordName()).append(","); if (getRecordType() != null) sb.append("RecordType: ").append(getRecordType()).append(","); if (getResolverIP() != null) sb.append("ResolverIP: ").append(getResolverIP()).append(","); if (getEDNS0ClientSubnetIP() != null) sb.append("EDNS0ClientSubnetIP: ").append(getEDNS0ClientSubnetIP()).append(","); if (getEDNS0ClientSubnetMask() != null) sb.append("EDNS0ClientSubnetMask: ").append(getEDNS0ClientSubnetMask()); sb.append("}"); return sb.toString(); }
public Request<TestDNSAnswerRequest> marshall(TestDNSAnswerRequest testDNSAnswerRequest) { if (testDNSAnswerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<TestDNSAnswerRequest> request = new DefaultRequest<TestDNSAnswerRequest>(testDNSAnswerRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/testdnsanswer"; request.setResourcePath(uriResourcePath); if (testDNSAnswerRequest.getHostedZoneId() != null) { request.addParameter("hostedzoneid", StringUtils.fromString(testDNSAnswerRequest.getHostedZoneId())); } if (testDNSAnswerRequest.getRecordName() != null) { request.addParameter("recordname", StringUtils.fromString(testDNSAnswerRequest.getRecordName())); } if (testDNSAnswerRequest.getRecordType() != null) { request.addParameter("recordtype", StringUtils.fromString(testDNSAnswerRequest.getRecordType())); } if (testDNSAnswerRequest.getResolverIP() != null) { request.addParameter("resolverip", StringUtils.fromString(testDNSAnswerRequest.getResolverIP())); } if (testDNSAnswerRequest.getEDNS0ClientSubnetIP() != null) { request.addParameter("edns0clientsubnetip", StringUtils.fromString(testDNSAnswerRequest.getEDNS0ClientSubnetIP())); } if (testDNSAnswerRequest.getEDNS0ClientSubnetMask() != null) { request.addParameter("edns0clientsubnetmask", StringUtils.fromString(testDNSAnswerRequest.getEDNS0ClientSubnetMask())); } return request; }