@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().hashCode()); return hashCode; }
/** * <p> * The marker for the next set of results. (You received this marker from a previous call.) * </p> * * @param marker * The marker for the next set of results. (You received this marker from a previous call.) * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountLimitsRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * The maximum number of results to return with this call. * </p> * * @param pageSize * The maximum number of results to return with this call. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountLimitsRequest withPageSize(Integer pageSize) { setPageSize(pageSize); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAccountLimitsRequest == false) return false; DescribeAccountLimitsRequest other = (DescribeAccountLimitsRequest) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getPageSize() == null ^ this.getPageSize() == null) return false; if (other.getPageSize() != null && other.getPageSize().equals(this.getPageSize()) == false) return false; return true; }
/** * <p> * The marker for the next set of results. (You received this marker from a previous call.) * </p> * * @param marker * The marker for the next set of results. (You received this marker from a previous call.) * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountLimitsRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * The maximum number of results to return with this call. * </p> * * @param pageSize * The maximum number of results to return with this call. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountLimitsRequest withPageSize(Integer pageSize) { setPageSize(pageSize); return this; }
/** * 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 (getPageSize() != null) sb.append("PageSize: ").append(getPageSize()); sb.append("}"); return sb.toString(); }
public Request<DescribeAccountLimitsRequest> marshall(DescribeAccountLimitsRequest describeAccountLimitsRequest) { if (describeAccountLimitsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeAccountLimitsRequest> request = new DefaultRequest<DescribeAccountLimitsRequest>(describeAccountLimitsRequest, "AmazonElasticLoadBalancing"); request.addParameter("Action", "DescribeAccountLimits"); request.addParameter("Version", "2012-06-01"); request.setHttpMethod(HttpMethodName.POST); if (describeAccountLimitsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeAccountLimitsRequest.getMarker())); } if (describeAccountLimitsRequest.getPageSize() != null) { request.addParameter("PageSize", StringUtils.fromInteger(describeAccountLimitsRequest.getPageSize())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAccountLimitsRequest == false) return false; DescribeAccountLimitsRequest other = (DescribeAccountLimitsRequest) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getPageSize() == null ^ this.getPageSize() == null) return false; if (other.getPageSize() != null && other.getPageSize().equals(this.getPageSize()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getMarker() + ","); if (getPageSize() != null) sb.append("PageSize: " + getPageSize()); sb.append("}"); return sb.toString(); }
public Request<DescribeAccountLimitsRequest> marshall( DescribeAccountLimitsRequest describeAccountLimitsRequest) { if (describeAccountLimitsRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(DescribeAccountLimitsRequest)"); } Request<DescribeAccountLimitsRequest> request = new DefaultRequest<DescribeAccountLimitsRequest>( describeAccountLimitsRequest, "AmazonElasticLoadBalancing"); request.addParameter("Action", "DescribeAccountLimits"); request.addParameter("Version", "2012-06-01"); String prefix; if (describeAccountLimitsRequest.getMarker() != null) { prefix = "Marker"; String marker = describeAccountLimitsRequest.getMarker(); request.addParameter(prefix, StringUtils.fromString(marker)); } if (describeAccountLimitsRequest.getPageSize() != null) { prefix = "PageSize"; Integer pageSize = describeAccountLimitsRequest.getPageSize(); request.addParameter(prefix, StringUtils.fromInteger(pageSize)); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAccountLimitsRequest == false) return false; DescribeAccountLimitsRequest other = (DescribeAccountLimitsRequest) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getPageSize() == null ^ this.getPageSize() == null) return false; if (other.getPageSize() != null && other.getPageSize().equals(this.getPageSize()) == false) return false; return true; }
/** * 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 (getPageSize() != null) sb.append("PageSize: ").append(getPageSize()); sb.append("}"); return sb.toString(); }
public Request<DescribeAccountLimitsRequest> marshall(DescribeAccountLimitsRequest describeAccountLimitsRequest) { if (describeAccountLimitsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeAccountLimitsRequest> request = new DefaultRequest<DescribeAccountLimitsRequest>(describeAccountLimitsRequest, "AmazonElasticLoadBalancing"); request.addParameter("Action", "DescribeAccountLimits"); request.addParameter("Version", "2012-06-01"); request.setHttpMethod(HttpMethodName.POST); if (describeAccountLimitsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeAccountLimitsRequest.getMarker())); } if (describeAccountLimitsRequest.getPageSize() != null) { request.addParameter("PageSize", StringUtils.fromInteger(describeAccountLimitsRequest.getPageSize())); } return request; }