/** * <p> * The EBS block devices that are mapped to this instance group. * </p> * * @param ebsBlockDevices * The EBS block devices that are mapped to this instance group. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceGroup withEbsBlockDevices(java.util.Collection<EbsBlockDevice> ebsBlockDevices) { setEbsBlockDevices(ebsBlockDevices); return this; }
/** * <p> * The EBS block devices that are mapped to this instance group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEbsBlockDevices(java.util.Collection)} or {@link #withEbsBlockDevices(java.util.Collection)} if you * want to override the existing values. * </p> * * @param ebsBlockDevices * The EBS block devices that are mapped to this instance group. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceGroup withEbsBlockDevices(EbsBlockDevice... ebsBlockDevices) { if (this.ebsBlockDevices == null) { setEbsBlockDevices(new com.amazonaws.internal.SdkInternalList<EbsBlockDevice>(ebsBlockDevices.length)); } for (EbsBlockDevice ele : ebsBlockDevices) { this.ebsBlockDevices.add(ele); } return this; }
instanceGroup.setEbsBlockDevices(new ListUnmarshaller<EbsBlockDevice>(EbsBlockDeviceJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * The EBS block devices that are mapped to this instance group. * </p> * * @param ebsBlockDevices * The EBS block devices that are mapped to this instance group. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceGroup withEbsBlockDevices(java.util.Collection<EbsBlockDevice> ebsBlockDevices) { setEbsBlockDevices(ebsBlockDevices); return this; }
/** * <p> * The EBS block devices that are mapped to this instance group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEbsBlockDevices(java.util.Collection)} or {@link #withEbsBlockDevices(java.util.Collection)} if you * want to override the existing values. * </p> * * @param ebsBlockDevices * The EBS block devices that are mapped to this instance group. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceGroup withEbsBlockDevices(EbsBlockDevice... ebsBlockDevices) { if (this.ebsBlockDevices == null) { setEbsBlockDevices(new com.amazonaws.internal.SdkInternalList<EbsBlockDevice>(ebsBlockDevices.length)); } for (EbsBlockDevice ele : ebsBlockDevices) { this.ebsBlockDevices.add(ele); } return this; }
instanceGroup.setEbsBlockDevices(new ListUnmarshaller<EbsBlockDevice>(EbsBlockDeviceJsonUnmarshaller.getInstance()).unmarshall(context));