org.jclouds.cloudstack.options
Class ListUsersOptions

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

public class ListUsersOptions
extends AccountInDomainOptions

Options used to control what user information is returned

Author:
Andrei Savu
See Also:

Nested Class Summary
static class ListUsersOptions.Builder
           
 
Field Summary
static ListUsersOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
ListUsersOptions()
           
 
Method Summary
 ListUsersOptions accountInDomain(String account, long domain)
          
 ListUsersOptions accountType(String accountType)
           
 ListUsersOptions domainId(long domainId)
          
 ListUsersOptions id(long id)
           
 ListUsersOptions keyword(String keyword)
           
 ListUsersOptions page(long page)
           
 ListUsersOptions pageSize(long pageSize)
           
 ListUsersOptions state(User.State state)
           
 ListUsersOptions userName(String userName)
           
 
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 ListUsersOptions NONE
Constructor Detail

ListUsersOptions

public ListUsersOptions()
Method Detail

id

public ListUsersOptions id(long id)
Parameters:
id - list account by account ID

userName

public ListUsersOptions userName(String userName)
Parameters:
userName - retrieve user by name

state

public ListUsersOptions state(User.State state)
Parameters:
state - list accounts by state. Valid states are enabled, disabled, and locked.

accountType

public ListUsersOptions accountType(String accountType)
Parameters:
accountType - List users by account type. Valid types include admin, domain-admin, read-only-admin, or user.

keyword

public ListUsersOptions keyword(String keyword)
Parameters:
keyword -

page

public ListUsersOptions page(long page)
Parameters:
page - the page number

pageSize

public ListUsersOptions pageSize(long pageSize)
Parameters:
pageSize - the number of items per page

accountInDomain

public ListUsersOptions accountInDomain(String account,
                                        long domain)

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

domainId

public ListUsersOptions domainId(long domainId)

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


Copyright © 2009-2012 jclouds. All Rights Reserved.