Class TaskProperties.Builder

  • Enclosing class:
    TaskProperties

    public static final class TaskProperties.Builder
    extends java.lang.Object
    Builder class for TaskProperties.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of TaskProperties.
    • Method Detail

      • setLinks

        public TaskProperties.Builder setLinks​(java.util.List<ResourceLink> links)
        The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        links - New value for the property.
      • setSchema

        public TaskProperties.Builder setSchema​(java.lang.String schema)
        Schema for this resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        schema - New value for the property.
      • setAsyncResponseAvailable

        public TaskProperties.Builder setAsyncResponseAvailable​(java.lang.Boolean asyncResponseAvailable)
        True if response for asynchronous request is available This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        asyncResponseAvailable - New value for the property.
      • setCancelable

        public TaskProperties.Builder setCancelable​(java.lang.Boolean cancelable)
        True if this task can be canceled This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        cancelable - New value for the property.
      • setDescription

        public TaskProperties.Builder setDescription​(java.lang.String description)
        Description of the task This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        description - New value for the property.
      • setEndTime

        public TaskProperties.Builder setEndTime​(java.lang.Long endTime)
        The end time of the task in epoch milliseconds format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        endTime - New value for the property.
      • setId

        public TaskProperties.Builder setId​(java.lang.String id)
        Identifier for this task This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        id - New value for the property.
      • setMessage

        public TaskProperties.Builder setMessage​(java.lang.String message)
        A message describing the disposition of the task This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        message - New value for the property.
      • setProgress

        public TaskProperties.Builder setProgress​(java.lang.Long progress)
        Task progress if known, from 0 to 100 format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        progress - New value for the property.
      • setRequestMethod

        public TaskProperties.Builder setRequestMethod​(java.lang.String requestMethod)
        HTTP request method This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        requestMethod - New value for the property.
      • setRequestUri

        public TaskProperties.Builder setRequestUri​(java.lang.String requestUri)
        URI of the method invocation that spawned this task This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        requestUri - New value for the property.
      • setStartTime

        public TaskProperties.Builder setStartTime​(java.lang.Long startTime)
        The start time of the task in epoch milliseconds format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        startTime - New value for the property.
      • setUser

        public TaskProperties.Builder setUser​(java.lang.String user)
        Name of the user who created this task This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        user - New value for the property.