Class ListRulesRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public 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
      • limit

        public 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
      • page

        public 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
      • lifecycleState

        public 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
      • displayName

        public 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
      • sortBy

        public 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
      • sortOrder

        public 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
      • opcRequestId

        public 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
      • invocationCallback

        public 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
      • retryConfiguration

        public 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