Class ImportTask.Builder

  • Enclosing class:
    ImportTask

    public static final class ImportTask.Builder
    extends java.lang.Object
    Builder class for ImportTask.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()
      Constructor with parameters for the required properties of ImportTask.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ImportTask build()  
      ImportTask.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.
      ImportTask.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.
      ImportTask.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.
      ImportTask.Builder setDraftPath​(java.lang.String draftPath)
      Policy path of a draft in which the imported configuration gets stored after completion of import task.
      ImportTask.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.
      ImportTask.Builder setFailureMsg​(java.lang.String failureMsg)
      This property holds the reason of the task failure, if any.
      ImportTask.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.
      ImportTask.Builder setLinks​(java.util.List<ResourceLink> links)
      The server will populate this field when returing the resource.
      ImportTask.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.
      ImportTask.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.
      ImportTask.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.
      ImportTask.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.
      ImportTask.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.
      ImportTask.Builder setSelf​(SelfResourceLink self)  
      ImportTask.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.
      ImportTask.Builder setStatus​(java.lang.String status)
      Possible values are: ImportTask.STATUS_RUNNING ImportTask.STATUS_ERROR ImportTask.STATUS_SUCCESS ImportTask.STATUS_CANCELING ImportTask.STATUS_CANCELED ImportTask.STATUS_KILLED Current status 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.
      ImportTask.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

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

      • setLinks

        public ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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 ImportTask.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.
      • setFailureMsg

        public ImportTask.Builder setFailureMsg​(java.lang.String failureMsg)
        This property holds the reason of the task failure, if any. 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:
        failureMsg - New value for the property.
      • setDraftPath

        public ImportTask.Builder setDraftPath​(java.lang.String draftPath)
        Policy path of a draft in which the imported configuration gets stored after completion of import 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:
        draftPath - New value for the property.