Class ListRulesRequest.Builder
- java.lang.Object
- 
- com.oracle.bmc.events.requests.ListRulesRequest.Builder
 
- 
- All Implemented Interfaces:
- BmcRequest.Builder<ListRulesRequest,Void>
 - Enclosing class:
- ListRulesRequest
 
 public static class ListRulesRequest.Builder extends Object implements BmcRequest.Builder<ListRulesRequest,Void> 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ListRulesRequestbuild()Build the instance of ListRulesRequest as configured by this builderListRulesRequestbuildWithoutInvocationCallback()Build the instance of ListRulesRequest as configured by this builderListRulesRequest.BuildercompartmentId(String compartmentId)The OCID of the compartment to which this rule belongs.ListRulesRequest.Buildercopy(ListRulesRequest o)Copy method to populate the builder with values from the given instance.ListRulesRequest.BuilderdisplayName(String displayName)A filter to return only rules with descriptions that match the displayName string in this parameter.ListRulesRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListRulesRequest.BuilderlifecycleState(Rule.LifecycleState lifecycleState)A filter to return only rules that match the lifecycle state in this parameter.ListRulesRequest.Builderlimit(Integer limit)The maximum number of items to return.ListRulesRequest.BuilderopcRequestId(String opcRequestId)The unique Oracle-assigned identifier for the request.ListRulesRequest.Builderpage(String page)For list pagination.ListRulesRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListRulesRequest.BuildersortBy(ListRulesRequest.SortBy sortBy)Specifies the attribute with which to sort the rules.ListRulesRequest.BuildersortOrder(ListRulesRequest.SortOrder sortOrder)Specifies sort order.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builderbody$
 
- 
 
- 
- 
- 
Method Detail- 
compartmentIdpublic ListRulesRequest.Builder compartmentId(String compartmentId) The OCID of the compartment to which this rule belongs.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder instance
 
 - 
limitpublic ListRulesRequest.Builder limit(Integer limit) The maximum number of items to return.1 is the minimum, 50 is the maximum. Default: 10 - Parameters:
- limit- the value to set
- Returns:
- this builder instance
 
 - 
pagepublic 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. - Parameters:
- page- the value to set
- Returns:
- this builder instance
 
 - 
lifecycleStatepublic ListRulesRequest.Builder lifecycleState(Rule.LifecycleState lifecycleState) A filter to return only rules that match the lifecycle state in this parameter.Example: Creating - Parameters:
- lifecycleState- the value to set
- Returns:
- this builder instance
 
 - 
displayNamepublic 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." - Parameters:
- displayName- the value to set
- Returns:
- this builder instance
 
 - 
sortBypublic 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. - Parameters:
- sortBy- the value to set
- Returns:
- this builder instance
 
 - 
sortOrderpublic ListRulesRequest.Builder sortOrder(ListRulesRequest.SortOrder sortOrder) Specifies sort order.**ASC:** Ascending sort order. * **DESC:** Descending sort order. - Parameters:
- sortOrder- the value to set
- Returns:
- this builder instance
 
 - 
opcRequestIdpublic 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. - Parameters:
- opcRequestId- the value to set
- Returns:
- this builder instance
 
 - 
invocationCallbackpublic ListRulesRequest.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
 
 - 
retryConfigurationpublic ListRulesRequest.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
 
 - 
copypublic ListRulesRequest.Builder copy(ListRulesRequest o) Copy method to populate the builder with values from the given instance.- Specified by:
- copyin interface- BmcRequest.Builder<ListRulesRequest,Void>
- Parameters:
- o- other request from which to copy values
- Returns:
- this builder instance
 
 - 
buildpublic ListRulesRequest build() Build the instance of ListRulesRequest 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 interface- BmcRequest.Builder<ListRulesRequest,Void>
- Returns:
- instance of ListRulesRequest
 
 - 
buildWithoutInvocationCallbackpublic ListRulesRequest buildWithoutInvocationCallback() Build the instance of ListRulesRequest 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 ListRulesRequest
 
 
- 
 
-