# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Network::Mgmt::V2020_07_01
  module Models
    #
    # Describes the TCP configuration.
    #
    class ConnectionMonitorTcpConfiguration

      include MsRestAzure

      # @return [Integer] The port to connect to.
      attr_accessor :port

      # @return [Boolean] Value indicating whether path evaluation with trace
      # route should be disabled.
      attr_accessor :disable_trace_route

      # @return [DestinationPortBehavior] Destination port behavior. Possible
      # values include: 'None', 'ListenIfAvailable'
      attr_accessor :destination_port_behavior


      #
      # Mapper for ConnectionMonitorTcpConfiguration class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConnectionMonitorTcpConfiguration',
          type: {
            name: 'Composite',
            class_name: 'ConnectionMonitorTcpConfiguration',
            model_properties: {
              port: {
                client_side_validation: true,
                required: false,
                serialized_name: 'port',
                constraints: {
                  InclusiveMaximum: 65535,
                  InclusiveMinimum: 0
                },
                type: {
                  name: 'Number'
                }
              },
              disable_trace_route: {
                client_side_validation: true,
                required: false,
                serialized_name: 'disableTraceRoute',
                type: {
                  name: 'Boolean'
                }
              },
              destination_port_behavior: {
                client_side_validation: true,
                required: false,
                serialized_name: 'destinationPortBehavior',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
