Class ConnectivityParameters
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ConnectivityParameters
-
public final class ConnectivityParameters extends Object
Parameters that determine how the connectivity check will be performed.
-
-
Constructor Summary
Constructors Constructor Description ConnectivityParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectivityDestinationdestination()Get the destination property: The destination of connection.IpVersionpreferredIpVersion()Get the preferredIpVersion property: Preferred IP version of the connection.Protocolprotocol()Get the protocol property: Network protocol.ProtocolConfigurationprotocolConfiguration()Get the protocolConfiguration property: Configuration of the protocol.ConnectivitySourcesource()Get the source property: The source of the connection.voidvalidate()Validates the instance.ConnectivityParameterswithDestination(ConnectivityDestination destination)Set the destination property: The destination of connection.ConnectivityParameterswithPreferredIpVersion(IpVersion preferredIpVersion)Set the preferredIpVersion property: Preferred IP version of the connection.ConnectivityParameterswithProtocol(Protocol protocol)Set the protocol property: Network protocol.ConnectivityParameterswithProtocolConfiguration(ProtocolConfiguration protocolConfiguration)Set the protocolConfiguration property: Configuration of the protocol.ConnectivityParameterswithSource(ConnectivitySource source)Set the source property: The source of the connection.
-
-
-
Method Detail
-
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.
-
-