Class RequestMatchPattern
java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.RequestMatchPattern
The RequestMatchPattern model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmethod()
Get the method property: The method property.path()
Get the path property: The path property.void
validate()
Validates the instance.withMethod
(String method) Set the method property: The method property.Set the path property: The path property.
-
Constructor Details
-
RequestMatchPattern
public RequestMatchPattern()
-
-
Method Details
-
path
Get the path property: The path property.- Returns:
- the path value.
-
withPath
Set the path property: The path property.- Parameters:
path
- the path value to set.- Returns:
- the RequestMatchPattern object itself.
-
method
Get the method property: The method property.- Returns:
- the method value.
-
withMethod
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.
-