ConnectionMonitorTcpConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ConnectionMonitorTcpConfiguration

Implements

public final class ConnectionMonitorTcpConfiguration
implements JsonSerializable<ConnectionMonitorTcpConfiguration>

Describes the TCP configuration.

Constructor Summary

Constructor Description
ConnectionMonitorTcpConfiguration()

Creates an instance of ConnectionMonitorTcpConfiguration class.

Method Summary

Modifier and Type Method and Description
DestinationPortBehavior destinationPortBehavior()

Get the destinationPortBehavior property: Destination port behavior.

Boolean disableTraceRoute()

Get the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled.

static ConnectionMonitorTcpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorTcpConfiguration from the JsonReader.

Integer port()

Get the port property: The port to connect to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionMonitorTcpConfiguration withDestinationPortBehavior(DestinationPortBehavior destinationPortBehavior)

Set the destinationPortBehavior property: Destination port behavior.

ConnectionMonitorTcpConfiguration withDisableTraceRoute(Boolean disableTraceRoute)

Set the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled.

ConnectionMonitorTcpConfiguration withPort(Integer port)

Set the port property: The port to connect to.

Methods inherited from java.lang.Object

Constructor Details

ConnectionMonitorTcpConfiguration

public ConnectionMonitorTcpConfiguration()

Creates an instance of ConnectionMonitorTcpConfiguration class.

Method Details

destinationPortBehavior

public DestinationPortBehavior destinationPortBehavior()

Get the destinationPortBehavior property: Destination port behavior.

Returns:

the destinationPortBehavior value.

disableTraceRoute

public Boolean disableTraceRoute()

Get the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled.

Returns:

the disableTraceRoute value.

fromJson

public static ConnectionMonitorTcpConfiguration fromJson(JsonReader jsonReader)

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.

port

public Integer port()

Get the port property: The port to connect to.

Returns:

the port value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withDisableTraceRoute

public ConnectionMonitorTcpConfiguration withDisableTraceRoute(Boolean disableTraceRoute)

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.

withPort

public ConnectionMonitorTcpConfiguration withPort(Integer port)

Set the port property: The port to connect to.

Parameters:

port - the port value to set.

Returns:

the ConnectionMonitorTcpConfiguration object itself.

Applies to