Class FilteringTag

java.lang.Object
com.azure.resourcemanager.elastic.models.FilteringTag

public final class FilteringTag extends Object
The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.
  • Constructor Details

    • FilteringTag

      public FilteringTag()
      Creates an instance of FilteringTag class.
  • Method Details

    • name

      public String name()
      Get the name property: The name (also known as the key) of the tag.
      Returns:
      the name value.
    • withName

      public FilteringTag withName(String name)
      Set the name property: The name (also known as the key) of the tag.
      Parameters:
      name - the name value to set.
      Returns:
      the FilteringTag object itself.
    • value

      public String value()
      Get the value property: The value of the tag.
      Returns:
      the value value.
    • withValue

      public FilteringTag withValue(String value)
      Set the value property: The value of the tag.
      Parameters:
      value - the value value to set.
      Returns:
      the FilteringTag object itself.
    • action

      public TagAction action()
      Get the action property: Valid actions for a filtering tag.
      Returns:
      the action value.
    • withAction

      public FilteringTag withAction(TagAction action)
      Set the action property: Valid actions for a filtering tag.
      Parameters:
      action - the action value to set.
      Returns:
      the FilteringTag object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.