Class TargetTag


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20200606")
    public final class TargetTag
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    A tag key definition used in the current profile override, including the tag namespace, tag key, tag value type, and tag values.

    Only defined tags are supported. For more information about tagging, see Tagging Overview
    Note: Objects should always be created or deserialized using the TargetTag.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the TargetTag.Builder, which maintain a set of all explicitly set fields called TargetTag.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getTagNamespaceName

        public String getTagNamespaceName()
        The name of the tag namespace.
        Returns:
        the value
      • getTagDefinitionName

        public String getTagDefinitionName()
        The name you use to refer to the tag, also known as the tag key.
        Returns:
        the value
      • getTagValueType

        public TagValueType getTagValueType()
        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.

        Returns:
        the value
      • getTagValues

        public List<String> getTagValues()
        The list of tag values.

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

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel