public final class ConnectionMonitorTestConfiguration extends Object
| Constructor and Description |
|---|
ConnectionMonitorTestConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
public String name()
public ConnectionMonitorTestConfiguration withName(String name)
name - the name value to set.public Integer testFrequencySec()
public ConnectionMonitorTestConfiguration withTestFrequencySec(Integer testFrequencySec)
testFrequencySec - the testFrequencySec value to set.public ConnectionMonitorTestConfigurationProtocol protocol()
public ConnectionMonitorTestConfiguration withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)
protocol - the protocol value to set.public PreferredIpVersion preferredIpVersion()
public ConnectionMonitorTestConfiguration withPreferredIpVersion(PreferredIpVersion preferredIpVersion)
preferredIpVersion - the preferredIpVersion value to set.public ConnectionMonitorHttpConfiguration httpConfiguration()
public ConnectionMonitorTestConfiguration withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)
httpConfiguration - the httpConfiguration value to set.public ConnectionMonitorTcpConfiguration tcpConfiguration()
public ConnectionMonitorTestConfiguration withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)
tcpConfiguration - the tcpConfiguration value to set.public ConnectionMonitorIcmpConfiguration icmpConfiguration()
public ConnectionMonitorTestConfiguration withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)
icmpConfiguration - the icmpConfiguration value to set.public ConnectionMonitorSuccessThreshold successThreshold()
public ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)
successThreshold - the successThreshold value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.