Class BackendConfiguration
java.lang.Object
com.azure.resourcemanager.apimanagement.models.BackendConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BackendConfiguration>
public final class BackendConfiguration
extends Object
implements com.azure.json.JsonSerializable<BackendConfiguration>
Information regarding how the gateway should integrate with backend systems.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BackendConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackendConfiguration from the JsonReader.subnet()Get the subnet property: The default hostname of the data-plane gateway to which requests can be sent.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSubnet(BackendSubnetConfiguration subnet) Set the subnet property: The default hostname of the data-plane gateway to which requests can be sent.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
-
BackendConfiguration
public BackendConfiguration()Creates an instance of BackendConfiguration class.
-
-
Method Details
-
subnet
Get the subnet property: The default hostname of the data-plane gateway to which requests can be sent.- Returns:
- the subnet value.
-
withSubnet
Set the subnet property: The default hostname of the data-plane gateway to which requests can be sent.- Parameters:
subnet- the subnet value to set.- Returns:
- the BackendConfiguration 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<BackendConfiguration>- Throws:
IOException
-
fromJson
public static BackendConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BackendConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BackendConfiguration 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 BackendConfiguration.
-