/** * Constructs a new DetachVolumeRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param volumeId * The ID of the volume. */ public DetachVolumeRequest(String volumeId) { setVolumeId(volumeId); }
/** * <p> * The ID of the volume. * </p> * * @param volumeId * The ID of the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public DetachVolumeRequest withVolumeId(String volumeId) { setVolumeId(volumeId); return this; }
/** * Constructs a new DetachVolumeRequest object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param volumeId The ID of the volume. */ public DetachVolumeRequest(String volumeId) { setVolumeId(volumeId); }
/** * <p> * The ID of the volume. * </p> * * @param volumeId * The ID of the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public DetachVolumeRequest withVolumeId(String volumeId) { setVolumeId(volumeId); return this; }
/** * Constructs a new DetachVolumeRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param volumeId * The ID of the volume. */ public DetachVolumeRequest(String volumeId) { setVolumeId(volumeId); }
@Override public String detachVolume(VolumeRequest request) { com.amazonaws.services.ec2.model.DetachVolumeRequest dvr = new com.amazonaws.services.ec2.model.DetachVolumeRequest(); dvr.setInstanceId(request.getInstanceId()); dvr.setVolumeId(request.getVolumeId()); dvr.setDevice(request.getDevice()); client.detachVolume(dvr); return waitForDetached(request.getVolumeId(), request.getTimeout()); }