/** * Information about one or more VPCs. * * <p><b>NOTE:</b> This method appends the values to the existing list (if any). Use {@link * #setVpcs(java.util.Collection)} or {@link #withVpcs(java.util.Collection)} if you want to * override the existing values. * * @param vpcs Information about one or more VPCs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeVpcsResult withVpcs(Vpc... vpcs) { if (this.vpcs == null) { setVpcs(new com.amazonaws.internal.SdkInternalList<Vpc>(vpcs.length)); } for (Vpc ele : vpcs) { this.vpcs.add(ele); } return this; }
/** * Information about one or more VPCs. * * @param vpcs Information about one or more VPCs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeVpcsResult withVpcs(java.util.Collection<Vpc> vpcs) { setVpcs(vpcs); return this; }