Class Term.Builder

  • Enclosing class:
    Term

    public static class Term.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • key

        public Term.Builder key​(String key)
        Unique term key that is immutable.
        Parameters:
        key - the value to set
        Returns:
        this builder
      • displayName

        public Term.Builder displayName​(String displayName)
        A user-friendly display name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

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

        public Term.Builder description​(String description)
        Detailed description of the term.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • glossaryKey

        public Term.Builder glossaryKey​(String glossaryKey)
        Unique id of the parent glossary.
        Parameters:
        glossaryKey - the value to set
        Returns:
        this builder
      • parentTermKey

        public Term.Builder parentTermKey​(String parentTermKey)
        This terms parent term key.

        Will be null if the term has no parent term.

        Parameters:
        parentTermKey - the value to set
        Returns:
        this builder
      • isAllowedToHaveChildTerms

        public Term.Builder isAllowedToHaveChildTerms​(Boolean isAllowedToHaveChildTerms)
        Indicates whether a term may contain child terms.
        Parameters:
        isAllowedToHaveChildTerms - the value to set
        Returns:
        this builder
      • path

        public Term.Builder path​(String path)
        Absolute path of the term.
        Parameters:
        path - the value to set
        Returns:
        this builder
      • lifecycleState

        public Term.Builder lifecycleState​(LifecycleState lifecycleState)
        The current state of the term.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • timeCreated

        public Term.Builder timeCreated​(Date timeCreated)
        The date and time the term was created, in the format defined by RFC3339.

        Example: 2019-03-25T21:10:29.600Z

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

        public Term.Builder timeUpdated​(Date timeUpdated)
        The last time that any change was made to the term.

        An RFC3339 formatted datetime string.

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

        public Term.Builder createdById​(String createdById)
        OCID of the user who created the term.
        Parameters:
        createdById - the value to set
        Returns:
        this builder
      • updatedById

        public Term.Builder updatedById​(String updatedById)
        OCID of the user who modified the term.
        Parameters:
        updatedById - the value to set
        Returns:
        this builder
      • owner

        public Term.Builder owner​(String owner)
        OCID of the user who is the owner of this business terminology.
        Parameters:
        owner - the value to set
        Returns:
        this builder
      • workflowStatus

        public Term.Builder workflowStatus​(TermWorkflowStatus workflowStatus)
        Status of the approval process workflow for this business term in the glossary.
        Parameters:
        workflowStatus - the value to set
        Returns:
        this builder
      • uri

        public Term.Builder uri​(String uri)
        URI to the term instance in the API.
        Parameters:
        uri - the value to set
        Returns:
        this builder
      • associatedObjectCount

        public Term.Builder associatedObjectCount​(Integer associatedObjectCount)
        The number of objects tagged with this term
        Parameters:
        associatedObjectCount - the value to set
        Returns:
        this builder
      • associatedObjects

        public Term.Builder associatedObjects​(List<TermAssociatedObject> associatedObjects)
        Array of objects associated to a term.
        Parameters:
        associatedObjects - the value to set
        Returns:
        this builder
      • customPropertyMembers

        public Term.Builder customPropertyMembers​(List<CustomPropertyGetUsage> customPropertyMembers)
        The list of customized properties along with the values for this object
        Parameters:
        customPropertyMembers - the value to set
        Returns:
        this builder
      • build

        public Term build()