/** * <p> * An array of <code>BlockDeviceMapping</code> objects that specify the instance's block device mappings. * </p> * * @param blockDeviceMappings * An array of <code>BlockDeviceMapping</code> objects that specify the instance's block device mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public Instance withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings) { setBlockDeviceMappings(blockDeviceMappings); return this; }
/** * <p> * An array of <code>BlockDeviceMapping</code> objects that specify the instance's block device mappings. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBlockDeviceMappings(java.util.Collection)} or {@link #withBlockDeviceMappings(java.util.Collection)} * if you want to override the existing values. * </p> * * @param blockDeviceMappings * An array of <code>BlockDeviceMapping</code> objects that specify the instance's block device mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public Instance withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings) { if (this.blockDeviceMappings == null) { setBlockDeviceMappings(new com.amazonaws.internal.SdkInternalList<BlockDeviceMapping>(blockDeviceMappings.length)); } for (BlockDeviceMapping ele : blockDeviceMappings) { this.blockDeviceMappings.add(ele); } return this; }
instance.setBlockDeviceMappings(new ListUnmarshaller<BlockDeviceMapping>(BlockDeviceMappingJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * <p> * An array of <code>BlockDeviceMapping</code> objects that specify the instance's block device mappings. * </p> * * @param blockDeviceMappings * An array of <code>BlockDeviceMapping</code> objects that specify the instance's block device mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public Instance withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings) { setBlockDeviceMappings(blockDeviceMappings); return this; }
/** * <p> * An array of <code>BlockDeviceMapping</code> objects that specify the instance's block device mappings. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBlockDeviceMappings(java.util.Collection)} or {@link #withBlockDeviceMappings(java.util.Collection)} * if you want to override the existing values. * </p> * * @param blockDeviceMappings * An array of <code>BlockDeviceMapping</code> objects that specify the instance's block device mappings. * @return Returns a reference to this object so that method calls can be chained together. */ public Instance withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings) { if (this.blockDeviceMappings == null) { setBlockDeviceMappings(new com.amazonaws.internal.SdkInternalList<BlockDeviceMapping>(blockDeviceMappings.length)); } for (BlockDeviceMapping ele : blockDeviceMappings) { this.blockDeviceMappings.add(ele); } return this; }
instance.setBlockDeviceMappings(new ListUnmarshaller<BlockDeviceMapping>(BlockDeviceMappingJsonUnmarshaller.getInstance()) .unmarshall(context));