Class TargetTag.Builder

  • Enclosing class:
    TargetTag

    public static class TargetTag.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • tagNamespaceName

        public TargetTag.Builder tagNamespaceName​(String tagNamespaceName)
        The name of the tag namespace.
        Parameters:
        tagNamespaceName - the value to set
        Returns:
        this builder
      • tagDefinitionName

        public TargetTag.Builder tagDefinitionName​(String tagDefinitionName)
        The name you use to refer to the tag, also known as the tag key.
        Parameters:
        tagDefinitionName - the value to set
        Returns:
        this builder
      • tagValueType

        public TargetTag.Builder tagValueType​(TagValueType tagValueType)
        Specifies which tag value types in the tagValues field result in overrides of the recommendation criteria.

        When the value for this field is ANY, the tagValues field should be empty, which enforces overrides to the recommendation for resources with any tag values attached to them.

        When the value for this field value is VALUE, the tagValues field must include a specific value or list of values. Overrides to the recommendation criteria only occur for resources that match the values in the tagValues fields.

        Parameters:
        tagValueType - the value to set
        Returns:
        this builder
      • tagValues

        public TargetTag.Builder tagValues​(List<String> tagValues)
        The list of tag values.

        The tag value is the value that the user applying the tag adds to the tag key.

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