# 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::Web::Mgmt::V2018_02_01
  module Models
    #
    # Virtual IP mapping.
    #
    class VirtualIPMapping

      include MsRestAzure

      # @return [String] Virtual IP address.
      attr_accessor :virtual_ip

      # @return [Integer] Internal HTTP port.
      attr_accessor :internal_http_port

      # @return [Integer] Internal HTTPS port.
      attr_accessor :internal_https_port

      # @return [Boolean] Is virtual IP mapping in use.
      attr_accessor :in_use


      #
      # Mapper for VirtualIPMapping class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'VirtualIPMapping',
          type: {
            name: 'Composite',
            class_name: 'VirtualIPMapping',
            model_properties: {
              virtual_ip: {
                client_side_validation: true,
                required: false,
                serialized_name: 'virtualIP',
                type: {
                  name: 'String'
                }
              },
              internal_http_port: {
                client_side_validation: true,
                required: false,
                serialized_name: 'internalHttpPort',
                type: {
                  name: 'Number'
                }
              },
              internal_https_port: {
                client_side_validation: true,
                required: false,
                serialized_name: 'internalHttpsPort',
                type: {
                  name: 'Number'
                }
              },
              in_use: {
                client_side_validation: true,
                required: false,
                serialized_name: 'inUse',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
