public static class ListRulesRequest.Builder extends Object implements BmcRequest.Builder<ListRulesRequest,Void>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ListRulesRequest |
build()
Build the instance of ListRulesRequest as configured by this builder
|
ListRulesRequest |
buildWithoutInvocationCallback()
Build the instance of ListRulesRequest as configured by this builder
|
ListRulesRequest.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment to which this rule belongs.
|
ListRulesRequest.Builder |
copy(ListRulesRequest o)
Copy method to populate the builder with values from the given instance.
|
ListRulesRequest.Builder |
displayName(String displayName)
A filter to return only rules with descriptions that match the displayName string in this
parameter.
|
ListRulesRequest.Builder |
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
|
ListRulesRequest.Builder |
lifecycleState(Rule.LifecycleState lifecycleState)
A filter to return only rules that match the lifecycle state in this parameter.
|
ListRulesRequest.Builder |
limit(Integer limit)
The maximum number of items to return.
|
ListRulesRequest.Builder |
opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.
|
ListRulesRequest.Builder |
page(String page)
For list pagination.
|
ListRulesRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
ListRulesRequest.Builder |
sortBy(ListRulesRequest.SortBy sortBy)
Specifies the attribute with which to sort the rules.
|
ListRulesRequest.Builder |
sortOrder(ListRulesRequest.SortOrder sortOrder)
Specifies sort order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
body$
public ListRulesRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment to which this rule belongs.
compartmentId
- the value to setpublic ListRulesRequest.Builder limit(Integer limit)
The maximum number of items to return. 1 is the minimum, 50 is the maximum. Default: 10
limit
- the value to setpublic ListRulesRequest.Builder page(String page)
For list pagination. The value of the opc-next-page response header from the previous “List” call. For important details about how pagination works, see List Pagination.
page
- the value to setpublic ListRulesRequest.Builder lifecycleState(Rule.LifecycleState lifecycleState)
A filter to return only rules that match the lifecycle state in this parameter.
Example: Creating
lifecycleState
- the value to setpublic ListRulesRequest.Builder displayName(String displayName)
A filter to return only rules with descriptions that match the displayName string in this parameter.
Example: "This rule sends a notification upon completion of DbaaS backup."
displayName
- the value to setpublic ListRulesRequest.Builder sortBy(ListRulesRequest.SortBy sortBy)
Specifies the attribute with which to sort the rules.
Default: timeCreated
**TIME_CREATED:** Sorts by timeCreated. * **DISPLAY_NAME:** Sorts by displayName. * **ID:** Sorts by id.
sortBy
- the value to setpublic ListRulesRequest.Builder sortOrder(ListRulesRequest.SortOrder sortOrder)
Specifies sort order.
**ASC:** Ascending sort order. * **DESC:** Descending sort order.
sortOrder
- the value to setpublic ListRulesRequest.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.
opcRequestId
- the value to setpublic ListRulesRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic ListRulesRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic ListRulesRequest.Builder copy(ListRulesRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<ListRulesRequest,Void>
o
- other request from which to copy valuespublic ListRulesRequest build()
Build the instance of ListRulesRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<ListRulesRequest,Void>
public ListRulesRequest buildWithoutInvocationCallback()
Build the instance of ListRulesRequest as configured by this builder
Note that this method does not take calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method build()
does
Copyright © 2016–2024. All rights reserved.