@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().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 (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListHealthChecksRequest == false) return false; ListHealthChecksRequest other = (ListHealthChecksRequest) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true; }
public Request<ListHealthChecksRequest> marshall(ListHealthChecksRequest listHealthChecksRequest) { if (listHealthChecksRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListHealthChecksRequest> request = new DefaultRequest<ListHealthChecksRequest>(listHealthChecksRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/healthcheck"; request.setResourcePath(uriResourcePath); if (listHealthChecksRequest.getMarker() != null) { request.addParameter("marker", StringUtils.fromString(listHealthChecksRequest.getMarker())); } if (listHealthChecksRequest.getMaxItems() != null) { request.addParameter("maxitems", StringUtils.fromString(listHealthChecksRequest.getMaxItems())); } return request; }