org.jclouds.ec2.options
Class DetachVolumeOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.ec2.options.internal.BaseEC2RequestOptions
          extended by org.jclouds.ec2.options.DetachVolumeOptions
All Implemented Interfaces:
HttpRequestOptions

public class DetachVolumeOptions
extends BaseEC2RequestOptions

Contains options supported in the Form API for the DetachVolume operation.

Usage

The recommended way to instantiate a DetachVolumeOptions object is to statically import DetachVolumeOptions.Builder.* and invoke a static creation method followed by an instance mutator (if needed):

import static org.jclouds.ec2.options.DetachVolumeOptions.Builder.*

EC2Client client = // get connection client.getElasticBlockStoreServices().detachVolumeInRegion(null, id, fromDevice("123125").force());

Author:
Adrian Cole
See Also:

Nested Class Summary
static class DetachVolumeOptions.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
DetachVolumeOptions()
           
 
Method Summary
 DetachVolumeOptions fromDevice(String device)
          The device name.
 DetachVolumeOptions fromInstance(String instanceId)
          The ID of the instance.
 String getDevice()
           
 String getInstance()
           
 
Methods inherited from class org.jclouds.ec2.options.internal.BaseEC2RequestOptions
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetachVolumeOptions

public DetachVolumeOptions()
Method Detail

fromInstance

public DetachVolumeOptions fromInstance(String instanceId)
The ID of the instance.


getInstance

public String getInstance()

fromDevice

public DetachVolumeOptions fromDevice(String device)
The device name.


getDevice

public String getDevice()


Copyright © 2009-2012 jclouds. All Rights Reserved.