/** * 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 (getFromPort() != null) sb.append("FromPort: ").append(getFromPort()).append(","); if (getIpProtocol() != null) sb.append("IpProtocol: ").append(getIpProtocol()).append(","); if (getIpv6Ranges() != null) sb.append("Ipv6Ranges: ").append(getIpv6Ranges()).append(","); if (getPrefixListIds() != null) sb.append("PrefixListIds: ").append(getPrefixListIds()).append(","); if (getToPort() != null) sb.append("ToPort: ").append(getToPort()).append(","); if (getUserIdGroupPairs() != null) sb.append("UserIdGroupPairs: ").append(getUserIdGroupPairs()).append(","); if (getIpv4Ranges() != null) sb.append("Ipv4Ranges: ").append(getIpv4Ranges()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFromPort() == null) ? 0 : getFromPort().hashCode()); hashCode = prime * hashCode + ((getIpProtocol() == null) ? 0 : getIpProtocol().hashCode()); hashCode = prime * hashCode + ((getIpv6Ranges() == null) ? 0 : getIpv6Ranges().hashCode()); hashCode = prime * hashCode + ((getPrefixListIds() == null) ? 0 : getPrefixListIds().hashCode()); hashCode = prime * hashCode + ((getToPort() == null) ? 0 : getToPort().hashCode()); hashCode = prime * hashCode + ((getUserIdGroupPairs() == null) ? 0 : getUserIdGroupPairs().hashCode()); hashCode = prime * hashCode + ((getIpv4Ranges() == null) ? 0 : getIpv4Ranges().hashCode()); return hashCode; }
if (other.getIpv6Ranges() != null && other.getIpv6Ranges().equals(this.getIpv6Ranges()) == false) return false; if (other.getPrefixListIds() == null ^ this.getPrefixListIds() == null) return false; if (other.getPrefixListIds() != null && other.getPrefixListIds().equals(this.getPrefixListIds()) == false) return false; if (other.getToPort() == null ^ this.getToPort() == null)
/** * (Valid for <a>AuthorizeSecurityGroupEgress</a>, * <a>RevokeSecurityGroupEgress</a> and <a>DescribeSecurityGroups</a> * only) One or more prefix list IDs for an AWS service. In an * <a>AuthorizeSecurityGroupEgress</a> request, this is the AWS service * that you want to access through a VPC endpoint from instances * associated with the security group. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param prefixListIds (Valid for <a>AuthorizeSecurityGroupEgress</a>, * <a>RevokeSecurityGroupEgress</a> and <a>DescribeSecurityGroups</a> * only) One or more prefix list IDs for an AWS service. In an * <a>AuthorizeSecurityGroupEgress</a> request, this is the AWS service * that you want to access through a VPC endpoint from instances * associated with the security group. * * @return A reference to this updated object so that method calls can be chained * together. */ public IpPermission withPrefixListIds(PrefixListId... prefixListIds) { if (getPrefixListIds() == null) setPrefixListIds(new java.util.ArrayList<PrefixListId>(prefixListIds.length)); for (PrefixListId value : prefixListIds) { getPrefixListIds().add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIpProtocol() == null) ? 0 : getIpProtocol().hashCode()); hashCode = prime * hashCode + ((getFromPort() == null) ? 0 : getFromPort().hashCode()); hashCode = prime * hashCode + ((getToPort() == null) ? 0 : getToPort().hashCode()); hashCode = prime * hashCode + ((getUserIdGroupPairs() == null) ? 0 : getUserIdGroupPairs().hashCode()); hashCode = prime * hashCode + ((getIpRanges() == null) ? 0 : getIpRanges().hashCode()); hashCode = prime * hashCode + ((getPrefixListIds() == null) ? 0 : getPrefixListIds().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 (getIpProtocol() != null) sb.append("IpProtocol: " + getIpProtocol() + ","); if (getFromPort() != null) sb.append("FromPort: " + getFromPort() + ","); if (getToPort() != null) sb.append("ToPort: " + getToPort() + ","); if (getUserIdGroupPairs() != null) sb.append("UserIdGroupPairs: " + getUserIdGroupPairs() + ","); if (getIpRanges() != null) sb.append("IpRanges: " + getIpRanges() + ","); if (getPrefixListIds() != null) sb.append("PrefixListIds: " + getPrefixListIds() ); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IpPermission == false) return false; IpPermission other = (IpPermission)obj; if (other.getIpProtocol() == null ^ this.getIpProtocol() == null) return false; if (other.getIpProtocol() != null && other.getIpProtocol().equals(this.getIpProtocol()) == false) return false; if (other.getFromPort() == null ^ this.getFromPort() == null) return false; if (other.getFromPort() != null && other.getFromPort().equals(this.getFromPort()) == false) return false; if (other.getToPort() == null ^ this.getToPort() == null) return false; if (other.getToPort() != null && other.getToPort().equals(this.getToPort()) == false) return false; if (other.getUserIdGroupPairs() == null ^ this.getUserIdGroupPairs() == null) return false; if (other.getUserIdGroupPairs() != null && other.getUserIdGroupPairs().equals(this.getUserIdGroupPairs()) == false) return false; if (other.getIpRanges() == null ^ this.getIpRanges() == null) return false; if (other.getIpRanges() != null && other.getIpRanges().equals(this.getIpRanges()) == false) return false; if (other.getPrefixListIds() == null ^ this.getPrefixListIds() == null) return false; if (other.getPrefixListIds() != null && other.getPrefixListIds().equals(this.getPrefixListIds()) == false) return false; return true; }
.getPrefixListIds(); if (!ipPermissionPrefixListIdsList.isEmpty() || !ipPermissionPrefixListIdsList.isAutoConstruct()) { int prefixListIdsListIndex = 1;
.getPrefixListIds(); if (!ipPermissionPrefixListIdsList.isEmpty() || !ipPermissionPrefixListIdsList.isAutoConstruct()) { int prefixListIdsListIndex = 1;
.getPrefixListIds(); if (!ipPermissionPrefixListIdsList.isEmpty() || !ipPermissionPrefixListIdsList.isAutoConstruct()) { int prefixListIdsListIndex = 1;
.getPrefixListIds(); if (!ipPermissionPrefixListIdsList.isEmpty() || !ipPermissionPrefixListIdsList.isAutoConstruct()) { int prefixListIdsListIndex = 1;
.getPrefixListIds(); if (!ipPermissionPrefixListIdsList.isEmpty() || !ipPermissionPrefixListIdsList.isAutoConstruct()) { int prefixListIdsListIndex = 1;
.getPrefixListIds(); if (!ipPermissionPrefixListIdsList.isEmpty() || !ipPermissionPrefixListIdsList.isAutoConstruct()) { int prefixListIdsListIndex = 1;
ipPermission.getPrefixListIds().add(PrefixListIdStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * 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 (getFromPort() != null) sb.append("FromPort: ").append(getFromPort()).append(","); if (getIpProtocol() != null) sb.append("IpProtocol: ").append(getIpProtocol()).append(","); if (getIpv6Ranges() != null) sb.append("Ipv6Ranges: ").append(getIpv6Ranges()).append(","); if (getPrefixListIds() != null) sb.append("PrefixListIds: ").append(getPrefixListIds()).append(","); if (getToPort() != null) sb.append("ToPort: ").append(getToPort()).append(","); if (getUserIdGroupPairs() != null) sb.append("UserIdGroupPairs: ").append(getUserIdGroupPairs()).append(","); if (getIpv4Ranges() != null) sb.append("Ipv4Ranges: ").append(getIpv4Ranges()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFromPort() == null) ? 0 : getFromPort().hashCode()); hashCode = prime * hashCode + ((getIpProtocol() == null) ? 0 : getIpProtocol().hashCode()); hashCode = prime * hashCode + ((getIpv6Ranges() == null) ? 0 : getIpv6Ranges().hashCode()); hashCode = prime * hashCode + ((getPrefixListIds() == null) ? 0 : getPrefixListIds().hashCode()); hashCode = prime * hashCode + ((getToPort() == null) ? 0 : getToPort().hashCode()); hashCode = prime * hashCode + ((getUserIdGroupPairs() == null) ? 0 : getUserIdGroupPairs().hashCode()); hashCode = prime * hashCode + ((getIpv4Ranges() == null) ? 0 : getIpv4Ranges().hashCode()); return hashCode; }
java.util.List<PrefixListId> prefixListIdsList = ipPermissionMember.getPrefixListIds(); int prefixListIdsListIndex = 1;
java.util.List<PrefixListId> prefixListIdsList = ipPermissionMember.getPrefixListIds(); int prefixListIdsListIndex = 1;
java.util.List<PrefixListId> prefixListIdsList = ipPermissionMember.getPrefixListIds(); int prefixListIdsListIndex = 1;
java.util.List<PrefixListId> prefixListIdsList = ipPermissionMember.getPrefixListIds(); int prefixListIdsListIndex = 1;