ConnectionMonitorTestConfiguration Class

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

Implements

public final class ConnectionMonitorTestConfiguration
implements JsonSerializable<ConnectionMonitorTestConfiguration>

Describes a connection monitor test configuration.

Constructor Summary

Constructor Description
ConnectionMonitorTestConfiguration()

Creates an instance of ConnectionMonitorTestConfiguration class.

Method Summary

Modifier and Type Method and Description
static ConnectionMonitorTestConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorTestConfiguration from the JsonReader.

ConnectionMonitorHttpConfiguration httpConfiguration()

Get the httpConfiguration property: The parameters used to perform test evaluation over HTTP.

ConnectionMonitorIcmpConfiguration icmpConfiguration()

Get the icmpConfiguration property: The parameters used to perform test evaluation over ICMP.

String name()

Get the name property: The name of the connection monitor test configuration.

PreferredIpVersion preferredIpVersion()

Get the preferredIpVersion property: The preferred IP version to use in test evaluation.

ConnectionMonitorTestConfigurationProtocol protocol()

Get the protocol property: The protocol to use in test evaluation.

ConnectionMonitorSuccessThreshold successThreshold()

Get the successThreshold property: The threshold for declaring a test successful.

ConnectionMonitorTcpConfiguration tcpConfiguration()

Get the tcpConfiguration property: The parameters used to perform test evaluation over TCP.

Integer testFrequencySec()

Get the testFrequencySec property: The frequency of test evaluation, in seconds.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionMonitorTestConfiguration withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)

Set the httpConfiguration property: The parameters used to perform test evaluation over HTTP.

ConnectionMonitorTestConfiguration withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)

Set the icmpConfiguration property: The parameters used to perform test evaluation over ICMP.

ConnectionMonitorTestConfiguration withName(String name)

Set the name property: The name of the connection monitor test configuration.

ConnectionMonitorTestConfiguration withPreferredIpVersion(PreferredIpVersion preferredIpVersion)

Set the preferredIpVersion property: The preferred IP version to use in test evaluation.

ConnectionMonitorTestConfiguration withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)

Set the protocol property: The protocol to use in test evaluation.

ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)

Set the successThreshold property: The threshold for declaring a test successful.

ConnectionMonitorTestConfiguration withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)

Set the tcpConfiguration property: The parameters used to perform test evaluation over TCP.

ConnectionMonitorTestConfiguration withTestFrequencySec(Integer testFrequencySec)

Set the testFrequencySec property: The frequency of test evaluation, in seconds.

Methods inherited from java.lang.Object

Constructor Details

ConnectionMonitorTestConfiguration

public ConnectionMonitorTestConfiguration()

Creates an instance of ConnectionMonitorTestConfiguration class.

Method Details

fromJson

public static ConnectionMonitorTestConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorTestConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConnectionMonitorTestConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

httpConfiguration

public ConnectionMonitorHttpConfiguration httpConfiguration()

Get the httpConfiguration property: The parameters used to perform test evaluation over HTTP.

Returns:

the httpConfiguration value.

icmpConfiguration

public ConnectionMonitorIcmpConfiguration icmpConfiguration()

Get the icmpConfiguration property: The parameters used to perform test evaluation over ICMP.

Returns:

the icmpConfiguration value.

name

public String name()

Get the name property: The name of the connection monitor test configuration.

Returns:

the name value.

preferredIpVersion

public PreferredIpVersion preferredIpVersion()

Get the preferredIpVersion property: The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters.

Returns:

the preferredIpVersion value.

protocol

public ConnectionMonitorTestConfigurationProtocol protocol()

Get the protocol property: The protocol to use in test evaluation.

Returns:

the protocol value.

successThreshold

public ConnectionMonitorSuccessThreshold successThreshold()

Get the successThreshold property: The threshold for declaring a test successful.

Returns:

the successThreshold value.

tcpConfiguration

public ConnectionMonitorTcpConfiguration tcpConfiguration()

Get the tcpConfiguration property: The parameters used to perform test evaluation over TCP.

Returns:

the tcpConfiguration value.

testFrequencySec

public Integer testFrequencySec()

Get the testFrequencySec property: The frequency of test evaluation, in seconds.

Returns:

the testFrequencySec value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHttpConfiguration

public ConnectionMonitorTestConfiguration withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)

Set the httpConfiguration property: The parameters used to perform test evaluation over HTTP.

Parameters:

httpConfiguration - the httpConfiguration value to set.

Returns:

the ConnectionMonitorTestConfiguration object itself.

withIcmpConfiguration

public ConnectionMonitorTestConfiguration withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)

Set the icmpConfiguration property: The parameters used to perform test evaluation over ICMP.

Parameters:

icmpConfiguration - the icmpConfiguration value to set.

Returns:

the ConnectionMonitorTestConfiguration object itself.

withName

public ConnectionMonitorTestConfiguration withName(String name)

Set the name property: The name of the connection monitor test configuration.

Parameters:

name - the name value to set.

Returns:

the ConnectionMonitorTestConfiguration object itself.

withPreferredIpVersion

public ConnectionMonitorTestConfiguration withPreferredIpVersion(PreferredIpVersion preferredIpVersion)

Set the preferredIpVersion property: The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters.

Parameters:

preferredIpVersion - the preferredIpVersion value to set.

Returns:

the ConnectionMonitorTestConfiguration object itself.

withProtocol

public ConnectionMonitorTestConfiguration withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)

Set the protocol property: The protocol to use in test evaluation.

Parameters:

protocol - the protocol value to set.

Returns:

the ConnectionMonitorTestConfiguration object itself.

withSuccessThreshold

public ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)

Set the successThreshold property: The threshold for declaring a test successful.

Parameters:

successThreshold - the successThreshold value to set.

Returns:

the ConnectionMonitorTestConfiguration object itself.

withTcpConfiguration

public ConnectionMonitorTestConfiguration withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)

Set the tcpConfiguration property: The parameters used to perform test evaluation over TCP.

Parameters:

tcpConfiguration - the tcpConfiguration value to set.

Returns:

the ConnectionMonitorTestConfiguration object itself.

withTestFrequencySec

public ConnectionMonitorTestConfiguration withTestFrequencySec(Integer testFrequencySec)

Set the testFrequencySec property: The frequency of test evaluation, in seconds.

Parameters:

testFrequencySec - the testFrequencySec value to set.

Returns:

the ConnectionMonitorTestConfiguration object itself.

Applies to