Class ResourceSyncRulePropertiesSelector

java.lang.Object
com.azure.resourcemanager.extendedlocation.models.ResourceSyncRulePropertiesSelector

public final class ResourceSyncRulePropertiesSelector extends Object
A label selector is composed of two parts, matchLabels and matchExpressions. The first part, matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is 'key', the operator is 'In', and the values array contains only 'value'. The second part, matchExpressions is a list of resource selector requirements. Valid operators include In, NotIn, Exists, and DoesNotExist. The values set must be non-empty in the case of In and NotIn. The values set must be empty in the case of Exists and DoesNotExist. All of the requirements, from both matchLabels and matchExpressions must all be satisfied in order to match.
  • Constructor Details

    • ResourceSyncRulePropertiesSelector

      public ResourceSyncRulePropertiesSelector()
  • Method Details

    • matchExpressions

      public List<MatchExpressionsProperties> matchExpressions()
      Get the matchExpressions property: MatchExpressions is a list of resource selector requirements. Valid operators include In, NotIn, Exists, and DoesNotExist. The values set must be non-empty in the case of In and NotIn. The values set must be empty in the case of Exists and DoesNotExist.
      Returns:
      the matchExpressions value.
    • withMatchExpressions

      public ResourceSyncRulePropertiesSelector withMatchExpressions(List<MatchExpressionsProperties> matchExpressions)
      Set the matchExpressions property: MatchExpressions is a list of resource selector requirements. Valid operators include In, NotIn, Exists, and DoesNotExist. The values set must be non-empty in the case of In and NotIn. The values set must be empty in the case of Exists and DoesNotExist.
      Parameters:
      matchExpressions - the matchExpressions value to set.
      Returns:
      the ResourceSyncRulePropertiesSelector object itself.
    • matchLabels

      public Map<String,String> matchLabels()
      Get the matchLabels property: MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is 'key', the operator is 'In', and the values array contains only 'value'.
      Returns:
      the matchLabels value.
    • withMatchLabels

      public ResourceSyncRulePropertiesSelector withMatchLabels(Map<String,String> matchLabels)
      Set the matchLabels property: MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is 'key', the operator is 'In', and the values array contains only 'value'.
      Parameters:
      matchLabels - the matchLabels value to set.
      Returns:
      the ResourceSyncRulePropertiesSelector object itself.
    • validate

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