Class ListUsageLedgersRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.onesubscription.requests.ListUsageLedgersRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListUsageLedgersRequest,Void>
- Enclosing class:
- ListUsageLedgersRequest
public static class ListUsageLedgersRequest.Builder extends Object implements BmcRequest.Builder<ListUsageLedgersRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListUsageLedgersRequestbuild()Build the instance of ListUsageLedgersRequest as configured by this builderListUsageLedgersRequestbuildWithoutInvocationCallback()Build the instance of ListUsageLedgersRequest as configured by this builderListUsageLedgersRequest.BuildercompartmentId(String compartmentId)The OCID of the root compartment.ListUsageLedgersRequest.Buildercopy(ListUsageLedgersRequest o)Copy method to populate the builder with values from the given instance.ListUsageLedgersRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListUsageLedgersRequest.Builderlimit(Integer limit)The maximum number of items to return in a paginated “List” call.ListUsageLedgersRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.ListUsageLedgersRequest.Builderpage(String page)The value of the ‘opc-next-page’ response header from the previous “List” call.ListUsageLedgersRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListUsageLedgersRequest.BuildersortBy(ListUsageLedgersRequest.SortBy sortBy)The usage-ledger field to sort by.ListUsageLedgersRequest.BuildersortOrder(ListUsageLedgersRequest.SortOrder sortOrder)The usage-ledger sort order to use, either ascending (‘ASC’) or descending (‘DESC’).ListUsageLedgersRequest.BuildersubscriptionId(String subscriptionId)Subscription identifier.ListUsageLedgersRequest.BuildertimeConsumptionGreaterThanOrEqualTo(Date timeConsumptionGreaterThanOrEqualTo)The lower bound of the consumption-date range, expressed in RFC 3339 timestamp format.ListUsageLedgersRequest.BuildertimeConsumptionLessThan(Date timeConsumptionLessThan)The upper bound of the consumption-date range, expressed in RFC 3339 timestamp format.-
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
-
subscriptionId
public ListUsageLedgersRequest.Builder subscriptionId(String subscriptionId)
Subscription identifier.- Parameters:
subscriptionId- the value to set- Returns:
- this builder instance
-
compartmentId
public ListUsageLedgersRequest.Builder compartmentId(String compartmentId)
The OCID of the root compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
limit
public ListUsageLedgersRequest.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 ListUsageLedgersRequest.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 ListUsageLedgersRequest.Builder sortOrder(ListUsageLedgersRequest.SortOrder sortOrder)
The usage-ledger sort order to use, either ascending (‘ASC’) or descending (‘DESC’).- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
sortBy
public ListUsageLedgersRequest.Builder sortBy(ListUsageLedgersRequest.SortBy sortBy)
The usage-ledger field to sort by.You can provide one sort order (‘sortOrder’).
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
timeConsumptionGreaterThanOrEqualTo
public ListUsageLedgersRequest.Builder timeConsumptionGreaterThanOrEqualTo(Date timeConsumptionGreaterThanOrEqualTo)
The lower bound of the consumption-date range, expressed in RFC 3339 timestamp format.The value is inclusive (>=).
- Parameters:
timeConsumptionGreaterThanOrEqualTo- the value to set- Returns:
- this builder instance
-
timeConsumptionLessThan
public ListUsageLedgersRequest.Builder timeConsumptionLessThan(Date timeConsumptionLessThan)
The upper bound of the consumption-date range, expressed in RFC 3339 timestamp format.The value is exclusive (<).
- Parameters:
timeConsumptionLessThan- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListUsageLedgersRequest.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 ListUsageLedgersRequest.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 ListUsageLedgersRequest.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 ListUsageLedgersRequest.Builder copy(ListUsageLedgersRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListUsageLedgersRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListUsageLedgersRequest build()
Build the instance of ListUsageLedgersRequest 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<ListUsageLedgersRequest,Void>- Returns:
- instance of ListUsageLedgersRequest
-
buildWithoutInvocationCallback
public ListUsageLedgersRequest buildWithoutInvocationCallback()
Build the instance of ListUsageLedgersRequest 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 ListUsageLedgersRequest
-
-