Tabnine Logo
DetachVolumeRequest.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.amazonaws.services.ec2.model.DetachVolumeRequest
constructor

Best Java code snippets using com.amazonaws.services.ec2.model.DetachVolumeRequest.<init> (Showing top 4 results out of 315)

origin: com.amazonaws.resources/aws-resources-ec2

@Override
public DetachVolumeResult detachFromInstance(
    ResultCapture<DetachVolumeResult> extractor) {
  DetachVolumeRequest request = new DetachVolumeRequest();
  return detachFromInstance(request, extractor);
}
origin: amazon-archives/aws-sdk-java-resources

@Override
public DetachVolumeResult detachFromInstance(
    ResultCapture<DetachVolumeResult> extractor) {
  DetachVolumeRequest request = new DetachVolumeRequest();
  return detachFromInstance(request, extractor);
}
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);
}
origin: org.kuali.common/kuali-aws

@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());
}
com.amazonaws.services.ec2.modelDetachVolumeRequest<init>

Javadoc

Default constructor for a new DetachVolumeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Popular methods of DetachVolumeRequest

  • 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
  • withInstanceId
    The ID of the instance.
  • withForce,
  • withInstanceId,
  • withVolumeId

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top PhpStorm 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