/** * 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 ListReusableDelegationSetsRequest == false) return false; ListReusableDelegationSetsRequest other = (ListReusableDelegationSetsRequest) 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<ListReusableDelegationSetsRequest> marshall(ListReusableDelegationSetsRequest listReusableDelegationSetsRequest) { if (listReusableDelegationSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListReusableDelegationSetsRequest> request = new DefaultRequest<ListReusableDelegationSetsRequest>(listReusableDelegationSetsRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/delegationset"; request.setResourcePath(uriResourcePath); if (listReusableDelegationSetsRequest.getMarker() != null) { request.addParameter("marker", StringUtils.fromString(listReusableDelegationSetsRequest.getMarker())); } if (listReusableDelegationSetsRequest.getMaxItems() != null) { request.addParameter("maxitems", StringUtils.fromString(listReusableDelegationSetsRequest.getMaxItems())); } return request; }