org.jclouds.cloudstack.options
Class ListResourceLimitsOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.cloudstack.options.ListResourceLimitsOptions
- All Implemented Interfaces:
- HttpRequestOptions
public class ListResourceLimitsOptions
- extends BaseHttpRequestOptions
- Author:
- Vijay Kiran
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions |
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString |
NONE
public static final ListResourceLimitsOptions NONE
ListResourceLimitsOptions
public ListResourceLimitsOptions()
account
public ListResourceLimitsOptions account(String account,
long domainId)
- Lists resource limits by account. Must be used with the domainId parameter.
- Parameters:
account
- - the account for which the resource limits are retrieved for.
- Returns:
- ListResourceLimitsOptions
domainId
public ListResourceLimitsOptions domainId(long domainId)
- Lists resource limits by domain ID. If used with the account parameter,
lists resource limits for a specified account in a specified domain.
- Parameters:
domainId
-
- Returns:
- ListResourceLimitsOptions
id
public ListResourceLimitsOptions id(long id)
- Lists resource limits by ID.
- Parameters:
id
- of the resource limit.
- Returns:
- ListResourceLimitsOptions
keyword
public ListResourceLimitsOptions keyword(String keyword)
- List by keyword
- Parameters:
keyword
-
- Returns:
- ListResourceLimitsOptions
resourceType
public ListResourceLimitsOptions resourceType(int resourceType)
- Type of resource to update. Values are 0, 1, 2, 3, and 4.
- 0 - Instance. Number of instances a user can create.
- 1 - IP. Number of public IP addresses a user can own.
- 2 - Volume. Number of disk volumes a user can create.
- 3 - Snapshot. Number of snapshots a user can create.
- 4 - Template. Number of templates that a user can register/create.
- Parameters:
resourceType
- type of the resource to query for
- Returns:
- ListResourceLimitsOptions
Copyright © 2009-2012 jclouds. All Rights Reserved.