Class Record.Builder

  • Enclosing class:
    Record

    public static class Record.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Record.Builder id​(String id)
        The OCID of the record.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • name

        public Record.Builder name​(String name)
        The name is created by the user.

        It is unique and immutable.

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

        public Record.Builder timeCreated​(Date timeCreated)
        The date and time the resource was created, in the timestamp format defined by RFC3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Record.Builder timeUpdated​(Date timeUpdated)
        The date and time the resource was updated, in the timestamp format defined by RFC3339.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • datasetId

        public Record.Builder datasetId​(String datasetId)
        The OCID of the dataset to associate the record with.
        Parameters:
        datasetId - the value to set
        Returns:
        this builder
      • compartmentId

        public Record.Builder compartmentId​(String compartmentId)
        The OCID of the compartment for the task.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • isLabeled

        public Record.Builder isLabeled​(Boolean isLabeled)
        Whether or not the record has been labeled and has associated annotations.
        Parameters:
        isLabeled - the value to set
        Returns:
        this builder
      • lifecycleState

        public Record.Builder lifecycleState​(Record.LifecycleState lifecycleState)
        The lifecycle state of the record.

        ACTIVE - The record is active and ready for labeling. INACTIVE - The record has been marked as inactive and should not be used for labeling. DELETED - The record has been deleted and is no longer available for labeling.

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

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

        It exists for cross-compatibility only. For example: {“bar-key”: “value”}

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

        public Record.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        The defined tags for this resource.

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

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

        public Record build()