@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.getPolicyNames() != null && other.getPolicyNames().equals(this.getPolicyNames()) == false) return false; if (other.getPolicyTypes() == null ^ this.getPolicyTypes() == null) return false; if (other.getPolicyTypes() != null && other.getPolicyTypes().equals(this.getPolicyTypes()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null)
if (!describePoliciesRequest.getPolicyTypes().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) describePoliciesRequest.getPolicyTypes()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> policyTypesList = (com.amazonaws.internal.SdkInternalList<String>) describePoliciesRequest .getPolicyTypes(); int policyTypesListIndex = 1;
/** * <p> * One or more policy types. Valid values are <code>SimpleScaling</code> and * <code>StepScaling</code>. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param policyTypes <p> * One or more policy types. Valid values are * <code>SimpleScaling</code> and <code>StepScaling</code>. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public DescribePoliciesRequest withPolicyTypes(String... policyTypes) { if (getPolicyTypes() == null) { this.policyTypes = new java.util.ArrayList<String>(policyTypes.length); } for (String value : policyTypes) { this.policyTypes.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.getPolicyNames().equals(this.getPolicyNames()) == false) return false; if (other.getPolicyTypes() == null ^ this.getPolicyTypes() == null) return false; if (other.getPolicyTypes() != null && other.getPolicyTypes().equals(this.getPolicyTypes()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null)
if (describePoliciesRequest.getPolicyTypes() != null) { prefix = "PolicyTypes"; java.util.List<String> policyTypes = describePoliciesRequest.getPolicyTypes(); int policyTypesIndex = 1; String policyTypesPrefix = prefix;