Class RequestMatchPattern

java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.RequestMatchPattern

public final class RequestMatchPattern extends Object
The RequestMatchPattern model.
  • Constructor Details

    • RequestMatchPattern

      public RequestMatchPattern()
  • Method Details

    • path

      public String path()
      Get the path property: The path property.
      Returns:
      the path value.
    • withPath

      public RequestMatchPattern withPath(String path)
      Set the path property: The path property.
      Parameters:
      path - the path value to set.
      Returns:
      the RequestMatchPattern object itself.
    • method

      public String method()
      Get the method property: The method property.
      Returns:
      the method value.
    • withMethod

      public RequestMatchPattern withMethod(String method)
      Set the method property: The method property.
      Parameters:
      method - the method value to set.
      Returns:
      the RequestMatchPattern object itself.
    • validate

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