# 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::Sqlvirtualmachine::Mgmt::V2017_03_01_preview
  module Models
    #
    # A load balancer configuration for an availability group listener.
    #
    class LoadBalancerConfiguration

      include MsRestAzure

      # @return [PrivateIPAddress] Private IP address.
      attr_accessor :private_ip_address

      # @return [String] Resource id of the public IP.
      attr_accessor :public_ip_address_resource_id

      # @return [String] Resource id of the load balancer.
      attr_accessor :load_balancer_resource_id

      # @return [Integer] Probe port.
      attr_accessor :probe_port

      # @return [Array<String>] List of the SQL virtual machine instance
      # resource id's that are enrolled into the availability group listener.
      attr_accessor :sql_virtual_machine_instances


      #
      # Mapper for LoadBalancerConfiguration class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'LoadBalancerConfiguration',
          type: {
            name: 'Composite',
            class_name: 'LoadBalancerConfiguration',
            model_properties: {
              private_ip_address: {
                client_side_validation: true,
                required: false,
                serialized_name: 'privateIpAddress',
                type: {
                  name: 'Composite',
                  class_name: 'PrivateIPAddress'
                }
              },
              public_ip_address_resource_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'publicIpAddressResourceId',
                type: {
                  name: 'String'
                }
              },
              load_balancer_resource_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'loadBalancerResourceId',
                type: {
                  name: 'String'
                }
              },
              probe_port: {
                client_side_validation: true,
                required: false,
                serialized_name: 'probePort',
                type: {
                  name: 'Number'
                }
              },
              sql_virtual_machine_instances: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sqlVirtualMachineInstances',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
