Class ConnectivityCheckRequest

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

public final class ConnectivityCheckRequest extends Object implements com.azure.json.JsonSerializable<ConnectivityCheckRequest>
A request to perform the connectivity check operation on a API Management service.
  • Constructor Details

    • ConnectivityCheckRequest

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

    • source

      Get the source property: Definitions about the connectivity check origin.
      Returns:
      the source value.
    • withSource

      Set the source property: Definitions about the connectivity check origin.
      Parameters:
      source - the source value to set.
      Returns:
      the ConnectivityCheckRequest object itself.
    • destination

      Get the destination property: The connectivity check operation destination.
      Returns:
      the destination value.
    • withDestination

      public ConnectivityCheckRequest withDestination(ConnectivityCheckRequestDestination destination)
      Set the destination property: The connectivity check operation destination.
      Parameters:
      destination - the destination value to set.
      Returns:
      the ConnectivityCheckRequest object itself.
    • preferredIpVersion

      public PreferredIpVersion preferredIpVersion()
      Get the preferredIpVersion property: The IP version to be used. Only IPv4 is supported for now.
      Returns:
      the preferredIpVersion value.
    • withPreferredIpVersion

      public ConnectivityCheckRequest withPreferredIpVersion(PreferredIpVersion preferredIpVersion)
      Set the preferredIpVersion property: The IP version to be used. Only IPv4 is supported for now.
      Parameters:
      preferredIpVersion - the preferredIpVersion value to set.
      Returns:
      the ConnectivityCheckRequest object itself.
    • protocol

      public ConnectivityCheckProtocol protocol()
      Get the protocol property: The request's protocol. Specific protocol configuration can be available based on this selection. The specified destination address must be coherent with this value.
      Returns:
      the protocol value.
    • withProtocol

      public ConnectivityCheckRequest withProtocol(ConnectivityCheckProtocol protocol)
      Set the protocol property: The request's protocol. Specific protocol configuration can be available based on this selection. The specified destination address must be coherent with this value.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the ConnectivityCheckRequest object itself.
    • protocolConfiguration

      public ConnectivityCheckRequestProtocolConfiguration protocolConfiguration()
      Get the protocolConfiguration property: Protocol-specific configuration.
      Returns:
      the protocolConfiguration value.
    • withProtocolConfiguration

      public ConnectivityCheckRequest withProtocolConfiguration(ConnectivityCheckRequestProtocolConfiguration protocolConfiguration)
      Set the protocolConfiguration property: Protocol-specific configuration.
      Parameters:
      protocolConfiguration - the protocolConfiguration value to set.
      Returns:
      the ConnectivityCheckRequest 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<ConnectivityCheckRequest>
      Throws:
      IOException
    • fromJson

      public static ConnectivityCheckRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectivityCheckRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectivityCheckRequest 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 ConnectivityCheckRequest.