WebTestPropertiesValidationRules Class
- java.
lang. Object - com.
azure. resourcemanager. applicationinsights. models. WebTestPropertiesValidationRules
- com.
Implements
public final class WebTestPropertiesValidationRules
implements JsonSerializable<WebTestPropertiesValidationRules>
The collection of validation rule properties.
Constructor Summary
| Constructor | Description |
|---|---|
| WebTestPropertiesValidationRules() |
Creates an instance of Web |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Web |
contentValidation()
Get the content |
| Integer |
expectedHttpStatusCode()
Get the expected |
|
static
Web |
fromJson(JsonReader jsonReader)
Reads an instance of Web |
| Boolean |
ignoreHttpStatusCode()
Get the ignore |
| Integer |
sslCertRemainingLifetimeCheck()
Get the ssl |
| Boolean |
sslCheck()
Get the ssl |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Web |
withContentValidation(WebTestPropertiesValidationRulesContentValidation contentValidation)
Set the content |
|
Web |
withExpectedHttpStatusCode(Integer expectedHttpStatusCode)
Set the expected |
|
Web |
withIgnoreHttpStatusCode(Boolean ignoreHttpStatusCode)
Set the ignore |
|
Web |
withSslCertRemainingLifetimeCheck(Integer sslCertRemainingLifetimeCheck)
Set the ssl |
|
Web |
withSslCheck(Boolean sslCheck)
Set the ssl |
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:
expectedHttpStatusCode
public Integer expectedHttpStatusCode()
Get the expectedHttpStatusCode property: Validate that the WebTest returns the http status code provided.
Returns:
fromJson
public static WebTestPropertiesValidationRules fromJson(JsonReader jsonReader)
Reads an instance of WebTestPropertiesValidationRules from the JsonReader.
Parameters:
Returns:
Throws:
ignoreHttpStatusCode
public Boolean ignoreHttpStatusCode()
Get the ignoreHttpStatusCode property: When set, validation will ignore the status code.
Returns:
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:
sslCheck
public Boolean sslCheck()
Get the sslCheck property: Checks to see if the SSL cert is still valid.
Returns:
toJson
validate
public void validate()
Validates the instance.
withContentValidation
public WebTestPropertiesValidationRules withContentValidation(WebTestPropertiesValidationRulesContentValidation contentValidation)
Set the contentValidation property: The collection of content validation properties.
Parameters:
Returns:
withExpectedHttpStatusCode
public WebTestPropertiesValidationRules withExpectedHttpStatusCode(Integer expectedHttpStatusCode)
Set the expectedHttpStatusCode property: Validate that the WebTest returns the http status code provided.
Parameters:
Returns:
withIgnoreHttpStatusCode
public WebTestPropertiesValidationRules withIgnoreHttpStatusCode(Boolean ignoreHttpStatusCode)
Set the ignoreHttpStatusCode property: When set, validation will ignore the status code.
Parameters:
Returns:
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:
Returns:
withSslCheck
public WebTestPropertiesValidationRules withSslCheck(Boolean sslCheck)
Set the sslCheck property: Checks to see if the SSL cert is still valid.
Parameters:
Returns: