/** * <p> * A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is * asynchronously applied as soon as possible. * </p> * * @param vpcSecurityGroupIds * A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is * asynchronously applied as soon as possible. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClusterRequest withVpcSecurityGroupIds(java.util.Collection<String> vpcSecurityGroupIds) { setVpcSecurityGroupIds(vpcSecurityGroupIds); return this; }
/** * <p> * A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is * asynchronously applied as soon as possible. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroupIds(java.util.Collection)} or {@link #withVpcSecurityGroupIds(java.util.Collection)} * if you want to override the existing values. * </p> * * @param vpcSecurityGroupIds * A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is * asynchronously applied as soon as possible. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClusterRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList<String>(vpcSecurityGroupIds.length)); } for (String ele : vpcSecurityGroupIds) { this.vpcSecurityGroupIds.add(ele); } return this; }
/** * <p> * A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is * asynchronously applied as soon as possible. * </p> * * @param vpcSecurityGroupIds * A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is * asynchronously applied as soon as possible. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClusterRequest withVpcSecurityGroupIds(java.util.Collection<String> vpcSecurityGroupIds) { setVpcSecurityGroupIds(vpcSecurityGroupIds); return this; }
/** * <p> * A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is * asynchronously applied as soon as possible. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroupIds(java.util.Collection)} or {@link #withVpcSecurityGroupIds(java.util.Collection)} * if you want to override the existing values. * </p> * * @param vpcSecurityGroupIds * A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is * asynchronously applied as soon as possible. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClusterRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList<String>(vpcSecurityGroupIds.length)); } for (String ele : vpcSecurityGroupIds) { this.vpcSecurityGroupIds.add(ele); } return this; }