Class CreateTagDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public CreateTagDetails.Builder name​(String name)
        The name you assign to the tag during creation.

        This is the tag key definition. The name must be unique within the tag namespace and cannot be changed.

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

        public CreateTagDetails.Builder description​(String description)
        The description you assign to the tag during creation.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • freeformTags

        public CreateTagDetails.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple 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 CreateTagDetails.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
      • isCostTracking

        public CreateTagDetails.Builder isCostTracking​(Boolean isCostTracking)
        Indicates whether the tag is enabled for cost tracking.
        Parameters:
        isCostTracking - the value to set
        Returns:
        this builder