Class ConnectivityParameters

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

public final class ConnectivityParameters extends Object implements com.azure.json.JsonSerializable<ConnectivityParameters>
Parameters that determine how the connectivity check will be performed.
  • Constructor Details

    • ConnectivityParameters

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

    • source

      public ConnectivitySource source()
      Get the source property: The source of the connection.
      Returns:
      the source value.
    • withSource

      public ConnectivityParameters withSource(ConnectivitySource source)
      Set the source property: The source of the connection.
      Parameters:
      source - the source value to set.
      Returns:
      the ConnectivityParameters object itself.
    • destination

      public ConnectivityDestination destination()
      Get the destination property: The destination of connection.
      Returns:
      the destination value.
    • withDestination

      public ConnectivityParameters withDestination(ConnectivityDestination destination)
      Set the destination property: The destination of connection.
      Parameters:
      destination - the destination value to set.
      Returns:
      the ConnectivityParameters object itself.
    • protocol

      public Protocol protocol()
      Get the protocol property: Network protocol.
      Returns:
      the protocol value.
    • withProtocol

      public ConnectivityParameters withProtocol(Protocol protocol)
      Set the protocol property: Network protocol.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the ConnectivityParameters object itself.
    • protocolConfiguration

      public ProtocolConfiguration protocolConfiguration()
      Get the protocolConfiguration property: Configuration of the protocol.
      Returns:
      the protocolConfiguration value.
    • withProtocolConfiguration

      public ConnectivityParameters withProtocolConfiguration(ProtocolConfiguration protocolConfiguration)
      Set the protocolConfiguration property: Configuration of the protocol.
      Parameters:
      protocolConfiguration - the protocolConfiguration value to set.
      Returns:
      the ConnectivityParameters object itself.
    • preferredIpVersion

      public IpVersion preferredIpVersion()
      Get the preferredIpVersion property: Preferred IP version of the connection.
      Returns:
      the preferredIpVersion value.
    • withPreferredIpVersion

      public ConnectivityParameters withPreferredIpVersion(IpVersion preferredIpVersion)
      Set the preferredIpVersion property: Preferred IP version of the connection.
      Parameters:
      preferredIpVersion - the preferredIpVersion value to set.
      Returns:
      the ConnectivityParameters 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<ConnectivityParameters>
      Throws:
      IOException
    • fromJson

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