Class MatchExpressionsProperties

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

public final class MatchExpressionsProperties extends Object
Resource Sync Rules matchExpression property definition.
  • Constructor Details

    • MatchExpressionsProperties

      public MatchExpressionsProperties()
  • Method Details

    • key

      public String key()
      Get the key property: Key is the label key that the selector applies to.
      Returns:
      the key value.
    • withKey

      public MatchExpressionsProperties withKey(String key)
      Set the key property: Key is the label key that the selector applies to.
      Parameters:
      key - the key value to set.
      Returns:
      the MatchExpressionsProperties object itself.
    • operator

      public String operator()
      Get the operator property: The Operator field represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
      Returns:
      the operator value.
    • withOperator

      public MatchExpressionsProperties withOperator(String operator)
      Set the operator property: The Operator field represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
      Parameters:
      operator - the operator value to set.
      Returns:
      the MatchExpressionsProperties object itself.
    • values

      public List<String> values()
      Get the values property: The label value.
      Returns:
      the values value.
    • withValues

      public MatchExpressionsProperties withValues(List<String> values)
      Set the values property: The label value.
      Parameters:
      values - the values value to set.
      Returns:
      the MatchExpressionsProperties object itself.
    • validate

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