Class Worker.Builder

  • Enclosing class:
    Worker

    public static class Worker.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Worker.Builder id​(String id)
        The OCID of the On-premise VP worker.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • runtimeId

        public Worker.Builder runtimeId​(String runtimeId)
        The runtime assigned id of the On-premise VP worker.
        Parameters:
        runtimeId - the value to set
        Returns:
        this builder
      • displayName

        public Worker.Builder displayName​(String displayName)
        Unique On-premise VP worker name that cannot be edited.

        The name should not contain any confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • name

        public Worker.Builder name​(String name)
        Unique permanent name of the On-premise VP worker.

        This is the same as the displayName.

        Parameters:
        name - the value to set
        Returns:
        this builder
      • opvpId

        public Worker.Builder opvpId​(String opvpId)
        The OCID of the On-premise vantage point.
        Parameters:
        opvpId - the value to set
        Returns:
        this builder
      • opvpName

        public Worker.Builder opvpName​(String opvpName)
        On-premise vantage point name.
        Parameters:
        opvpName - the value to set
        Returns:
        this builder
      • configurationDetails

        public Worker.Builder configurationDetails​(Object configurationDetails)
        Configuration details of the On-premise VP worker.
        Parameters:
        configurationDetails - the value to set
        Returns:
        this builder
      • priority

        public Worker.Builder priority​(Integer priority)
        Priority of the On-premise VP worker to schedule monitors.
        Parameters:
        priority - the value to set
        Returns:
        this builder
      • geoInfo

        public Worker.Builder geoInfo​(String geoInfo)
        Geographical information of the On-premise VP worker.
        Parameters:
        geoInfo - the value to set
        Returns:
        this builder
      • monitorList

        public Worker.Builder monitorList​(List<WorkerMonitorList> monitorList)
        Monitors list assigned to the On-premise VP worker.
        Parameters:
        monitorList - the value to set
        Returns:
        this builder
      • timeLastSyncUp

        public Worker.Builder timeLastSyncUp​(Date timeLastSyncUp)
        The time the resource was last synced, expressed in RFC 3339 timestamp format.

        Example: 2020-02-12T22:47:12.613Z

        Parameters:
        timeLastSyncUp - the value to set
        Returns:
        this builder
      • timeCreated

        public Worker.Builder timeCreated​(Date timeCreated)
        The time the resource was created, expressed in RFC 3339 timestamp format.

        Example: 2020-02-12T22:47:12.613Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Worker.Builder timeUpdated​(Date timeUpdated)
        The time the resource was updated, expressed in RFC 3339 timestamp format.

        Example: 2020-02-13T22:47:12.613Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • freeformTags

        public Worker.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public Worker.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • build

        public Worker build()