@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; }
/** * <p> * For an initial request for a list of domains, omit this element. If the number of domains that are associated * with the current AWS account is greater than the value that you specified for <code>MaxItems</code>, you can use * <code>Marker</code> to return additional domains. Get the value of <code>NextPageMarker</code> from the previous * response, and submit another request that includes the value of <code>NextPageMarker</code> in the * <code>Marker</code> element. * </p> * <p> * Constraints: The marker must match the value specified in the previous request. * </p> * * @param marker * For an initial request for a list of domains, omit this element. If the number of domains that are * associated with the current AWS account is greater than the value that you specified for * <code>MaxItems</code>, you can use <code>Marker</code> to return additional domains. Get the value of * <code>NextPageMarker</code> from the previous response, and submit another request that includes the value * of <code>NextPageMarker</code> in the <code>Marker</code> element.</p> * <p> * Constraints: The marker must match the value specified in the previous request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainsRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * Number of domains to be returned. * </p> * <p> * Default: 20 * </p> * * @param maxItems * Number of domains to be returned.</p> * <p> * Default: 20 * @return Returns a reference to this object so that method calls can be chained together. */ public ListDomainsRequest withMaxItems(Integer maxItems) { setMaxItems(maxItems); return this; }
/** * Simplified method form for invoking the ListDomains operation with an AsyncHandler. * * @see #listDomainsAsync(ListDomainsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListDomainsResult> listDomainsAsync( com.amazonaws.handlers.AsyncHandler<ListDomainsRequest, ListDomainsResult> asyncHandler) { return listDomainsAsync(new ListDomainsRequest(), asyncHandler); }
/** * Simplified method form for invoking the ListDomains operation. * * @see #listDomainsAsync(ListDomainsRequest) */ @Override public java.util.concurrent.Future<ListDomainsResult> listDomainsAsync() { return listDomainsAsync(new ListDomainsRequest()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListDomainsRequest == false) return false; ListDomainsRequest other = (ListDomainsRequest) 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; }
/** * Simplified method form for invoking the ListDomains operation. * * @see #listDomainsAsync(ListDomainsRequest) */ @Override public java.util.concurrent.Future<ListDomainsResult> listDomainsAsync() { return listDomainsAsync(new ListDomainsRequest()); }
/** * 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(); }
/** * Simplified method form for invoking the ListDomains operation with an AsyncHandler. * * @see #listDomainsAsync(ListDomainsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListDomainsResult> listDomainsAsync( com.amazonaws.handlers.AsyncHandler<ListDomainsRequest, ListDomainsResult> asyncHandler) { return listDomainsAsync(new ListDomainsRequest(), asyncHandler); }
/** * Marshall the given parameter object. */ public void marshall(ListDomainsRequest listDomainsRequest, ProtocolMarshaller protocolMarshaller) { if (listDomainsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listDomainsRequest.getMarker(), MARKER_BINDING); protocolMarshaller.marshall(listDomainsRequest.getMaxItems(), MAXITEMS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public ListDomainsResult listDomains() { return listDomains(new ListDomainsRequest()); }
@Override public ListDomainsResult listDomains() { return listDomains(new ListDomainsRequest()); }