Class ConnectionMonitorTestConfiguration
java.lang.Object
com.microsoft.azure.management.network.ConnectionMonitorTestConfiguration
Describes a connection monitor test configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the parameters used to perform test evaluation over HTTP.Get the parameters used to perform test evaluation over ICMP.name()
Get the name of the connection monitor test configuration.Get the preferred IP version to use in test evaluation.protocol()
Get the protocol to use in test evaluation.Get the threshold for declaring a test successful.Get the parameters used to perform test evaluation over TCP.Get the frequency of test evaluation, in seconds.withHttpConfiguration
(ConnectionMonitorHttpConfiguration httpConfiguration) Set the parameters used to perform test evaluation over HTTP.withIcmpConfiguration
(ConnectionMonitorIcmpConfiguration icmpConfiguration) Set the parameters used to perform test evaluation over ICMP.Set the name of the connection monitor test configuration.withPreferredIPVersion
(PreferredIPVersion preferredIPVersion) Set the preferred IP version to use in test evaluation.Set the protocol to use in test evaluation.withSuccessThreshold
(ConnectionMonitorSuccessThreshold successThreshold) Set the threshold for declaring a test successful.withTcpConfiguration
(ConnectionMonitorTcpConfiguration tcpConfiguration) Set the parameters used to perform test evaluation over TCP.withTestFrequencySec
(Integer testFrequencySec) Set the frequency of test evaluation, in seconds.
-
Constructor Details
-
ConnectionMonitorTestConfiguration
public ConnectionMonitorTestConfiguration()
-
-
Method Details
-
name
Get the name of the connection monitor test configuration.- Returns:
- the name value
-
withName
Set the name of the connection monitor test configuration.- Parameters:
name
- the name value to set- Returns:
- the ConnectionMonitorTestConfiguration object itself.
-
testFrequencySec
Get the frequency of test evaluation, in seconds.- Returns:
- the testFrequencySec value
-
withTestFrequencySec
Set the frequency of test evaluation, in seconds.- Parameters:
testFrequencySec
- the testFrequencySec value to set- Returns:
- the ConnectionMonitorTestConfiguration object itself.
-
protocol
Get the protocol to use in test evaluation. Possible values include: 'Tcp', 'Http', 'Icmp'.- Returns:
- the protocol value
-
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.
-
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
-
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.
-
httpConfiguration
Get the parameters used to perform test evaluation over HTTP.- Returns:
- the httpConfiguration 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.
-
tcpConfiguration
Get the parameters used to perform test evaluation over TCP.- Returns:
- the tcpConfiguration value
-
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.
-
icmpConfiguration
Get the parameters used to perform test evaluation over ICMP.- Returns:
- the icmpConfiguration value
-
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.
-
successThreshold
Get the threshold for declaring a test successful.- Returns:
- the successThreshold value
-
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.
-