org.jclouds.cloudstack.options
Class ListVolumesOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.cloudstack.options.AccountInDomainOptions
          extended by org.jclouds.cloudstack.options.ListVolumesOptions
All Implemented Interfaces:
HttpRequestOptions

public class ListVolumesOptions
extends AccountInDomainOptions

Options used to control what volume

Author:
Vijay Kiran

Nested Class Summary
static class ListVolumesOptions.Builder
           
 
Field Summary
static ListVolumesOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
ListVolumesOptions()
           
 
Method Summary
 ListVolumesOptions accountInDomain(String account, long domain)
          
 ListVolumesOptions domainId(long domainId)
          
 ListVolumesOptions hostId(long hostId)
          List volumes on specified host
 ListVolumesOptions id(long id)
           
 ListVolumesOptions isRecursive(boolean recursive)
           
 ListVolumesOptions keyword(String keyword)
           
 ListVolumesOptions name(String name)
           
 ListVolumesOptions podId(long podId)
           
 ListVolumesOptions type(Volume.Type type)
           
 ListVolumesOptions virtualMachineId(long virtualMachineId)
           
 ListVolumesOptions zoneId(long zoneId)
           
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final ListVolumesOptions NONE
Constructor Detail

ListVolumesOptions

public ListVolumesOptions()
Method Detail

hostId

public ListVolumesOptions hostId(long hostId)
List volumes on specified host

Parameters:
hostId - hostId.

id

public ListVolumesOptions id(long id)
Parameters:
id - the ID of the volume

isRecursive

public ListVolumesOptions isRecursive(boolean recursive)
Parameters:
recursive - defaults to false, but if true, lists all volumes from the parent specified by the domain id till leaves.

keyword

public ListVolumesOptions keyword(String keyword)
Parameters:
keyword - List by keyword

name

public ListVolumesOptions name(String name)
Parameters:
name - the name of the disk volume

podId

public ListVolumesOptions podId(long podId)
Parameters:
podId - the pod id the disk volume belongs to

type

public ListVolumesOptions type(Volume.Type type)
Parameters:
type - the type of the disk volume

virtualMachineId

public ListVolumesOptions virtualMachineId(long virtualMachineId)
Parameters:
virtualMachineId - list volumes by id virtual machine.

zoneId

public ListVolumesOptions zoneId(long zoneId)
Parameters:
zoneId - list volumes by zoneId.

accountInDomain

public ListVolumesOptions accountInDomain(String account,
                                          long domain)

Overrides:
accountInDomain in class AccountInDomainOptions
Parameters:
account - an optional account for the resource
domain - domain id

domainId

public ListVolumesOptions domainId(long domainId)

Overrides:
domainId in class AccountInDomainOptions
Parameters:
domainId - The domain for the resource


Copyright © 2009-2012 jclouds. All Rights Reserved.