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 class
ListHostsOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static ListHostsOptions
NONE
-
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 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, 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:
accountInDomain
in classAccountInDomainOptions
- Parameters:
account
- an optional account for the resourcedomain
- domain id
-
domainId
public ListHostsOptions domainId(String domainId)
- Overrides:
domainId
in classAccountInDomainOptions
- Parameters:
domainId
- The domain for the resource
-
-