/** * <p> * [EC2-VPC] One or more outbound rules associated with the security group. * </p> * * @param ipPermissionsEgress * [EC2-VPC] One or more outbound rules associated with the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityGroup withIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress) { setIpPermissionsEgress(ipPermissionsEgress); return this; }
/** * <p> * [EC2-VPC] One or more outbound rules associated with the security group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setIpPermissionsEgress(java.util.Collection)} or {@link #withIpPermissionsEgress(java.util.Collection)} * if you want to override the existing values. * </p> * * @param ipPermissionsEgress * [EC2-VPC] One or more outbound rules associated with the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityGroup withIpPermissionsEgress(IpPermission... ipPermissionsEgress) { if (this.ipPermissionsEgress == null) { setIpPermissionsEgress(new com.amazonaws.internal.SdkInternalList<IpPermission>(ipPermissionsEgress.length)); } for (IpPermission ele : ipPermissionsEgress) { this.ipPermissionsEgress.add(ele); } return this; }
/** * [EC2-VPC] One or more outbound rules associated with the security * group. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param ipPermissionsEgress [EC2-VPC] One or more outbound rules associated with the security * group. * * @return A reference to this updated object so that method calls can be chained * together. */ public SecurityGroup withIpPermissionsEgress(IpPermission... ipPermissionsEgress) { if (getIpPermissionsEgress() == null) setIpPermissionsEgress(new java.util.ArrayList<IpPermission>(ipPermissionsEgress.length)); for (IpPermission value : ipPermissionsEgress) { getIpPermissionsEgress().add(value); } return this; }
/** * <p> * [EC2-VPC] One or more outbound rules associated with the security group. * </p> * * @param ipPermissionsEgress * [EC2-VPC] One or more outbound rules associated with the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityGroup withIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress) { setIpPermissionsEgress(ipPermissionsEgress); return this; }
/** * <p> * [EC2-VPC] One or more outbound rules associated with the security group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setIpPermissionsEgress(java.util.Collection)} or {@link #withIpPermissionsEgress(java.util.Collection)} * if you want to override the existing values. * </p> * * @param ipPermissionsEgress * [EC2-VPC] One or more outbound rules associated with the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityGroup withIpPermissionsEgress(IpPermission... ipPermissionsEgress) { if (this.ipPermissionsEgress == null) { setIpPermissionsEgress(new com.amazonaws.internal.SdkInternalList<IpPermission>(ipPermissionsEgress.length)); } for (IpPermission ele : ipPermissionsEgress) { this.ipPermissionsEgress.add(ele); } return this; }