次の方法で共有


WebTestPropertiesValidationRules Class

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

Implements

public final class WebTestPropertiesValidationRules
implements JsonSerializable<WebTestPropertiesValidationRules>

The collection of validation rule properties.

Constructor Summary

Constructor Description
WebTestPropertiesValidationRules()

Creates an instance of WebTestPropertiesValidationRules class.

Method Summary

Modifier and Type Method and Description
WebTestPropertiesValidationRulesContentValidation contentValidation()

Get the contentValidation property: The collection of content validation properties.

Integer expectedHttpStatusCode()

Get the expectedHttpStatusCode property: Validate that the WebTest returns the http status code provided.

static WebTestPropertiesValidationRules fromJson(JsonReader jsonReader)

Reads an instance of WebTestPropertiesValidationRules from the JsonReader.

Boolean ignoreHttpStatusCode()

Get the ignoreHttpStatusCode property: When set, validation will ignore the status code.

Integer sslCertRemainingLifetimeCheck()

Get the sslCertRemainingLifetimeCheck property: A number of days to check still remain before the the existing SSL cert expires.

Boolean sslCheck()

Get the sslCheck property: Checks to see if the SSL cert is still valid.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebTestPropertiesValidationRules withContentValidation(WebTestPropertiesValidationRulesContentValidation contentValidation)

Set the contentValidation property: The collection of content validation properties.

WebTestPropertiesValidationRules withExpectedHttpStatusCode(Integer expectedHttpStatusCode)

Set the expectedHttpStatusCode property: Validate that the WebTest returns the http status code provided.

WebTestPropertiesValidationRules withIgnoreHttpStatusCode(Boolean ignoreHttpStatusCode)

Set the ignoreHttpStatusCode property: When set, validation will ignore the status code.

WebTestPropertiesValidationRules withSslCertRemainingLifetimeCheck(Integer sslCertRemainingLifetimeCheck)

Set the sslCertRemainingLifetimeCheck property: A number of days to check still remain before the the existing SSL cert expires.

WebTestPropertiesValidationRules withSslCheck(Boolean sslCheck)

Set the sslCheck property: Checks to see if the SSL cert is still valid.

Methods inherited from java.lang.Object

Constructor Details

WebTestPropertiesValidationRules

public WebTestPropertiesValidationRules()

Creates an instance of WebTestPropertiesValidationRules class.

Method Details

contentValidation

public WebTestPropertiesValidationRulesContentValidation contentValidation()

Get the contentValidation property: The collection of content validation properties.

Returns:

the contentValidation value.

expectedHttpStatusCode

public Integer expectedHttpStatusCode()

Get the expectedHttpStatusCode property: Validate that the WebTest returns the http status code provided.

Returns:

the expectedHttpStatusCode value.

fromJson

public static WebTestPropertiesValidationRules fromJson(JsonReader jsonReader)

Reads an instance of WebTestPropertiesValidationRules from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebTestPropertiesValidationRules 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 WebTestPropertiesValidationRules.

ignoreHttpStatusCode

public Boolean ignoreHttpStatusCode()

Get the ignoreHttpStatusCode property: When set, validation will ignore the status code.

Returns:

the ignoreHttpStatusCode value.

sslCertRemainingLifetimeCheck

public Integer sslCertRemainingLifetimeCheck()

Get the sslCertRemainingLifetimeCheck property: A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.

Returns:

the sslCertRemainingLifetimeCheck value.

sslCheck

public Boolean sslCheck()

Get the sslCheck property: Checks to see if the SSL cert is still valid.

Returns:

the sslCheck value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContentValidation

public WebTestPropertiesValidationRules withContentValidation(WebTestPropertiesValidationRulesContentValidation contentValidation)

Set the contentValidation property: The collection of content validation properties.

Parameters:

contentValidation - the contentValidation value to set.

Returns:

the WebTestPropertiesValidationRules object itself.

withExpectedHttpStatusCode

public WebTestPropertiesValidationRules withExpectedHttpStatusCode(Integer expectedHttpStatusCode)

Set the expectedHttpStatusCode property: Validate that the WebTest returns the http status code provided.

Parameters:

expectedHttpStatusCode - the expectedHttpStatusCode value to set.

Returns:

the WebTestPropertiesValidationRules object itself.

withIgnoreHttpStatusCode

public WebTestPropertiesValidationRules withIgnoreHttpStatusCode(Boolean ignoreHttpStatusCode)

Set the ignoreHttpStatusCode property: When set, validation will ignore the status code.

Parameters:

ignoreHttpStatusCode - the ignoreHttpStatusCode value to set.

Returns:

the WebTestPropertiesValidationRules object itself.

withSslCertRemainingLifetimeCheck

public WebTestPropertiesValidationRules withSslCertRemainingLifetimeCheck(Integer sslCertRemainingLifetimeCheck)

Set the sslCertRemainingLifetimeCheck property: A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.

Parameters:

sslCertRemainingLifetimeCheck - the sslCertRemainingLifetimeCheck value to set.

Returns:

the WebTestPropertiesValidationRules object itself.

withSslCheck

public WebTestPropertiesValidationRules withSslCheck(Boolean sslCheck)

Set the sslCheck property: Checks to see if the SSL cert is still valid.

Parameters:

sslCheck - the sslCheck value to set.

Returns:

the WebTestPropertiesValidationRules object itself.

Applies to