Class RestResponseRegex
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.RestResponseRegex
The regular expressions to match the response content with.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmatches()
Get the matches property: The list of regular expressions.Get the matchQuantifier property: Indicates whether any or all of the expressions should match with the response content.void
validate()
Validates the instance.withMatches
(List<String> matches) Set the matches property: The list of regular expressions.withMatchQuantifier
(RestMatchQuantifier matchQuantifier) Set the matchQuantifier property: Indicates whether any or all of the expressions should match with the response content.
-
Constructor Details
-
RestResponseRegex
public RestResponseRegex()Creates an instance of RestResponseRegex class.
-
-
Method Details
-
matches
Get the matches property: The list of regular expressions.- Returns:
- the matches value.
-
withMatches
Set the matches property: The list of regular expressions.- Parameters:
matches
- the matches value to set.- Returns:
- the RestResponseRegex object itself.
-
matchQuantifier
Get the matchQuantifier property: Indicates whether any or all of the expressions should match with the response content.- Returns:
- the matchQuantifier value.
-
withMatchQuantifier
Set the matchQuantifier property: Indicates whether any or all of the expressions should match with the response content.- Parameters:
matchQuantifier
- the matchQuantifier value to set.- Returns:
- the RestResponseRegex object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-