Package org.jclouds.cloudstack.options
Class ListHostsOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudstack.options.AccountInDomainOptions
-
- org.jclouds.cloudstack.options.ListHostsOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class ListHostsOptions extends AccountInDomainOptions
Options used to control what hosts information is returned
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListHostsOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static ListHostsOptionsNONE-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description ListHostsOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListHostsOptionsaccountInDomain(String account, String domain)ListHostsOptionsallocationState(AllocationState allocationState)ListHostsOptionsclusterId(String clusterId)ListHostsOptionsdomainId(String domainId)ListHostsOptionsid(String id)ListHostsOptionskeyword(String keyword)ListHostsOptionsname(String name)ListHostsOptionspage(long page)ListHostsOptionspageSize(long pageSize)ListHostsOptionspodId(String podId)ListHostsOptionsstate(String state)ListHostsOptionstype(Host.Type type)ListHostsOptionsvirtualMachineId(String virtualMachineId)ListHostsOptionszoneId(String zoneId)-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Field Detail
-
NONE
public static final ListHostsOptions NONE
-
-
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:
accountInDomainin classAccountInDomainOptions- Parameters:
account- an optional account for the resourcedomain- domain id
-
domainId
public ListHostsOptions domainId(String domainId)
- Overrides:
domainIdin classAccountInDomainOptions- Parameters:
domainId- The domain for the resource
-
-