Tabnine Logo
DetachVolumeRequest.withDevice
Code IndexAdd Tabnine to your IDE (free)

How to use
withDevice
method
in
com.amazonaws.services.ec2.model.DetachVolumeRequest

Best Java code snippets using com.amazonaws.services.ec2.model.DetachVolumeRequest.withDevice (Showing top 1 results out of 315)

origin: UrbanCode/terraform

/**
 *
 * @param volumeId
 * @param instanceId
 * @param device
 * @param force
 * @param ec2Client
 */
public void detachEbsVolumeFromInstance(String volumeId, String instanceId, String device,
                       boolean force, AmazonEC2 ec2Client) {
  DetachVolumeRequest request = new DetachVolumeRequest()
                    .withDevice(device)
                    .withInstanceId(instanceId)
                    .withVolumeId(volumeId)
                    .withForce(force);
  @SuppressWarnings("unused")
  DetachVolumeResult result = ec2Client.detachVolume(request);
}
com.amazonaws.services.ec2.modelDetachVolumeRequestwithDevice

Javadoc

The device name.

Returns a reference to this object so that method calls can be chained together.

Popular methods of DetachVolumeRequest

  • <init>
    Constructs a new DetachVolumeRequest object. Callers should use the setter or fluent setter (with...
  • setVolumeId
    The ID of the volume.
  • getDevice
    The device name.
  • getInstanceId
    The ID of the instance.
  • getVolumeId
    The ID of the volume.
  • setDevice
    The device name.
  • setInstanceId
    The ID of the instance.
  • getForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • isForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • setForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • withForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • withInstanceId
    The ID of the instance.
  • withForce,
  • withInstanceId,
  • withVolumeId

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now