Class ResourceSelector
java.lang.Object
com.azure.resourcemanager.resources.models.ResourceSelector
The resource selector to filter policies by resource properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()Get the name property: The name of the resource selector.Get the selectors property: The list of the selector expressions.voidvalidate()Validates the instance.Set the name property: The name of the resource selector.withSelectors(List<Selector> selectors) Set the selectors property: The list of the selector expressions.
-
Constructor Details
-
ResourceSelector
public ResourceSelector()Creates an instance of ResourceSelector class.
-
-
Method Details
-
name
Get the name property: The name of the resource selector.- Returns:
- the name value.
-
withName
Set the name property: The name of the resource selector.- Parameters:
name- the name value to set.- Returns:
- the ResourceSelector object itself.
-
selectors
Get the selectors property: The list of the selector expressions.- Returns:
- the selectors value.
-
withSelectors
Set the selectors property: The list of the selector expressions.- Parameters:
selectors- the selectors value to set.- Returns:
- the ResourceSelector object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-