Class CreateTagDefaultDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public CreateTagDefaultDetails.Builder compartmentId​(String compartmentId)
        The OCID of the compartment.

        The tag default will be applied to all new resources created in this compartment.

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

        public CreateTagDefaultDetails.Builder tagDefinitionId​(String tagDefinitionId)
        The OCID of the tag definition.

        The tag default will always assign a default value for this tag definition.

        Parameters:
        tagDefinitionId - the value to set
        Returns:
        this builder
      • value

        public CreateTagDefaultDetails.Builder value​(String value)
        The default value for the tag definition.

        This will be applied to all new resources created in the compartment.

        Parameters:
        value - the value to set
        Returns:
        this builder
      • isRequired

        public CreateTagDefaultDetails.Builder isRequired​(Boolean isRequired)
        If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt).

        If no value is set, resource creation is blocked.

        If the isRequired flag is set to "true", the value is set during resource creation. * If the isRequired flag is set to "false", the value you enter is set during resource creation.

        Example: false

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