Class WorkRequest.Builder

  • Enclosing class:
    WorkRequest

    public static class WorkRequest.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • loadBalancerId

        public WorkRequest.Builder loadBalancerId​(String loadBalancerId)
        The OCID of the load balancer with which the work request is associated.
        Parameters:
        loadBalancerId - the value to set
        Returns:
        this builder
      • type

        public WorkRequest.Builder type​(String type)
        The type of action the work request represents.

        Example: CreateListener

        Parameters:
        type - the value to set
        Returns:
        this builder
      • compartmentId

        public WorkRequest.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing the load balancer.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • message

        public WorkRequest.Builder message​(String message)
        A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure.

        Possible data elements include:

        - workflow name - event ID - work request ID - load balancer ID - workflow completion message

        Parameters:
        message - the value to set
        Returns:
        this builder
      • timeAccepted

        public WorkRequest.Builder timeAccepted​(Date timeAccepted)
        The date and time the work request was created, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeAccepted - the value to set
        Returns:
        this builder
      • timeFinished

        public WorkRequest.Builder timeFinished​(Date timeFinished)
        The date and time the work request was completed, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeFinished - the value to set
        Returns:
        this builder