Class ApplicationGatewayProbeHealthResponseMatch
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ApplicationGatewayProbeHealthResponseMatch
-
public final class ApplicationGatewayProbeHealthResponseMatch extends Object
Application gateway probe health response match.
-
-
Constructor Summary
Constructors Constructor Description ApplicationGatewayProbeHealthResponseMatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbody()Get the body property: Body that must be contained in the health response.List<String>statusCodes()Get the statusCodes property: Allowed ranges of healthy status codes.voidvalidate()Validates the instance.ApplicationGatewayProbeHealthResponseMatchwithBody(String body)Set the body property: Body that must be contained in the health response.ApplicationGatewayProbeHealthResponseMatchwithStatusCodes(List<String> statusCodes)Set the statusCodes property: Allowed ranges of healthy status codes.
-
-
-
Method Detail
-
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.
-
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.
-
statusCodes
public List<String> 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
public ApplicationGatewayProbeHealthResponseMatch withStatusCodes(List<String> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-