/** * <p> * One or more product codes. * </p> * * @param productCodes * One or more product codes. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withProductCodes(java.util.Collection<ProductCode> productCodes) { setProductCodes(productCodes); return this; }
/** * <p> * One or more product codes. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setProductCodes(java.util.Collection)} or {@link #withProductCodes(java.util.Collection)} if you want to * override the existing values. * </p> * * @param productCodes * One or more product codes. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withProductCodes(ProductCode... productCodes) { if (this.productCodes == null) { setProductCodes(new com.amazonaws.internal.SdkInternalList<ProductCode>(productCodes.length)); } for (ProductCode ele : productCodes) { this.productCodes.add(ele); } return this; }
/** * <p> * One or more product codes. * </p> * * @param productCodes * One or more product codes. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withProductCodes(java.util.Collection<ProductCode> productCodes) { setProductCodes(productCodes); return this; }
/** * <p> * One or more product codes. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setProductCodes(java.util.Collection)} or {@link #withProductCodes(java.util.Collection)} if you want to * override the existing values. * </p> * * @param productCodes * One or more product codes. * @return Returns a reference to this object so that method calls can be chained together. */ public FpgaImageAttribute withProductCodes(ProductCode... productCodes) { if (this.productCodes == null) { setProductCodes(new com.amazonaws.internal.SdkInternalList<ProductCode>(productCodes.length)); } for (ProductCode ele : productCodes) { this.productCodes.add(ele); } return this; }