Class MatchCondition

java.lang.Object
com.microsoft.azure.management.cdn.MatchCondition

public class MatchCondition extends Object
Define match conditions.
  • Constructor Details

    • MatchCondition

      public MatchCondition()
  • Method Details

    • matchVariable

      public MatchVariable matchVariable()
      Get match variable to compare against. Possible values include: 'RemoteAddr', 'SocketAddr', 'RequestMethod', 'RequestHeader', 'RequestUri', 'QueryString', 'RequestBody', 'Cookies', 'PostArgs'.
      Returns:
      the matchVariable value
    • withMatchVariable

      public MatchCondition withMatchVariable(MatchVariable matchVariable)
      Set match variable to compare against. Possible values include: 'RemoteAddr', 'SocketAddr', 'RequestMethod', 'RequestHeader', 'RequestUri', 'QueryString', 'RequestBody', 'Cookies', 'PostArgs'.
      Parameters:
      matchVariable - the matchVariable value to set
      Returns:
      the MatchCondition object itself.
    • selector

      public String selector()
      Get selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
      Returns:
      the selector value
    • withSelector

      public MatchCondition withSelector(String selector)
      Set selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
      Parameters:
      selector - the selector value to set
      Returns:
      the MatchCondition object itself.
    • operator

      public Operator operator()
      Get describes operator to be matched. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx'.
      Returns:
      the operator value
    • withOperator

      public MatchCondition withOperator(Operator operator)
      Set describes operator to be matched. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx'.
      Parameters:
      operator - the operator value to set
      Returns:
      the MatchCondition object itself.
    • negateCondition

      public Boolean negateCondition()
      Get describes if the result of this condition should be negated.
      Returns:
      the negateCondition value
    • withNegateCondition

      public MatchCondition withNegateCondition(Boolean negateCondition)
      Set describes if the result of this condition should be negated.
      Parameters:
      negateCondition - the negateCondition value to set
      Returns:
      the MatchCondition object itself.
    • matchValue

      public List<String> matchValue()
      Get list of possible match values.
      Returns:
      the matchValue value
    • withMatchValue

      public MatchCondition withMatchValue(List<String> matchValue)
      Set list of possible match values.
      Parameters:
      matchValue - the matchValue value to set
      Returns:
      the MatchCondition object itself.
    • transforms

      public List<TransformType> transforms()
      Get list of transforms.
      Returns:
      the transforms value
    • withTransforms

      public MatchCondition withTransforms(List<TransformType> transforms)
      Set list of transforms.
      Parameters:
      transforms - the transforms value to set
      Returns:
      the MatchCondition object itself.