@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerNames() == null) ? 0 : getLoadBalancerNames().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().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 (getLoadBalancerNames() != null) sb.append("LoadBalancerNames: ").append(getLoadBalancerNames()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getPageSize() != null) sb.append("PageSize: ").append(getPageSize()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLoadBalancersRequest == false) return false; DescribeLoadBalancersRequest other = (DescribeLoadBalancersRequest) obj; if (other.getLoadBalancerNames() == null ^ this.getLoadBalancerNames() == null) return false; if (other.getLoadBalancerNames() != null && other.getLoadBalancerNames().equals(this.getLoadBalancerNames()) == false) return false; 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; }
public Request<DescribeLoadBalancersRequest> marshall(DescribeLoadBalancersRequest describeLoadBalancersRequest) { if (describeLoadBalancersRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeLoadBalancersRequest> request = new DefaultRequest<DescribeLoadBalancersRequest>(describeLoadBalancersRequest, "AmazonElasticLoadBalancing"); request.addParameter("Action", "DescribeLoadBalancers"); request.addParameter("Version", "2012-06-01"); request.setHttpMethod(HttpMethodName.POST); if (!describeLoadBalancersRequest.getLoadBalancerNames().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) describeLoadBalancersRequest.getLoadBalancerNames()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> loadBalancerNamesList = (com.amazonaws.internal.SdkInternalList<String>) describeLoadBalancersRequest .getLoadBalancerNames(); int loadBalancerNamesListIndex = 1; for (String loadBalancerNamesListValue : loadBalancerNamesList) { if (loadBalancerNamesListValue != null) { request.addParameter("LoadBalancerNames.member." + loadBalancerNamesListIndex, StringUtils.fromString(loadBalancerNamesListValue)); } loadBalancerNamesListIndex++; } } if (describeLoadBalancersRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeLoadBalancersRequest.getMarker())); } if (describeLoadBalancersRequest.getPageSize() != null) { request.addParameter("PageSize", StringUtils.fromInteger(describeLoadBalancersRequest.getPageSize())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerNames() == null) ? 0 : getLoadBalancerNames().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().hashCode()); return hashCode; }
/** * 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 (getLoadBalancerNames() != null) sb.append("LoadBalancerNames: " + getLoadBalancerNames() + ","); if (getMarker() != null) sb.append("Marker: " + getMarker() + ","); if (getPageSize() != null) sb.append("PageSize: " + getPageSize()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLoadBalancersRequest == false) return false; DescribeLoadBalancersRequest other = (DescribeLoadBalancersRequest) obj; if (other.getLoadBalancerNames() == null ^ this.getLoadBalancerNames() == null) return false; if (other.getLoadBalancerNames() != null && other.getLoadBalancerNames().equals(this.getLoadBalancerNames()) == false) return false; 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; } }
request.addParameter(prefix, StringUtils.fromString(marker)); if (describeLoadBalancersRequest.getPageSize() != null) { prefix = "PageSize"; Integer pageSize = describeLoadBalancersRequest.getPageSize(); request.addParameter(prefix, StringUtils.fromInteger(pageSize));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoadBalancerNames() == null) ? 0 : getLoadBalancerNames().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getPageSize() == null) ? 0 : getPageSize().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 (getLoadBalancerNames() != null) sb.append("LoadBalancerNames: ").append(getLoadBalancerNames()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getPageSize() != null) sb.append("PageSize: ").append(getPageSize()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLoadBalancersRequest == false) return false; DescribeLoadBalancersRequest other = (DescribeLoadBalancersRequest) obj; if (other.getLoadBalancerNames() == null ^ this.getLoadBalancerNames() == null) return false; if (other.getLoadBalancerNames() != null && other.getLoadBalancerNames().equals(this.getLoadBalancerNames()) == false) return false; 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; }
public Request<DescribeLoadBalancersRequest> marshall(DescribeLoadBalancersRequest describeLoadBalancersRequest) { if (describeLoadBalancersRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeLoadBalancersRequest> request = new DefaultRequest<DescribeLoadBalancersRequest>(describeLoadBalancersRequest, "AmazonElasticLoadBalancing"); request.addParameter("Action", "DescribeLoadBalancers"); request.addParameter("Version", "2012-06-01"); request.setHttpMethod(HttpMethodName.POST); if (!describeLoadBalancersRequest.getLoadBalancerNames().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) describeLoadBalancersRequest.getLoadBalancerNames()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> loadBalancerNamesList = (com.amazonaws.internal.SdkInternalList<String>) describeLoadBalancersRequest .getLoadBalancerNames(); int loadBalancerNamesListIndex = 1; for (String loadBalancerNamesListValue : loadBalancerNamesList) { if (loadBalancerNamesListValue != null) { request.addParameter("LoadBalancerNames.member." + loadBalancerNamesListIndex, StringUtils.fromString(loadBalancerNamesListValue)); } loadBalancerNamesListIndex++; } } if (describeLoadBalancersRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeLoadBalancersRequest.getMarker())); } if (describeLoadBalancersRequest.getPageSize() != null) { request.addParameter("PageSize", StringUtils.fromInteger(describeLoadBalancersRequest.getPageSize())); } return request; }