Class Template.Builder

  • Enclosing class:
    Template

    public static class Template.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Template.Builder id​(String id)
        Unique identifier (OCID) for the template.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • compartmentId

        public Template.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing this template.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • categoryId

        public Template.Builder categoryId​(String categoryId)
        Unique identifier for the category where the template is located.

        Possible values are 0 (Quick Starts), 1 (Service), 2 (Architecture), and 3 (Private).

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

        public Template.Builder displayName​(String displayName)
        A user-friendly 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 Template.Builder description​(String description)
        Brief description of the template.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • longDescription

        public Template.Builder longDescription​(String longDescription)
        Detailed description of the template.

        This description is displayed in the Console page listing templates when the template is expanded. Avoid entering confidential information.

        Parameters:
        longDescription - the value to set
        Returns:
        this builder
      • isFreeTier

        public Template.Builder isFreeTier​(Boolean isFreeTier)
        whether the template will work for free tier tenancy.
        Parameters:
        isFreeTier - the value to set
        Returns:
        this builder
      • timeCreated

        public Template.Builder timeCreated​(Date timeCreated)
        The date and time at which the template was created.

        Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z

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

        public Template.Builder lifecycleState​(Template.LifecycleState lifecycleState)
        The current lifecycle state of the template.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • freeformTags

        public Template.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags associated with the resource.

        Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

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

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

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

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

        public Template.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        The system tags associated with this resource, if any.

        The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

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