Class ApplicationGatewayProbeHealthResponseMatch
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayProbeHealthResponseMatch
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayProbeHealthResponseMatch>
public final class ApplicationGatewayProbeHealthResponseMatch
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayProbeHealthResponseMatch>
Application gateway probe health response match.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayProbeHealthResponseMatch class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Get the body property: Body that must be contained in the health response.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayProbeHealthResponseMatch from the JsonReader.Get the statusCodes property: Allowed ranges of healthy status codes.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the body property: Body that must be contained in the health response.withStatusCodes(List<String> statusCodes) Set the statusCodes property: Allowed ranges of healthy status codes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplicationGatewayProbeHealthResponseMatch
public ApplicationGatewayProbeHealthResponseMatch()Creates an instance of ApplicationGatewayProbeHealthResponseMatch class.
-
-
Method Details
-
body
Get the body property: Body that must be contained in the health response. Default value is empty.- Returns:
- the body value.
-
withBody
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.
-
statusCodes
Get the statusCodes property: Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.- Returns:
- the statusCodes value.
-
withStatusCodes
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ApplicationGatewayProbeHealthResponseMatch>- Throws:
IOException
-
fromJson
public static ApplicationGatewayProbeHealthResponseMatch fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-