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 Details

    • ApiManagementServiceApplyNetworkConfigurationParameters

      public ApiManagementServiceApplyNetworkConfigurationParameters()
      Creates an instance of ApiManagementServiceApplyNetworkConfigurationParameters class.
  • Method Details

    • location

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.