Class ListCommitmentsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.onesubscription.requests.ListCommitmentsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListCommitmentsRequest,Void>
- Enclosing class:
- ListCommitmentsRequest
public static class ListCommitmentsRequest.Builder extends Object implements BmcRequest.Builder<ListCommitmentsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCommitmentsRequestbuild()Build the instance of ListCommitmentsRequest as configured by this builderListCommitmentsRequestbuildWithoutInvocationCallback()Build the instance of ListCommitmentsRequest as configured by this builderListCommitmentsRequest.BuildercompartmentId(String compartmentId)The OCID of the root compartment.ListCommitmentsRequest.Buildercopy(ListCommitmentsRequest o)Copy method to populate the builder with values from the given instance.ListCommitmentsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListCommitmentsRequest.Builderlimit(Integer limit)The maximum number of items to return in a paginated “List” call.ListCommitmentsRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.ListCommitmentsRequest.Builderpage(String page)The value of the ‘opc-next-page’ response header from the previous “List” call.ListCommitmentsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListCommitmentsRequest.BuildersortBy(ListCommitmentsRequest.SortBy sortBy)The field to sort by.ListCommitmentsRequest.BuildersortOrder(ListCommitmentsRequest.SortOrder sortOrder)The sort order to use, either ascending (‘ASC’) or descending (‘DESC’).ListCommitmentsRequest.BuildersubscribedServiceId(String subscribedServiceId)This param is used to get the commitments for a particular subscribed service-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builder
body$
-
-
-
-
Method Detail
-
subscribedServiceId
public ListCommitmentsRequest.Builder subscribedServiceId(String subscribedServiceId)
This param is used to get the commitments for a particular subscribed service- Parameters:
subscribedServiceId- the value to set- Returns:
- this builder instance
-
compartmentId
public ListCommitmentsRequest.Builder compartmentId(String compartmentId)
The OCID of the root compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
limit
public ListCommitmentsRequest.Builder limit(Integer limit)
The maximum number of items to return in a paginated “List” call.Default: (50)
Example: '500'
- Parameters:
limit- the value to set- Returns:
- this builder instance
-
page
public ListCommitmentsRequest.Builder page(String page)
The value of the ‘opc-next-page’ response header from the previous “List” call.- Parameters:
page- the value to set- Returns:
- this builder instance
-
sortOrder
public ListCommitmentsRequest.Builder sortOrder(ListCommitmentsRequest.SortOrder sortOrder)
The sort order to use, either ascending (‘ASC’) or descending (‘DESC’).- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
sortBy
public ListCommitmentsRequest.Builder sortBy(ListCommitmentsRequest.SortBy sortBy)
The field to sort by.You can provide one sort order (‘sortOrder’).
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListCommitmentsRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListCommitmentsRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public ListCommitmentsRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public ListCommitmentsRequest.Builder copy(ListCommitmentsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListCommitmentsRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListCommitmentsRequest build()
Build the instance of ListCommitmentsRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuildWithoutInvocationCallback()does not.This is the preferred method to build an instance.
- Specified by:
buildin interfaceBmcRequest.Builder<ListCommitmentsRequest,Void>- Returns:
- instance of ListCommitmentsRequest
-
buildWithoutInvocationCallback
public ListCommitmentsRequest buildWithoutInvocationCallback()
Build the instance of ListCommitmentsRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuild()does- Returns:
- instance of ListCommitmentsRequest
-
-