ApplicationGatewayProbeHealthResponseMatch Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ApplicationGatewayProbeHealthResponseMatch

Implements

public final class ApplicationGatewayProbeHealthResponseMatch
implements JsonSerializable<ApplicationGatewayProbeHealthResponseMatch>

Application gateway probe health response match.

Constructor Summary

Constructor Description
ApplicationGatewayProbeHealthResponseMatch()

Creates an instance of ApplicationGatewayProbeHealthResponseMatch class.

Method Summary

Modifier and Type Method and Description
String body()

Get the body property: Body that must be contained in the health response.

static ApplicationGatewayProbeHealthResponseMatch fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayProbeHealthResponseMatch from the JsonReader.

List<String> statusCodes()

Get the statusCodes property: Allowed ranges of healthy status codes.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewayProbeHealthResponseMatch withBody(String body)

Set the body property: Body that must be contained in the health response.

ApplicationGatewayProbeHealthResponseMatch withStatusCodes(List<String> statusCodes)

Set the statusCodes property: Allowed ranges of healthy status codes.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewayProbeHealthResponseMatch

public ApplicationGatewayProbeHealthResponseMatch()

Creates an instance of ApplicationGatewayProbeHealthResponseMatch class.

Method Details

body

public String body()

Get the body property: Body that must be contained in the health response. Default value is empty.

Returns:

the body value.

fromJson

public static ApplicationGatewayProbeHealthResponseMatch fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewayProbeHealthResponseMatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

statusCodes

public List statusCodes()

Get the statusCodes property: Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.

Returns:

the statusCodes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBody

public ApplicationGatewayProbeHealthResponseMatch withBody(String body)

Set the body property: Body that must be contained in the health response. Default value is empty.

Parameters:

body - the body value to set.

Returns:

the ApplicationGatewayProbeHealthResponseMatch object itself.

withStatusCodes

public ApplicationGatewayProbeHealthResponseMatch withStatusCodes(List statusCodes)

Set the statusCodes property: Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.

Parameters:

statusCodes - the statusCodes value to set.

Returns:

the ApplicationGatewayProbeHealthResponseMatch object itself.

Applies to