WebTestPropertiesValidationRulesContentValidation Class
- java.
lang. Object - com.
azure. resourcemanager. applicationinsights. models. WebTestPropertiesValidationRulesContentValidation
- com.
Implements
public final class WebTestPropertiesValidationRulesContentValidation
implements JsonSerializable<WebTestPropertiesValidationRulesContentValidation>
The collection of content validation properties.
Constructor Summary
| Constructor | Description |
|---|---|
| WebTestPropertiesValidationRulesContentValidation() |
Creates an instance of Web |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
contentMatch()
Get the content |
|
static
Web |
fromJson(JsonReader jsonReader)
Reads an instance of Web |
| Boolean |
ignoreCase()
Get the ignore |
| Boolean |
passIfTextFound()
Get the pass |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Web |
withContentMatch(String contentMatch)
Set the content |
|
Web |
withIgnoreCase(Boolean ignoreCase)
Set the ignore |
|
Web |
withPassIfTextFound(Boolean passIfTextFound)
Set the pass |
Methods inherited from java.lang.Object
Constructor Details
WebTestPropertiesValidationRulesContentValidation
public WebTestPropertiesValidationRulesContentValidation()
Creates an instance of WebTestPropertiesValidationRulesContentValidation class.
Method Details
contentMatch
public String contentMatch()
Get the contentMatch property: Content to look for in the return of the WebTest. Must not be null or empty.
Returns:
fromJson
public static WebTestPropertiesValidationRulesContentValidation fromJson(JsonReader jsonReader)
Reads an instance of WebTestPropertiesValidationRulesContentValidation from the JsonReader.
Parameters:
Returns:
Throws:
ignoreCase
public Boolean ignoreCase()
Get the ignoreCase property: When set, this value makes the ContentMatch validation case insensitive.
Returns:
passIfTextFound
public Boolean passIfTextFound()
Get the passIfTextFound property: When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match.
Returns:
toJson
validate
public void validate()
Validates the instance.
withContentMatch
public WebTestPropertiesValidationRulesContentValidation withContentMatch(String contentMatch)
Set the contentMatch property: Content to look for in the return of the WebTest. Must not be null or empty.
Parameters:
Returns:
withIgnoreCase
public WebTestPropertiesValidationRulesContentValidation withIgnoreCase(Boolean ignoreCase)
Set the ignoreCase property: When set, this value makes the ContentMatch validation case insensitive.
Parameters:
Returns:
withPassIfTextFound
public WebTestPropertiesValidationRulesContentValidation withPassIfTextFound(Boolean passIfTextFound)
Set the passIfTextFound property: When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match.
Parameters:
Returns: