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

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

Best Java code snippets using com.amazonaws.services.ec2.model.DetachVolumeRequest.withVolumeId (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.modelDetachVolumeRequestwithVolumeId

Javadoc

The ID of the volume.

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
  • withDevice
    The device name.
  • withForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • withDevice,
  • withForce,
  • withInstanceId

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • BoxLayout (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for Android Studio
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