org.jclouds.cloudstack.options
Class ListHostsOptions

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

public class ListHostsOptions
extends AccountInDomainOptions

Options used to control what hosts information is returned

Author:
Andrei Savu
See Also:

Nested Class Summary
static class ListHostsOptions.Builder
           
 
Field Summary
static ListHostsOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
ListHostsOptions()
           
 
Method Summary
 ListHostsOptions accountInDomain(String account, long domain)
          
 ListHostsOptions allocationState(AllocationState allocationState)
           
 ListHostsOptions clusterId(long clusterId)
           
 ListHostsOptions domainId(long domainId)
          
 ListHostsOptions id(long id)
           
 ListHostsOptions keyword(String keyword)
           
 ListHostsOptions name(String name)
           
 ListHostsOptions page(long page)
           
 ListHostsOptions pageSize(long pageSize)
           
 ListHostsOptions podId(long podId)
           
 ListHostsOptions state(String state)
           
 ListHostsOptions type(Host.Type type)
           
 ListHostsOptions virtualMachineId(long virtualMachineId)
           
 ListHostsOptions 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 ListHostsOptions NONE
Constructor Detail

ListHostsOptions

public ListHostsOptions()
Method Detail

id

public ListHostsOptions id(long id)
Parameters:
id - the id of the host

allocationState

public ListHostsOptions allocationState(AllocationState allocationState)
Parameters:
allocationState - list hosts by allocation state

clusterId

public ListHostsOptions clusterId(long clusterId)
Parameters:
clusterId - lists hosts existing in particular cluster

keyword

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

name

public ListHostsOptions name(String name)
Parameters:
name - List by name

page

public ListHostsOptions page(long page)
Parameters:
page -

pageSize

public ListHostsOptions pageSize(long pageSize)
Parameters:
pageSize - the page size

podId

public ListHostsOptions podId(long podId)
Parameters:
podId - the Pod ID for the host

state

public ListHostsOptions state(String state)
Parameters:
state - the state of the host

type

public ListHostsOptions type(Host.Type type)
Parameters:
type - the type of the host

virtualMachineId

public ListHostsOptions virtualMachineId(long virtualMachineId)
Parameters:
virtualMachineId - lists hosts in the same cluster as this VM and flag hosts with enough CPU/RAm to host this VM

zoneId

public ListHostsOptions zoneId(long zoneId)
Parameters:
zoneId - the Zone ID for the host

accountInDomain

public ListHostsOptions accountInDomain(String account,
                                        long domain)

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

domainId

public ListHostsOptions domainId(long domainId)

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


Copyright © 2009-2012 jclouds. All Rights Reserved.