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 Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectivityParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destination property: The destination of connection.static ConnectivityParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectivityParameters from the JsonReader.Get the preferredIpVersion property: Preferred IP version of the connection.protocol()Get the protocol property: Network protocol.Get the protocolConfiguration property: Configuration of the protocol.source()Get the source property: The source of the connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestination(ConnectivityDestination destination) Set the destination property: The destination of connection.withPreferredIpVersion(IpVersion preferredIpVersion) Set the preferredIpVersion property: Preferred IP version of the connection.withProtocol(Protocol protocol) Set the protocol property: Network protocol.withProtocolConfiguration(ProtocolConfiguration protocolConfiguration) Set the protocolConfiguration property: Configuration of the protocol.withSource(ConnectivitySource source) Set the source property: The source of the connection.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
-
ConnectivityParameters
public ConnectivityParameters()Creates an instance of ConnectivityParameters class.
-
-
Method Details
-
source
Get the source property: The source of the connection.- Returns:
- the source value.
-
withSource
Set the source property: The source of the connection.- Parameters:
source- the source value to set.- Returns:
- the ConnectivityParameters object itself.
-
destination
Get the destination property: The destination of connection.- Returns:
- the destination value.
-
withDestination
Set the destination property: The destination of connection.- Parameters:
destination- the destination value to set.- Returns:
- the ConnectivityParameters object itself.
-
protocol
Get the protocol property: Network protocol.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Network protocol.- Parameters:
protocol- the protocol value to set.- Returns:
- the ConnectivityParameters object itself.
-
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
Get the preferredIpVersion property: Preferred IP version of the connection.- Returns:
- the preferredIpVersion value.
-
withPreferredIpVersion
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
- Specified by:
toJsonin interfacecom.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.
-