Class ConnectionMonitorTestConfiguration

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

public class ConnectionMonitorTestConfiguration extends Object
Describes a connection monitor test configuration.
  • Constructor Details

    • ConnectionMonitorTestConfiguration

      public ConnectionMonitorTestConfiguration()
  • Method Details

    • name

      public String 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

      public Integer testFrequencySec()
      Get the frequency of test evaluation, in seconds.
      Returns:
      the testFrequencySec value
    • 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.
    • protocol

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

      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

      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
    • 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

      public ConnectionMonitorHttpConfiguration 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

      public ConnectionMonitorTcpConfiguration 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

      public ConnectionMonitorIcmpConfiguration 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

      public ConnectionMonitorSuccessThreshold 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.