Class WorkRequestResource.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • resourceType

        public WorkRequestResource.Builder resourceType​(String resourceType)
        The resource type that the work request affects.
        Parameters:
        resourceType - the value to set
        Returns:
        this builder
      • resourceId

        public WorkRequestResource.Builder resourceId​(String resourceId)
        The identifier of the resource that is the subject of the request.
        Parameters:
        resourceId - the value to set
        Returns:
        this builder
      • status

        public WorkRequestResource.Builder status​(WorkRequestResource.Status status)
        The current state of the work request.

        The SUCCEEDED, FAILED, AND CANCELED states correspond to the action being performed.

        Parameters:
        status - the value to set
        Returns:
        this builder
      • statusMessage

        public WorkRequestResource.Builder statusMessage​(String statusMessage)
        Short message providing more detail for the current status.

        For example, if an operation fails this may include information about the reason for the failure and a possible resolution.

        Parameters:
        statusMessage - the value to set
        Returns:
        this builder
      • resourceUri

        public WorkRequestResource.Builder resourceUri​(String resourceUri)
        The URI path that the user can do a GET on to access the resource metadata.
        Parameters:
        resourceUri - the value to set
        Returns:
        this builder