/** * <p> * [EC2-VPC only] One or more prefix list IDs for an AWS service. With <a>AuthorizeSecurityGroupEgress</a>, this is * the AWS service that you want to access through a VPC endpoint from instances associated with the security group. * </p> * * @param prefixListIds * [EC2-VPC only] One or more prefix list IDs for an AWS service. With <a>AuthorizeSecurityGroupEgress</a>, * this is the AWS service that you want to access through a VPC endpoint from instances associated with the * security group. * @return Returns a reference to this object so that method calls can be chained together. */ public IpPermission withPrefixListIds(java.util.Collection<PrefixListId> prefixListIds) { setPrefixListIds(prefixListIds); return this; }
/** * <p> * [EC2-VPC only] One or more prefix list IDs for an AWS service. With <a>AuthorizeSecurityGroupEgress</a>, this is * the AWS service that you want to access through a VPC endpoint from instances associated with the security group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setPrefixListIds(java.util.Collection)} or {@link #withPrefixListIds(java.util.Collection)} if you want * to override the existing values. * </p> * * @param prefixListIds * [EC2-VPC only] One or more prefix list IDs for an AWS service. With <a>AuthorizeSecurityGroupEgress</a>, * this is the AWS service that you want to access through a VPC endpoint from instances associated with the * security group. * @return Returns a reference to this object so that method calls can be chained together. */ public IpPermission withPrefixListIds(PrefixListId... prefixListIds) { if (this.prefixListIds == null) { setPrefixListIds(new com.amazonaws.internal.SdkInternalList<PrefixListId>(prefixListIds.length)); } for (PrefixListId ele : prefixListIds) { this.prefixListIds.add(ele); } return this; }
/** * (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; }
/** * <p> * [EC2-VPC only] One or more prefix list IDs for an AWS service. With <a>AuthorizeSecurityGroupEgress</a>, this is * the AWS service that you want to access through a VPC endpoint from instances associated with the security group. * </p> * * @param prefixListIds * [EC2-VPC only] One or more prefix list IDs for an AWS service. With <a>AuthorizeSecurityGroupEgress</a>, * this is the AWS service that you want to access through a VPC endpoint from instances associated with the * security group. * @return Returns a reference to this object so that method calls can be chained together. */ public IpPermission withPrefixListIds(java.util.Collection<PrefixListId> prefixListIds) { setPrefixListIds(prefixListIds); return this; }
/** * <p> * [EC2-VPC only] One or more prefix list IDs for an AWS service. With <a>AuthorizeSecurityGroupEgress</a>, this is * the AWS service that you want to access through a VPC endpoint from instances associated with the security group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setPrefixListIds(java.util.Collection)} or {@link #withPrefixListIds(java.util.Collection)} if you want * to override the existing values. * </p> * * @param prefixListIds * [EC2-VPC only] One or more prefix list IDs for an AWS service. With <a>AuthorizeSecurityGroupEgress</a>, * this is the AWS service that you want to access through a VPC endpoint from instances associated with the * security group. * @return Returns a reference to this object so that method calls can be chained together. */ public IpPermission withPrefixListIds(PrefixListId... prefixListIds) { if (this.prefixListIds == null) { setPrefixListIds(new com.amazonaws.internal.SdkInternalList<PrefixListId>(prefixListIds.length)); } for (PrefixListId ele : prefixListIds) { this.prefixListIds.add(ele); } return this; }