@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; }
/** * <p> * (Optional) The maximum number of geolocations to be included in the response body for this request. If more than * <code>maxitems</code> geolocations remain to be listed, then the value of the <code>IsTruncated</code> element in * the response is <code>true</code>. * </p> * * @param maxItems * (Optional) The maximum number of geolocations to be included in the response body for this request. If * more than <code>maxitems</code> geolocations remain to be listed, then the value of the * <code>IsTruncated</code> element in the response is <code>true</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGeoLocationsRequest withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
/** * <p> * The code for the continent with which you want to start listing locations that Amazon Route 53 supports for * geolocation. If Route 53 has already returned a page or more of results, if <code>IsTruncated</code> is true, and * if <code>NextContinentCode</code> from the previous response has a value, enter that value in * <code>startcontinentcode</code> to return the next page of results. * </p> * <p> * Include <code>startcontinentcode</code> only if you want to list continents. Don't include * <code>startcontinentcode</code> when you're listing countries or countries with their subdivisions. * </p> * * @param startContinentCode * The code for the continent with which you want to start listing locations that Amazon Route 53 supports * for geolocation. If Route 53 has already returned a page or more of results, if <code>IsTruncated</code> * is true, and if <code>NextContinentCode</code> from the previous response has a value, enter that value in * <code>startcontinentcode</code> to return the next page of results.</p> * <p> * Include <code>startcontinentcode</code> only if you want to list continents. Don't include * <code>startcontinentcode</code> when you're listing countries or countries with their subdivisions. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGeoLocationsRequest withStartContinentCode(String startContinentCode) { setStartContinentCode(startContinentCode); return this; }
/** * Simplified method form for invoking the ListGeoLocations operation. * * @see #listGeoLocationsAsync(ListGeoLocationsRequest) */ @Override public java.util.concurrent.Future<ListGeoLocationsResult> listGeoLocationsAsync() { return listGeoLocationsAsync(new ListGeoLocationsRequest()); }
/** * <p> * The code for the country with which you want to start listing locations that Amazon Route 53 supports for * geolocation. If Route 53 has already returned a page or more of results, if <code>IsTruncated</code> is * <code>true</code>, and if <code>NextCountryCode</code> from the previous response has a value, enter that value * in <code>startcountrycode</code> to return the next page of results. * </p> * <p> * Route 53 uses the two-letter country codes that are specified in <a * href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1 alpha-2</a>. * </p> * * @param startCountryCode * The code for the country with which you want to start listing locations that Amazon Route 53 supports for * geolocation. If Route 53 has already returned a page or more of results, if <code>IsTruncated</code> is * <code>true</code>, and if <code>NextCountryCode</code> from the previous response has a value, enter that * value in <code>startcountrycode</code> to return the next page of results.</p> * <p> * Route 53 uses the two-letter country codes that are specified in <a * href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1 alpha-2</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGeoLocationsRequest withStartCountryCode(String startCountryCode) { setStartCountryCode(startCountryCode); return this; }
/** * <p> * The code for the subdivision (for example, state or province) with which you want to start listing locations that * Amazon Route 53 supports for geolocation. If Route 53 has already returned a page or more of results, if * <code>IsTruncated</code> is <code>true</code>, and if <code>NextSubdivisionCode</code> from the previous response * has a value, enter that value in <code>startsubdivisioncode</code> to return the next page of results. * </p> * <p> * To list subdivisions of a country, you must include both <code>startcountrycode</code> and * <code>startsubdivisioncode</code>. * </p> * * @param startSubdivisionCode * The code for the subdivision (for example, state or province) with which you want to start listing * locations that Amazon Route 53 supports for geolocation. If Route 53 has already returned a page or more * of results, if <code>IsTruncated</code> is <code>true</code>, and if <code>NextSubdivisionCode</code> from * the previous response has a value, enter that value in <code>startsubdivisioncode</code> to return the * next page of results.</p> * <p> * To list subdivisions of a country, you must include both <code>startcountrycode</code> and * <code>startsubdivisioncode</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGeoLocationsRequest withStartSubdivisionCode(String startSubdivisionCode) { setStartSubdivisionCode(startSubdivisionCode); return this; }
/** * Simplified method form for invoking the ListGeoLocations operation. * * @see #listGeoLocationsAsync(ListGeoLocationsRequest) */ @Override public java.util.concurrent.Future<ListGeoLocationsResult> listGeoLocationsAsync() { return listGeoLocationsAsync(new ListGeoLocationsRequest()); }
@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; }
/** * Simplified method form for invoking the ListGeoLocations operation with an AsyncHandler. * * @see #listGeoLocationsAsync(ListGeoLocationsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListGeoLocationsResult> listGeoLocationsAsync( com.amazonaws.handlers.AsyncHandler<ListGeoLocationsRequest, ListGeoLocationsResult> asyncHandler) { return listGeoLocationsAsync(new ListGeoLocationsRequest(), asyncHandler); }
/** * 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(); }
/** * Simplified method form for invoking the ListGeoLocations operation with an AsyncHandler. * * @see #listGeoLocationsAsync(ListGeoLocationsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListGeoLocationsResult> listGeoLocationsAsync( com.amazonaws.handlers.AsyncHandler<ListGeoLocationsRequest, ListGeoLocationsResult> asyncHandler) { return listGeoLocationsAsync(new ListGeoLocationsRequest(), asyncHandler); }
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; }
@Override public ListGeoLocationsResult listGeoLocations() { return listGeoLocations(new ListGeoLocationsRequest()); }
@Override public ListGeoLocationsResult listGeoLocations() { return listGeoLocations(new ListGeoLocationsRequest()); }