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:
org.jclouds.http.options.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, String domain)
          
 ListHostsOptions allocationState(AllocationState allocationState)
           
 ListHostsOptions clusterId(String clusterId)
           
 ListHostsOptions domainId(String domainId)
          
 ListHostsOptions id(String id)
           
 ListHostsOptions keyword(String keyword)
           
 ListHostsOptions name(String name)
           
 ListHostsOptions page(long page)
           
 ListHostsOptions pageSize(long pageSize)
           
 ListHostsOptions podId(String podId)
           
 ListHostsOptions state(String state)
           
 ListHostsOptions type(Host.Type type)
           
 ListHostsOptions virtualMachineId(String virtualMachineId)
           
 ListHostsOptions zoneId(String 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(String 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(String 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(String 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(String 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(String zoneId)
Parameters:
zoneId - the Zone ID for the host

accountInDomain

public ListHostsOptions accountInDomain(String account,
                                        String domain)

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

domainId

public ListHostsOptions domainId(String domainId)

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


Copyright © 2009-2013 jclouds. All Rights Reserved.