Class ResourceSelector

java.lang.Object
com.azure.resourcemanager.resources.models.ResourceSelector

public final class ResourceSelector extends Object
The resource selector to filter policies by resource properties.
  • Constructor Details

    • ResourceSelector

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

    • name

      public String name()
      Get the name property: The name of the resource selector.
      Returns:
      the name value.
    • withName

      public ResourceSelector withName(String name)
      Set the name property: The name of the resource selector.
      Parameters:
      name - the name value to set.
      Returns:
      the ResourceSelector object itself.
    • selectors

      public List<Selector> selectors()
      Get the selectors property: The list of the selector expressions.
      Returns:
      the selectors value.
    • withSelectors

      public ResourceSelector withSelectors(List<Selector> selectors)
      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.