Class FilteringTag
java.lang.Object
com.azure.resourcemanager.logz.models.FilteringTag
The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from
being monitored.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get the action property: Valid actions for a filtering tag.name()
Get the name property: The name (also known as the key) of the tag.void
validate()
Validates the instance.value()
Get the value property: The value of the tag.withAction
(TagAction action) Set the action property: Valid actions for a filtering tag.Set the name property: The name (also known as the key) of the tag.Set the value property: The value of the tag.
-
Constructor Details
-
FilteringTag
public FilteringTag()Creates an instance of FilteringTag class.
-
-
Method Details
-
name
Get the name property: The name (also known as the key) of the tag.- Returns:
- the name value.
-
withName
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
Get the value property: The value of the tag.- Returns:
- the value value.
-
withValue
Set the value property: The value of the tag.- Parameters:
value
- the value value to set.- Returns:
- the FilteringTag object itself.
-
action
Get the action property: Valid actions for a filtering tag. Exclusion takes priority over inclusion.- Returns:
- the action value.
-
withAction
Set the action property: Valid actions for a filtering tag. Exclusion takes priority over inclusion.- 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.
-