@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getStartRecordName() == null) ? 0 : getStartRecordName().hashCode()); hashCode = prime * hashCode + ((getStartRecordType() == null) ? 0 : getStartRecordType().hashCode()); hashCode = prime * hashCode + ((getStartRecordIdentifier() == null) ? 0 : getStartRecordIdentifier().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; }
/** * 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 (getStartRecordName() != null) sb.append("StartRecordName: ").append(getStartRecordName()).append(","); if (getStartRecordType() != null) sb.append("StartRecordType: ").append(getStartRecordType()).append(","); if (getStartRecordIdentifier() != null) sb.append("StartRecordIdentifier: ").append(getStartRecordIdentifier()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }
if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getStartRecordName() == null ^ this.getStartRecordName() == null) return false; if (other.getStartRecordName() != null && other.getStartRecordName().equals(this.getStartRecordName()) == false) return false; if (other.getStartRecordType() == null ^ this.getStartRecordType() == null)
public Request<ListResourceRecordSetsRequest> marshall(ListResourceRecordSetsRequest listResourceRecordSetsRequest) { if (listResourceRecordSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListResourceRecordSetsRequest> request = new DefaultRequest<ListResourceRecordSetsRequest>(listResourceRecordSetsRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/hostedzone/{Id}/rrset"; uriResourcePath = com.amazonaws.transform.PathMarshallers.NON_GREEDY.marshall(uriResourcePath, "Id", listResourceRecordSetsRequest.getHostedZoneId()); request.setResourcePath(uriResourcePath); if (listResourceRecordSetsRequest.getStartRecordName() != null) { request.addParameter("name", StringUtils.fromString(listResourceRecordSetsRequest.getStartRecordName())); } if (listResourceRecordSetsRequest.getStartRecordType() != null) { request.addParameter("type", StringUtils.fromString(listResourceRecordSetsRequest.getStartRecordType())); } if (listResourceRecordSetsRequest.getStartRecordIdentifier() != null) { request.addParameter("identifier", StringUtils.fromString(listResourceRecordSetsRequest.getStartRecordIdentifier())); } if (listResourceRecordSetsRequest.getMaxItems() != null) { request.addParameter("maxitems", StringUtils.fromString(listResourceRecordSetsRequest.getMaxItems())); } return request; }