@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStartContinentCode() == null) ? 0 : getStartContinentCode().hashCode()); hashCode = prime * hashCode + ((getStartCountryCode() == null) ? 0 : getStartCountryCode().hashCode()); hashCode = prime * hashCode + ((getStartSubdivisionCode() == null) ? 0 : getStartSubdivisionCode().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 (getStartContinentCode() != null) sb.append("StartContinentCode: ").append(getStartContinentCode()).append(","); if (getStartCountryCode() != null) sb.append("StartCountryCode: ").append(getStartCountryCode()).append(","); if (getStartSubdivisionCode() != null) sb.append("StartSubdivisionCode: ").append(getStartSubdivisionCode()).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 ListGeoLocationsRequest == false) return false; ListGeoLocationsRequest other = (ListGeoLocationsRequest) obj; if (other.getStartContinentCode() == null ^ this.getStartContinentCode() == null) return false; if (other.getStartContinentCode() != null && other.getStartContinentCode().equals(this.getStartContinentCode()) == false) return false; if (other.getStartCountryCode() == null ^ this.getStartCountryCode() == null) return false; if (other.getStartCountryCode() != null && other.getStartCountryCode().equals(this.getStartCountryCode()) == false) return false; if (other.getStartSubdivisionCode() == null ^ this.getStartSubdivisionCode() == null) return false; if (other.getStartSubdivisionCode() != null && other.getStartSubdivisionCode().equals(this.getStartSubdivisionCode()) == 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<ListGeoLocationsRequest> marshall(ListGeoLocationsRequest listGeoLocationsRequest) { if (listGeoLocationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListGeoLocationsRequest> request = new DefaultRequest<ListGeoLocationsRequest>(listGeoLocationsRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/geolocations"; request.setResourcePath(uriResourcePath); if (listGeoLocationsRequest.getStartContinentCode() != null) { request.addParameter("startcontinentcode", StringUtils.fromString(listGeoLocationsRequest.getStartContinentCode())); } if (listGeoLocationsRequest.getStartCountryCode() != null) { request.addParameter("startcountrycode", StringUtils.fromString(listGeoLocationsRequest.getStartCountryCode())); } if (listGeoLocationsRequest.getStartSubdivisionCode() != null) { request.addParameter("startsubdivisioncode", StringUtils.fromString(listGeoLocationsRequest.getStartSubdivisionCode())); } if (listGeoLocationsRequest.getMaxItems() != null) { request.addParameter("maxitems", StringUtils.fromString(listGeoLocationsRequest.getMaxItems())); } return request; }