/** * <p> * One or more subnet IDs. * </p> * <p> * Default: Describes all your subnets. * </p> * * @param subnetIds * One or more subnet IDs.</p> * <p> * Default: Describes all your subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSubnetsRequest withSubnetIds(java.util.Collection<String> subnetIds) { setSubnetIds(subnetIds); return this; }
/** * <p> * One or more subnet IDs. * </p> * <p> * Default: Describes all your 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 * One or more subnet IDs.</p> * <p> * Default: Describes all your subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSubnetsRequest 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; }
/** * One or more subnet IDs. <p>Default: Describes all your subnets. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param subnetIds One or more subnet IDs. <p>Default: Describes all your subnets. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeSubnetsRequest withSubnetIds(String... subnetIds) { if (getSubnetIds() == null) setSubnetIds(new java.util.ArrayList<String>(subnetIds.length)); for (String value : subnetIds) { getSubnetIds().add(value); } return this; }
/** * <p> * One or more subnet IDs. * </p> * <p> * Default: Describes all your subnets. * </p> * * @param subnetIds * One or more subnet IDs.</p> * <p> * Default: Describes all your subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSubnetsRequest withSubnetIds(java.util.Collection<String> subnetIds) { setSubnetIds(subnetIds); return this; }
/** * <p> * One or more subnet IDs. * </p> * <p> * Default: Describes all your 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 * One or more subnet IDs.</p> * <p> * Default: Describes all your subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSubnetsRequest 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; }
describeSubnetsRequest.setSubnetIds(subnetIds); try
describeSubnetsRequest.setSubnetIds(subnetIds); try