@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchConfigurationNames() == null) ? 0 : getLaunchConfigurationNames().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().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 (getLaunchConfigurationNames() != null) sb.append("LaunchConfigurationNames: ").append(getLaunchConfigurationNames()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLaunchConfigurationsRequest == false) return false; DescribeLaunchConfigurationsRequest other = (DescribeLaunchConfigurationsRequest) obj; if (other.getLaunchConfigurationNames() == null ^ this.getLaunchConfigurationNames() == null) return false; if (other.getLaunchConfigurationNames() != null && other.getLaunchConfigurationNames().equals(this.getLaunchConfigurationNames()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false; return true; }
public Request<DescribeLaunchConfigurationsRequest> marshall(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest) { if (describeLaunchConfigurationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeLaunchConfigurationsRequest> request = new DefaultRequest<DescribeLaunchConfigurationsRequest>(describeLaunchConfigurationsRequest, "AmazonAutoScaling"); request.addParameter("Action", "DescribeLaunchConfigurations"); request.addParameter("Version", "2011-01-01"); request.setHttpMethod(HttpMethodName.POST); if (!describeLaunchConfigurationsRequest.getLaunchConfigurationNames().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) describeLaunchConfigurationsRequest.getLaunchConfigurationNames()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> launchConfigurationNamesList = (com.amazonaws.internal.SdkInternalList<String>) describeLaunchConfigurationsRequest .getLaunchConfigurationNames(); int launchConfigurationNamesListIndex = 1; for (String launchConfigurationNamesListValue : launchConfigurationNamesList) { if (launchConfigurationNamesListValue != null) { request.addParameter("LaunchConfigurationNames.member." + launchConfigurationNamesListIndex, StringUtils.fromString(launchConfigurationNamesListValue)); } launchConfigurationNamesListIndex++; } } if (describeLaunchConfigurationsRequest.getNextToken() != null) { request.addParameter("NextToken", StringUtils.fromString(describeLaunchConfigurationsRequest.getNextToken())); } if (describeLaunchConfigurationsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeLaunchConfigurationsRequest.getMaxRecords())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLaunchConfigurationNames() == null) ? 0 : getLaunchConfigurationNames() .hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().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 (getLaunchConfigurationNames() != null) sb.append("LaunchConfigurationNames: " + getLaunchConfigurationNames() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getMaxRecords() != null) sb.append("MaxRecords: " + getMaxRecords()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLaunchConfigurationsRequest == false) return false; DescribeLaunchConfigurationsRequest other = (DescribeLaunchConfigurationsRequest) obj; if (other.getLaunchConfigurationNames() == null ^ this.getLaunchConfigurationNames() == null) return false; if (other.getLaunchConfigurationNames() != null && other.getLaunchConfigurationNames().equals(this.getLaunchConfigurationNames()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false; return true; } }
request.addParameter(prefix, StringUtils.fromString(nextToken)); if (describeLaunchConfigurationsRequest.getMaxRecords() != null) { prefix = "MaxRecords"; Integer maxRecords = describeLaunchConfigurationsRequest.getMaxRecords(); request.addParameter(prefix, StringUtils.fromInteger(maxRecords));