ConnectionMonitorTestConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ConnectionMonitorTestConfiguration
- com.
Implements
public final class ConnectionMonitorTestConfiguration
implements JsonSerializable<ConnectionMonitorTestConfiguration>
Describes a connection monitor test configuration.
Constructor Summary
Constructor | Description |
---|---|
ConnectionMonitorTestConfiguration() |
Creates an instance of Connection |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
Connection |
httpConfiguration()
Get the http |
Connection |
icmpConfiguration()
Get the icmp |
String |
name()
Get the name property: The name of the connection monitor test configuration. |
Preferred |
preferredIpVersion()
Get the preferred |
Connection |
protocol()
Get the protocol property: The protocol to use in test evaluation. |
Connection |
successThreshold()
Get the success |
Connection |
tcpConfiguration()
Get the tcp |
Integer |
testFrequencySec()
Get the test |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Connection |
withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)
Set the http |
Connection |
withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)
Set the icmp |
Connection |
withName(String name)
Set the name property: The name of the connection monitor test configuration. |
Connection |
withPreferredIpVersion(PreferredIpVersion preferredIpVersion)
Set the preferred |
Connection |
withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)
Set the protocol property: The protocol to use in test evaluation. |
Connection |
withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)
Set the success |
Connection |
withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)
Set the tcp |
Connection |
withTestFrequencySec(Integer testFrequencySec)
Set the test |
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:
Returns:
Throws:
httpConfiguration
public ConnectionMonitorHttpConfiguration httpConfiguration()
Get the httpConfiguration property: The parameters used to perform test evaluation over HTTP.
Returns:
icmpConfiguration
public ConnectionMonitorIcmpConfiguration icmpConfiguration()
Get the icmpConfiguration property: The parameters used to perform test evaluation over ICMP.
Returns:
name
public String name()
Get the name property: The name of the connection monitor test configuration.
Returns:
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:
protocol
public ConnectionMonitorTestConfigurationProtocol protocol()
Get the protocol property: The protocol to use in test evaluation.
Returns:
successThreshold
public ConnectionMonitorSuccessThreshold successThreshold()
Get the successThreshold property: The threshold for declaring a test successful.
Returns:
tcpConfiguration
public ConnectionMonitorTcpConfiguration tcpConfiguration()
Get the tcpConfiguration property: The parameters used to perform test evaluation over TCP.
Returns:
testFrequencySec
public Integer testFrequencySec()
Get the testFrequencySec property: The frequency of test evaluation, in seconds.
Returns:
toJson
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:
Returns:
withIcmpConfiguration
public ConnectionMonitorTestConfiguration withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)
Set the icmpConfiguration property: The parameters used to perform test evaluation over ICMP.
Parameters:
Returns:
withName
public ConnectionMonitorTestConfiguration withName(String name)
Set the name property: The name of the connection monitor test configuration.
Parameters:
Returns:
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:
Returns:
withProtocol
public ConnectionMonitorTestConfiguration withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)
Set the protocol property: The protocol to use in test evaluation.
Parameters:
Returns:
withSuccessThreshold
public ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)
Set the successThreshold property: The threshold for declaring a test successful.
Parameters:
Returns:
withTcpConfiguration
public ConnectionMonitorTestConfiguration withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)
Set the tcpConfiguration property: The parameters used to perform test evaluation over TCP.
Parameters:
Returns:
withTestFrequencySec
public ConnectionMonitorTestConfiguration withTestFrequencySec(Integer testFrequencySec)
Set the testFrequencySec property: The frequency of test evaluation, in seconds.
Parameters:
Returns:
Applies to
Azure SDK for Java