/** * <p> * The IDs of the subnets. * </p> * * @param subnetIds * The IDs of the subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayVpcAttachment withSubnetIds(java.util.Collection<String> subnetIds) { setSubnetIds(subnetIds); return this; }
/** * <p> * The IDs of the subnets. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. * </p> * * @param subnetIds * The IDs of the subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayVpcAttachment withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new com.amazonaws.internal.SdkInternalList<String>(subnetIds.length)); } for (String ele : subnetIds) { this.subnetIds.add(ele); } return this; }
/** * <p> * The IDs of the subnets. * </p> * * @param subnetIds * The IDs of the subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayVpcAttachment withSubnetIds(java.util.Collection<String> subnetIds) { setSubnetIds(subnetIds); return this; }
/** * <p> * The IDs of the subnets. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. * </p> * * @param subnetIds * The IDs of the subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayVpcAttachment withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new com.amazonaws.internal.SdkInternalList<String>(subnetIds.length)); } for (String ele : subnetIds) { this.subnetIds.add(ele); } return this; }