Class ListInvoicesRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.ospgateway.requests.ListInvoicesRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListInvoicesRequest,Void>
- Enclosing class:
- ListInvoicesRequest
public static class ListInvoicesRequest.Builder extends Object implements BmcRequest.Builder<ListInvoicesRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListInvoicesRequestbuild()Build the instance of ListInvoicesRequest as configured by this builderListInvoicesRequestbuildWithoutInvocationCallback()Build the instance of ListInvoicesRequest as configured by this builderListInvoicesRequest.BuildercompartmentId(String compartmentId)The OCID of the compartment.ListInvoicesRequest.Buildercopy(ListInvoicesRequest o)Copy method to populate the builder with values from the given instance.ListInvoicesRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListInvoicesRequest.BuilderinvoiceId(String invoiceId)The invoice query param (not unique).ListInvoicesRequest.Builderlimit(Integer limit)For list pagination.ListInvoicesRequest.BuilderopcRequestId(String opcRequestId)The unique Oracle-assigned identifier for the request.ListInvoicesRequest.BuilderospHomeRegion(String ospHomeRegion)The home region’s public name of the logged in user.ListInvoicesRequest.Builderpage(String page)For list pagination.ListInvoicesRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListInvoicesRequest.BuildersearchText(String searchText)A filter to only return resources that match the given value.ListInvoicesRequest.BuildersortBy(ListInvoicesRequest.SortBy sortBy)The field to sort by.ListInvoicesRequest.BuildersortOrder(ListInvoicesRequest.SortOrder sortOrder)The sort order to use (ascending or descending).ListInvoicesRequest.Builderstatus(ListInvoicesRequest.Status singularValue)Singular setter.ListInvoicesRequest.Builderstatus(List<ListInvoicesRequest.Status> status)A filter to only return resources that match one of the status elements.ListInvoicesRequest.BuildertimeInvoiceEnd(Date timeInvoiceEnd)description: End time (UTC) of the target invoice date range for which to fetch invoice data (exclusive).ListInvoicesRequest.BuildertimeInvoiceStart(Date timeInvoiceStart)description: Start time (UTC) of the target invoice date range for which to fetch invoice data (inclusive).ListInvoicesRequest.BuildertimePaymentEnd(Date timePaymentEnd)description: End time (UTC) of the target payment date range for which to fetch invoice data (exclusive).ListInvoicesRequest.BuildertimePaymentStart(Date timePaymentStart)description: Start time (UTC) of the target payment date range for which to fetch invoice data (inclusive).ListInvoicesRequest.Buildertype(ListInvoicesRequest.Type singularValue)Singular setter.ListInvoicesRequest.Buildertype(List<ListInvoicesRequest.Type> type)A filter to only return resources that match the given type exactly.-
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
-
ospHomeRegion
public ListInvoicesRequest.Builder ospHomeRegion(String ospHomeRegion)
The home region’s public name of the logged in user.- Parameters:
ospHomeRegion- the value to set- Returns:
- this builder instance
-
compartmentId
public ListInvoicesRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListInvoicesRequest.Builder opcRequestId(String opcRequestId)
The 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
-
invoiceId
public ListInvoicesRequest.Builder invoiceId(String invoiceId)
The invoice query param (not unique).- Parameters:
invoiceId- the value to set- Returns:
- this builder instance
-
type
public ListInvoicesRequest.Builder type(List<ListInvoicesRequest.Type> type)
A filter to only return resources that match the given type exactly.- Parameters:
type- the value to set- Returns:
- this builder instance
-
type
public ListInvoicesRequest.Builder type(ListInvoicesRequest.Type singularValue)
Singular setter.A filter to only return resources that match the given type exactly.
- Parameters:
singularValue- the singular value to set- Returns:
- this builder instance
-
searchText
public ListInvoicesRequest.Builder searchText(String searchText)
A filter to only return resources that match the given value.Looking for partial matches in the following fileds: Invoice No., Reference No. (plan number), Payment Ref, Total Amount(plan number), Balance Due(plan number) and Party/Customer Name
- Parameters:
searchText- the value to set- Returns:
- this builder instance
-
timeInvoiceStart
public ListInvoicesRequest.Builder timeInvoiceStart(Date timeInvoiceStart)
description: Start time (UTC) of the target invoice date range for which to fetch invoice data (inclusive).- Parameters:
timeInvoiceStart- the value to set- Returns:
- this builder instance
-
timeInvoiceEnd
public ListInvoicesRequest.Builder timeInvoiceEnd(Date timeInvoiceEnd)
description: End time (UTC) of the target invoice date range for which to fetch invoice data (exclusive).- Parameters:
timeInvoiceEnd- the value to set- Returns:
- this builder instance
-
timePaymentStart
public ListInvoicesRequest.Builder timePaymentStart(Date timePaymentStart)
description: Start time (UTC) of the target payment date range for which to fetch invoice data (inclusive).- Parameters:
timePaymentStart- the value to set- Returns:
- this builder instance
-
timePaymentEnd
public ListInvoicesRequest.Builder timePaymentEnd(Date timePaymentEnd)
description: End time (UTC) of the target payment date range for which to fetch invoice data (exclusive).- Parameters:
timePaymentEnd- the value to set- Returns:
- this builder instance
-
status
public ListInvoicesRequest.Builder status(List<ListInvoicesRequest.Status> status)
A filter to only return resources that match one of the status elements.- Parameters:
status- the value to set- Returns:
- this builder instance
-
status
public ListInvoicesRequest.Builder status(ListInvoicesRequest.Status singularValue)
Singular setter.A filter to only return resources that match one of the status elements.
- Parameters:
singularValue- the singular value to set- Returns:
- this builder instance
-
page
public ListInvoicesRequest.Builder page(String page)
For list pagination.The value of the opc-next-page response header from the previous “List” call.
- Parameters:
page- the value to set- Returns:
- this builder instance
-
limit
public ListInvoicesRequest.Builder limit(Integer limit)
For list pagination.The maximum number of results per page, or items to return in a paginated “List” call.
- Parameters:
limit- the value to set- Returns:
- this builder instance
-
sortBy
public ListInvoicesRequest.Builder sortBy(ListInvoicesRequest.SortBy sortBy)
The field to sort by.Only one field can be selected for sorting.
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
sortOrder
public ListInvoicesRequest.Builder sortOrder(ListInvoicesRequest.SortOrder sortOrder)
The sort order to use (ascending or descending).- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListInvoicesRequest.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 ListInvoicesRequest.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 ListInvoicesRequest.Builder copy(ListInvoicesRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListInvoicesRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListInvoicesRequest build()
Build the instance of ListInvoicesRequest 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<ListInvoicesRequest,Void>- Returns:
- instance of ListInvoicesRequest
-
buildWithoutInvocationCallback
public ListInvoicesRequest buildWithoutInvocationCallback()
Build the instance of ListInvoicesRequest 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 ListInvoicesRequest
-
-