@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getGroupIds() == null) ? 0 : getGroupIds().hashCode()); hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().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 (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getGroupIds() != null) sb.append("GroupIds: ").append(getGroupIds()).append(","); if (getGroupNames() != null) sb.append("GroupNames: ").append(getGroupNames()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); }
if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getGroupIds() == null ^ this.getGroupIds() == null) return false; if (other.getGroupIds() != null && other.getGroupIds().equals(this.getGroupIds()) == false) return false; if (other.getGroupNames() == null ^ this.getGroupNames() == null)
/** * One or more security group IDs. Required for security groups in a * nondefault VPC. <p>Default: Describes all your security groups. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param groupIds One or more security group IDs. Required for security groups in a * nondefault VPC. <p>Default: Describes all your security groups. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeSecurityGroupsRequest withGroupIds(String... groupIds) { if (getGroupIds() == null) setGroupIds(new java.util.ArrayList<String>(groupIds.length)); for (String value : groupIds) { getGroupIds().add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode()); hashCode = prime * hashCode + ((getGroupIds() == null) ? 0 : getGroupIds().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().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 (getGroupNames() != null) sb.append("GroupNames: " + getGroupNames() + ","); if (getGroupIds() != null) sb.append("GroupIds: " + getGroupIds() + ","); if (getFilters() != null) sb.append("Filters: " + getFilters() ); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeSecurityGroupsRequest == false) return false; DescribeSecurityGroupsRequest other = (DescribeSecurityGroupsRequest)obj; if (other.getGroupNames() == null ^ this.getGroupNames() == null) return false; if (other.getGroupNames() != null && other.getGroupNames().equals(this.getGroupNames()) == false) return false; if (other.getGroupIds() == null ^ this.getGroupIds() == null) return false; if (other.getGroupIds() != null && other.getGroupIds().equals(this.getGroupIds()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; return true; }
.getGroupIds(); if (!describeSecurityGroupsRequestGroupIdsList.isEmpty() || !describeSecurityGroupsRequestGroupIdsList.isAutoConstruct()) { int groupIdsListIndex = 1;
java.util.List<String> groupIdsList = describeSecurityGroupsRequest.getGroupIds(); int groupIdsListIndex = 1;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getGroupIds() == null) ? 0 : getGroupIds().hashCode()); hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().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 (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getGroupIds() != null) sb.append("GroupIds: ").append(getGroupIds()).append(","); if (getGroupNames() != null) sb.append("GroupNames: ").append(getGroupNames()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); }
if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getGroupIds() == null ^ this.getGroupIds() == null) return false; if (other.getGroupIds() != null && other.getGroupIds().equals(this.getGroupIds()) == false) return false; if (other.getGroupNames() == null ^ this.getGroupNames() == null)
.getGroupIds(); if (!describeSecurityGroupsRequestGroupIdsList.isEmpty() || !describeSecurityGroupsRequestGroupIdsList.isAutoConstruct()) { int groupIdsListIndex = 1;