次の方法で共有


WebTestPropertiesValidationRulesContentValidation Class

  • java.lang.Object
    • com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesValidationRulesContentValidation

Implements

public final class WebTestPropertiesValidationRulesContentValidation
implements JsonSerializable<WebTestPropertiesValidationRulesContentValidation>

The collection of content validation properties.

Constructor Summary

Constructor Description
WebTestPropertiesValidationRulesContentValidation()

Creates an instance of WebTestPropertiesValidationRulesContentValidation class.

Method Summary

Modifier and Type Method and Description
String contentMatch()

Get the contentMatch property: Content to look for in the return of the WebTest.

static WebTestPropertiesValidationRulesContentValidation fromJson(JsonReader jsonReader)

Reads an instance of WebTestPropertiesValidationRulesContentValidation from the JsonReader.

Boolean ignoreCase()

Get the ignoreCase property: When set, this value makes the ContentMatch validation case insensitive.

Boolean passIfTextFound()

Get the passIfTextFound property: When true, validation will pass if there is a match for the ContentMatch string.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebTestPropertiesValidationRulesContentValidation withContentMatch(String contentMatch)

Set the contentMatch property: Content to look for in the return of the WebTest.

WebTestPropertiesValidationRulesContentValidation withIgnoreCase(Boolean ignoreCase)

Set the ignoreCase property: When set, this value makes the ContentMatch validation case insensitive.

WebTestPropertiesValidationRulesContentValidation withPassIfTextFound(Boolean passIfTextFound)

Set the passIfTextFound property: When true, validation will pass if there is a match for the ContentMatch string.

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:

the contentMatch value.

fromJson

public static WebTestPropertiesValidationRulesContentValidation fromJson(JsonReader jsonReader)

Reads an instance of WebTestPropertiesValidationRulesContentValidation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebTestPropertiesValidationRulesContentValidation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the WebTestPropertiesValidationRulesContentValidation.

ignoreCase

public Boolean ignoreCase()

Get the ignoreCase property: When set, this value makes the ContentMatch validation case insensitive.

Returns:

the ignoreCase value.

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:

the passIfTextFound value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

contentMatch - the contentMatch value to set.

Returns:

the WebTestPropertiesValidationRulesContentValidation object itself.

withIgnoreCase

public WebTestPropertiesValidationRulesContentValidation withIgnoreCase(Boolean ignoreCase)

Set the ignoreCase property: When set, this value makes the ContentMatch validation case insensitive.

Parameters:

ignoreCase - the ignoreCase value to set.

Returns:

the WebTestPropertiesValidationRulesContentValidation object itself.

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:

passIfTextFound - the passIfTextFound value to set.

Returns:

the WebTestPropertiesValidationRulesContentValidation object itself.

Applies to