Class ConnectionMonitorTcpConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorTcpConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorTcpConfiguration>
public final class ConnectionMonitorTcpConfiguration
extends Object
implements com.azure.json.JsonSerializable<ConnectionMonitorTcpConfiguration>
Describes the TCP configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionMonitorTcpConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationPortBehavior property: Destination port behavior.Get the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorTcpConfiguration from the JsonReader.port()Get the port property: The port to connect to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinationPortBehavior(DestinationPortBehavior destinationPortBehavior) Set the destinationPortBehavior property: Destination port behavior.withDisableTraceRoute(Boolean disableTraceRoute) Set the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled.Set the port property: The port to connect to.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
-
ConnectionMonitorTcpConfiguration
public ConnectionMonitorTcpConfiguration()Creates an instance of ConnectionMonitorTcpConfiguration class.
-
-
Method Details
-
port
Get the port property: The port to connect to.- Returns:
- the port value.
-
withPort
Set the port property: The port to connect to.- Parameters:
port- the port value to set.- Returns:
- the ConnectionMonitorTcpConfiguration object itself.
-
disableTraceRoute
Get the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled.- Returns:
- the disableTraceRoute value.
-
withDisableTraceRoute
Set the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled.- Parameters:
disableTraceRoute- the disableTraceRoute value to set.- Returns:
- the ConnectionMonitorTcpConfiguration object itself.
-
destinationPortBehavior
Get the destinationPortBehavior property: Destination port behavior.- Returns:
- the destinationPortBehavior value.
-
withDestinationPortBehavior
public ConnectionMonitorTcpConfiguration withDestinationPortBehavior(DestinationPortBehavior destinationPortBehavior) Set the destinationPortBehavior property: Destination port behavior.- Parameters:
destinationPortBehavior- the destinationPortBehavior value to set.- Returns:
- the ConnectionMonitorTcpConfiguration 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<ConnectionMonitorTcpConfiguration>- Throws:
IOException
-
fromJson
public static ConnectionMonitorTcpConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionMonitorTcpConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectionMonitorTcpConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ConnectionMonitorTcpConfiguration.
-