ConnectionMonitorTestConfiguration Class

  • java.lang.Object
    • com.microsoft.azure.management.network.ConnectionMonitorTestConfiguration

public class ConnectionMonitorTestConfiguration

Describes a connection monitor test configuration.

Constructor Summary

Constructor Description
ConnectionMonitorTestConfiguration()

Method Summary

Modifier and Type Method and Description
ConnectionMonitorHttpConfiguration httpConfiguration()

Get the parameters used to perform test evaluation over HTTP.

ConnectionMonitorIcmpConfiguration icmpConfiguration()

Get the parameters used to perform test evaluation over ICMP.

java.lang.String name()

Get the name of the connection monitor test configuration.

PreferredIPVersion preferredIPVersion()

Get the preferred IP version to use in test evaluation.

ConnectionMonitorTestConfigurationProtocol protocol()

Get the protocol to use in test evaluation.

ConnectionMonitorSuccessThreshold successThreshold()

Get the threshold for declaring a test successful.

ConnectionMonitorTcpConfiguration tcpConfiguration()

Get the parameters used to perform test evaluation over TCP.

java.lang.Integer testFrequencySec()

Get the frequency of test evaluation, in seconds.

ConnectionMonitorTestConfiguration withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)

Set the parameters used to perform test evaluation over HTTP.

ConnectionMonitorTestConfiguration withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)

Set the parameters used to perform test evaluation over ICMP.

ConnectionMonitorTestConfiguration withName(String name)

Set the name of the connection monitor test configuration.

ConnectionMonitorTestConfiguration withPreferredIPVersion(PreferredIPVersion preferredIPVersion)

Set the preferred IP version to use in test evaluation.

ConnectionMonitorTestConfiguration withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)

Set the protocol to use in test evaluation.

ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)

Set the threshold for declaring a test successful.

ConnectionMonitorTestConfiguration withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)

Set the parameters used to perform test evaluation over TCP.

ConnectionMonitorTestConfiguration withTestFrequencySec(Integer testFrequencySec)

Set the frequency of test evaluation, in seconds.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ConnectionMonitorTestConfiguration

public ConnectionMonitorTestConfiguration()

Method Details

httpConfiguration

public ConnectionMonitorHttpConfiguration httpConfiguration()

Get the parameters used to perform test evaluation over HTTP.

Returns:

the httpConfiguration value

icmpConfiguration

public ConnectionMonitorIcmpConfiguration icmpConfiguration()

Get the parameters used to perform test evaluation over ICMP.

Returns:

the icmpConfiguration value

name

public String name()

Get the name of the connection monitor test configuration.

Returns:

the name value

preferredIPVersion

public PreferredIPVersion preferredIPVersion()

Get the preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. Possible values include: 'IPv4', 'IPv6'.

Returns:

the preferredIPVersion value

protocol

public ConnectionMonitorTestConfigurationProtocol protocol()

Get the protocol to use in test evaluation. Possible values include: 'Tcp', 'Http', 'Icmp'.

Returns:

the protocol value

successThreshold

public ConnectionMonitorSuccessThreshold successThreshold()

Get the threshold for declaring a test successful.

Returns:

the successThreshold value

tcpConfiguration

public ConnectionMonitorTcpConfiguration tcpConfiguration()

Get the parameters used to perform test evaluation over TCP.

Returns:

the tcpConfiguration value

testFrequencySec

public Integer testFrequencySec()

Get the frequency of test evaluation, in seconds.

Returns:

the testFrequencySec value

withHttpConfiguration

public ConnectionMonitorTestConfiguration withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)

Set 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 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 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 preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. Possible values include: 'IPv4', 'IPv6'.

Parameters:

preferredIPVersion - the preferredIPVersion value to set

Returns:

the ConnectionMonitorTestConfiguration object itself.

withProtocol

public ConnectionMonitorTestConfiguration withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)

Set the protocol to use in test evaluation. Possible values include: 'Tcp', 'Http', 'Icmp'.

Parameters:

protocol - the protocol value to set

Returns:

the ConnectionMonitorTestConfiguration object itself.

withSuccessThreshold

public ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)

Set 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 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 frequency of test evaluation, in seconds.

Parameters:

testFrequencySec - the testFrequencySec value to set

Returns:

the ConnectionMonitorTestConfiguration object itself.

Applies to