Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListResourceLimitsOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static ListResourceLimitsOptionsNONE-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description ListResourceLimitsOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListResourceLimitsOptionsaccount(String account, String domainId)Lists resource limits by account.ListResourceLimitsOptionsdomainId(String domainId)Lists resource limits by domain ID.ListResourceLimitsOptionsid(String id)Lists resource limits by ID.ListResourceLimitsOptionskeyword(String keyword)List by keywordListResourceLimitsOptionsprojectId(String projectId)Lists resource limits by project.ListResourceLimitsOptionsresourceType(int resourceType)Type of resource to update.-
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 ListResourceLimitsOptions NONE
-
-
Method Detail
-
account
public ListResourceLimitsOptions account(String account, String 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(String 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(String id)
Lists resource limits by ID.- Parameters:
id- of the resource limit.- Returns:
- ListResourceLimitsOptions
-
projectId
public ListResourceLimitsOptions projectId(String projectId)
Lists resource limits by project.- Parameters:
projectId- the project- 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
-
-