Class RequestMatchPattern
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.models.RequestMatchPattern
-
public final class RequestMatchPattern extends Object
The RequestMatchPattern model.
-
-
Constructor Summary
Constructors Constructor Description RequestMatchPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
method()
Get the method property: The method property.String
path()
Get the path property: The path property.void
validate()
Validates the instance.RequestMatchPattern
withMethod(String method)
Set the method property: The method property.RequestMatchPattern
withPath(String path)
Set the path property: The path property.
-
-
-
Method Detail
-
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.
-
-