@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAutoScalingGroupName() == null) ? 0 : getAutoScalingGroupName().hashCode()); hashCode = prime * hashCode + ((getPolicyNames() == null) ? 0 : getPolicyNames().hashCode()); hashCode = prime * hashCode + ((getPolicyTypes() == null) ? 0 : getPolicyTypes().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 (getAutoScalingGroupName() != null) sb.append("AutoScalingGroupName: ").append(getAutoScalingGroupName()).append(","); if (getPolicyNames() != null) sb.append("PolicyNames: ").append(getPolicyNames()).append(","); if (getPolicyTypes() != null) sb.append("PolicyTypes: ").append(getPolicyTypes()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()); sb.append("}"); return sb.toString(); }
if (other.getAutoScalingGroupName() != null && other.getAutoScalingGroupName().equals(this.getAutoScalingGroupName()) == false) return false; if (other.getPolicyNames() == null ^ this.getPolicyNames() == null) return false; if (other.getPolicyNames() != null && other.getPolicyNames().equals(this.getPolicyNames()) == false) return false; if (other.getPolicyTypes() == null ^ this.getPolicyTypes() == null)
if (!describePoliciesRequest.getPolicyNames().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) describePoliciesRequest.getPolicyNames()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> policyNamesList = (com.amazonaws.internal.SdkInternalList<String>) describePoliciesRequest .getPolicyNames(); int policyNamesListIndex = 1;
/** * <p> * The names of one or more policies. If you omit this parameter, all * policies are described. If a group name is provided, the results are * limited to that group. This list is limited to 50 items. If you specify * an unknown policy name, it is ignored with no error. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param policyNames <p> * The names of one or more policies. If you omit this parameter, * all policies are described. If a group name is provided, the * results are limited to that group. This list is limited to 50 * items. If you specify an unknown policy name, it is ignored * with no error. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public DescribePoliciesRequest withPolicyNames(String... policyNames) { if (getPolicyNames() == null) { this.policyNames = new java.util.ArrayList<String>(policyNames.length); } for (String value : policyNames) { this.policyNames.add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAutoScalingGroupName() == null) ? 0 : getAutoScalingGroupName().hashCode()); hashCode = prime * hashCode + ((getPolicyNames() == null) ? 0 : getPolicyNames().hashCode()); hashCode = prime * hashCode + ((getPolicyTypes() == null) ? 0 : getPolicyTypes().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 (getAutoScalingGroupName() != null) sb.append("AutoScalingGroupName: " + getAutoScalingGroupName() + ","); if (getPolicyNames() != null) sb.append("PolicyNames: " + getPolicyNames() + ","); if (getPolicyTypes() != null) sb.append("PolicyTypes: " + getPolicyTypes() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getMaxRecords() != null) sb.append("MaxRecords: " + getMaxRecords()); sb.append("}"); return sb.toString(); }
&& other.getAutoScalingGroupName().equals(this.getAutoScalingGroupName()) == false) return false; if (other.getPolicyNames() == null ^ this.getPolicyNames() == null) return false; if (other.getPolicyNames() != null && other.getPolicyNames().equals(this.getPolicyNames()) == false) return false; if (other.getPolicyTypes() == null ^ this.getPolicyTypes() == null)
request.addParameter(prefix, StringUtils.fromString(autoScalingGroupName)); if (describePoliciesRequest.getPolicyNames() != null) { prefix = "PolicyNames"; java.util.List<String> policyNames = describePoliciesRequest.getPolicyNames(); int policyNamesIndex = 1; String policyNamesPrefix = prefix;