@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNameserver() == null) ? 0 : getNameserver().hashCode()); hashCode = prime * hashCode + ((getRecordName() == null) ? 0 : getRecordName().hashCode()); hashCode = prime * hashCode + ((getRecordType() == null) ? 0 : getRecordType().hashCode()); hashCode = prime * hashCode + ((getRecordData() == null) ? 0 : getRecordData().hashCode()); hashCode = prime * hashCode + ((getResponseCode() == null) ? 0 : getResponseCode().hashCode()); hashCode = prime * hashCode + ((getProtocol() == null) ? 0 : getProtocol().hashCode()); return hashCode; }
/** * <p> * The Amazon Route 53 name server used to respond to the request. * </p> * * @param nameserver * The Amazon Route 53 name server used to respond to the request. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerResult withNameserver(String nameserver) { setNameserver(nameserver); return this; }
/** * <p> * The protocol that Amazon Route 53 used to respond to the request, either <code>UDP</code> or <code>TCP</code>. * </p> * * @param protocol * The protocol that Amazon Route 53 used to respond to the request, either <code>UDP</code> or * <code>TCP</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerResult withProtocol(String protocol) { setProtocol(protocol); return this; }
public TestDNSAnswerResult unmarshall(StaxUnmarshallerContext context) throws Exception { TestDNSAnswerResult testDNSAnswerResult = new TestDNSAnswerResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; testDNSAnswerResult.setNameserver(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; testDNSAnswerResult.setRecordName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; testDNSAnswerResult.setRecordType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; testDNSAnswerResult.withRecordData(new ArrayList<String>()); continue; testDNSAnswerResult.withRecordData(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; testDNSAnswerResult.setResponseCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; testDNSAnswerResult.setProtocol(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * A list that contains values that Amazon Route 53 returned for this resource record set. * </p> * * @param recordData * A list that contains values that Amazon Route 53 returned for this resource record set. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerResult withRecordData(java.util.Collection<String> recordData) { setRecordData(recordData); return this; }
/** * <p> * A list that contains values that Amazon Route 53 returned for this resource record set. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRecordData(java.util.Collection)} or {@link #withRecordData(java.util.Collection)} if you want to * override the existing values. * </p> * * @param recordData * A list that contains values that Amazon Route 53 returned for this resource record set. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerResult withRecordData(String... recordData) { if (this.recordData == null) { setRecordData(new com.amazonaws.internal.SdkInternalList<String>(recordData.length)); } for (String ele : recordData) { this.recordData.add(ele); } return this; }
return false; TestDNSAnswerResult other = (TestDNSAnswerResult) obj; if (other.getNameserver() == null ^ this.getNameserver() == null) return false; if (other.getNameserver() != null && other.getNameserver().equals(this.getNameserver()) == 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.getRecordData() == null ^ this.getRecordData() == null) return false; if (other.getRecordData() != null && other.getRecordData().equals(this.getRecordData()) == false) return false; if (other.getResponseCode() == null ^ this.getResponseCode() == null) return false; if (other.getResponseCode() != null && other.getResponseCode().equals(this.getResponseCode()) == false) return false; if (other.getProtocol() == null ^ this.getProtocol() == null) return false; if (other.getProtocol() != null && other.getProtocol().equals(this.getProtocol()) == 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 (getNameserver() != null) sb.append("Nameserver: ").append(getNameserver()).append(","); if (getRecordName() != null) sb.append("RecordName: ").append(getRecordName()).append(","); if (getRecordType() != null) sb.append("RecordType: ").append(getRecordType()).append(","); if (getRecordData() != null) sb.append("RecordData: ").append(getRecordData()).append(","); if (getResponseCode() != null) sb.append("ResponseCode: ").append(getResponseCode()).append(","); if (getProtocol() != null) sb.append("Protocol: ").append(getProtocol()); sb.append("}"); return sb.toString(); }