Class ListRateCardsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.onesubscription.requests.ListRateCardsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListRateCardsRequest,Void>
- Enclosing class:
- ListRateCardsRequest
public static class ListRateCardsRequest.Builder extends Object implements BmcRequest.Builder<ListRateCardsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListRateCardsRequest
build()
Build the instance of ListRateCardsRequest as configured by this builderListRateCardsRequest
buildWithoutInvocationCallback()
Build the instance of ListRateCardsRequest as configured by this builderListRateCardsRequest.Builder
compartmentId(String compartmentId)
The OCID of the root compartment.ListRateCardsRequest.Builder
copy(ListRateCardsRequest o)
Copy method to populate the builder with values from the given instance.ListRateCardsRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListRateCardsRequest.Builder
limit(Integer limit)
The maximum number of items to return in a paginated “List” call.ListRateCardsRequest.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.ListRateCardsRequest.Builder
page(String page)
The value of the ‘opc-next-page’ response header from the previous “List” call.ListRateCardsRequest.Builder
partNumber(String partNumber)
This param is used to get the rate card(s) filterd by the partNumberListRateCardsRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListRateCardsRequest.Builder
sortBy(ListRateCardsRequest.SortBy sortBy)
The field to sort by.ListRateCardsRequest.Builder
sortOrder(ListRateCardsRequest.SortOrder sortOrder)
The sort order to use, either ascending (‘ASC’) or descending (‘DESC’).ListRateCardsRequest.Builder
subscriptionId(String subscriptionId)
Line level Subscription IdListRateCardsRequest.Builder
timeFrom(Date timeFrom)
This param is used to get the rate card(s) whose effective start date starts on or after a particular dateListRateCardsRequest.Builder
timeTo(Date timeTo)
This param is used to get the rate card(s) whose effective end date ends on or before a particular date-
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 ListRateCardsRequest.Builder subscriptionId(String subscriptionId)
Line level Subscription Id- Parameters:
subscriptionId
- the value to set- Returns:
- this builder instance
-
compartmentId
public ListRateCardsRequest.Builder compartmentId(String compartmentId)
The OCID of the root compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
timeFrom
public ListRateCardsRequest.Builder timeFrom(Date timeFrom)
This param is used to get the rate card(s) whose effective start date starts on or after a particular date- Parameters:
timeFrom
- the value to set- Returns:
- this builder instance
-
timeTo
public ListRateCardsRequest.Builder timeTo(Date timeTo)
This param is used to get the rate card(s) whose effective end date ends on or before a particular date- Parameters:
timeTo
- the value to set- Returns:
- this builder instance
-
partNumber
public ListRateCardsRequest.Builder partNumber(String partNumber)
This param is used to get the rate card(s) filterd by the partNumber- Parameters:
partNumber
- the value to set- Returns:
- this builder instance
-
limit
public ListRateCardsRequest.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 ListRateCardsRequest.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 ListRateCardsRequest.Builder sortOrder(ListRateCardsRequest.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 ListRateCardsRequest.Builder sortBy(ListRateCardsRequest.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 ListRateCardsRequest.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 ListRateCardsRequest.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 ListRateCardsRequest.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 ListRateCardsRequest.Builder copy(ListRateCardsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListRateCardsRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListRateCardsRequest build()
Build the instance of ListRateCardsRequest 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:
build
in interfaceBmcRequest.Builder<ListRateCardsRequest,Void>
- Returns:
- instance of ListRateCardsRequest
-
buildWithoutInvocationCallback
public ListRateCardsRequest buildWithoutInvocationCallback()
Build the instance of ListRateCardsRequest 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 ListRateCardsRequest
-
-