Class ApiManagementServiceApplyNetworkConfigurationParameters
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ApiManagementServiceApplyNetworkConfigurationParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiManagementServiceApplyNetworkConfigurationParameters>
public final class ApiManagementServiceApplyNetworkConfigurationParameters
extends Object
implements com.azure.json.JsonSerializable<ApiManagementServiceApplyNetworkConfigurationParameters>
Parameter supplied to the Apply Network configuration operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApiManagementServiceApplyNetworkConfigurationParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiManagementServiceApplyNetworkConfigurationParameters from the JsonReader.location()Get the location property: Location of the Api Management service to update for a multi-region service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocation(String location) Set the location property: Location of the Api Management service to update for a multi-region service.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
-
ApiManagementServiceApplyNetworkConfigurationParameters
public ApiManagementServiceApplyNetworkConfigurationParameters()Creates an instance of ApiManagementServiceApplyNetworkConfigurationParameters class.
-
-
Method Details
-
location
Get the location property: Location of the Api Management service to update for a multi-region service. For a service deployed in a single region, this parameter is not required.- Returns:
- the location value.
-
withLocation
Set the location property: Location of the Api Management service to update for a multi-region service. For a service deployed in a single region, this parameter is not required.- Parameters:
location- the location value to set.- Returns:
- the ApiManagementServiceApplyNetworkConfigurationParameters 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<ApiManagementServiceApplyNetworkConfigurationParameters>- Throws:
IOException
-
fromJson
public static ApiManagementServiceApplyNetworkConfigurationParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiManagementServiceApplyNetworkConfigurationParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiManagementServiceApplyNetworkConfigurationParameters 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 ApiManagementServiceApplyNetworkConfigurationParameters.
-