Class Project.Builder

  • Enclosing class:
    Project

    public static class Project.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Project.Builder id​(String id)
        Unique identifier OCID of the project
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public Project.Builder displayName​(String displayName)
        A user-friendly display name for the resource.

        It does not have to be unique and can be modified. Avoid entering confidential information.

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

        public Project.Builder compartmentId​(String compartmentId)
        The OCID for the project’s compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • description

        public Project.Builder description​(String description)
        A short description of a project.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • timeCreated

        public Project.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 Project.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
      • lifecycleState

        public Project.Builder lifecycleState​(Project.LifecycleState lifecycleState)
        The state of the project.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Project.Builder lifecycleDetails​(String lifecycleDetails)
        A message describing the current state in more detail.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • freeformTags

        public Project.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 Project.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
      • systemTags

        public Project.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: { “orcl-cloud”: { “free-tier-retained”: “true” } }

        Parameters:
        systemTags - the value to set
        Returns:
        this builder