Class ConnectivityCheckRequestSource

java.lang.Object
com.azure.resourcemanager.apimanagement.models.ConnectivityCheckRequestSource
All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectivityCheckRequestSource>

public final class ConnectivityCheckRequestSource extends Object implements com.azure.json.JsonSerializable<ConnectivityCheckRequestSource>
Definitions about the connectivity check origin.
  • Constructor Details

    • ConnectivityCheckRequestSource

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

    • region

      public String region()
      Get the region property: The API Management service region from where to start the connectivity check operation.
      Returns:
      the region value.
    • withRegion

      public ConnectivityCheckRequestSource withRegion(String region)
      Set the region property: The API Management service region from where to start the connectivity check operation.
      Parameters:
      region - the region value to set.
      Returns:
      the ConnectivityCheckRequestSource object itself.
    • instance

      public Long instance()
      Get the instance property: The particular VMSS instance from which to fire the request.
      Returns:
      the instance value.
    • withInstance

      public ConnectivityCheckRequestSource withInstance(Long instance)
      Set the instance property: The particular VMSS instance from which to fire the request.
      Parameters:
      instance - the instance value to set.
      Returns:
      the ConnectivityCheckRequestSource 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<ConnectivityCheckRequestSource>
      Throws:
      IOException
    • fromJson

      public static ConnectivityCheckRequestSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectivityCheckRequestSource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectivityCheckRequestSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ConnectivityCheckRequestSource.