Class ApplicationGatewayBackendHealthHttpSettings
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayBackendHealthHttpSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayBackendHealthHttpSettings>
public final class ApplicationGatewayBackendHealthHttpSettings
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayBackendHealthHttpSettings>
Application gateway BackendHealthHttp settings.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayBackendHealthHttpSettings class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backendHttpSettings property: Reference to an ApplicationGatewayBackendHttpSettings resource.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayBackendHealthHttpSettings from the JsonReader.servers()Get the servers property: List of ApplicationGatewayBackendHealthServer resources.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBackendHttpSettings(ApplicationGatewayBackendHttpSettings backendHttpSettings) Set the backendHttpSettings property: Reference to an ApplicationGatewayBackendHttpSettings resource.Set the servers property: List of ApplicationGatewayBackendHealthServer resources.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
-
ApplicationGatewayBackendHealthHttpSettings
public ApplicationGatewayBackendHealthHttpSettings()Creates an instance of ApplicationGatewayBackendHealthHttpSettings class.
-
-
Method Details
-
backendHttpSettings
Get the backendHttpSettings property: Reference to an ApplicationGatewayBackendHttpSettings resource.- Returns:
- the backendHttpSettings value.
-
withBackendHttpSettings
public ApplicationGatewayBackendHealthHttpSettings withBackendHttpSettings(ApplicationGatewayBackendHttpSettings backendHttpSettings) Set the backendHttpSettings property: Reference to an ApplicationGatewayBackendHttpSettings resource.- Parameters:
backendHttpSettings- the backendHttpSettings value to set.- Returns:
- the ApplicationGatewayBackendHealthHttpSettings object itself.
-
servers
Get the servers property: List of ApplicationGatewayBackendHealthServer resources.- Returns:
- the servers value.
-
withServers
public ApplicationGatewayBackendHealthHttpSettings withServers(List<ApplicationGatewayBackendHealthServerInner> servers) Set the servers property: List of ApplicationGatewayBackendHealthServer resources.- Parameters:
servers- the servers value to set.- Returns:
- the ApplicationGatewayBackendHealthHttpSettings 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<ApplicationGatewayBackendHealthHttpSettings>- Throws:
IOException
-
fromJson
public static ApplicationGatewayBackendHealthHttpSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayBackendHealthHttpSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayBackendHealthHttpSettings 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 ApplicationGatewayBackendHealthHttpSettings.
-