# 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::ADHybridHealthService::Mgmt::V2014_01_01
  module Models
    #
    # The connector connection error.
    #
    class ConnectorConnectionError

      include MsRestAzure

      # @return [String] The error Id.
      attr_accessor :id

      # @return [String] The run step result Id.
      attr_accessor :run_step_result_id

      # @return [String] The connector Id.
      attr_accessor :connector_id

      # @return [String] The type of error.
      attr_accessor :type

      # @return [String] The error code.
      attr_accessor :error_code

      # @return [String] The message for the connection error.
      attr_accessor :message

      # @return [DateTime] The time when the connection error occurred.
      attr_accessor :time_occured

      # @return [String] The server where the connection error happened.
      attr_accessor :server


      #
      # Mapper for ConnectorConnectionError class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConnectorConnectionError',
          type: {
            name: 'Composite',
            class_name: 'ConnectorConnectionError',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              run_step_result_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'runStepResultId',
                type: {
                  name: 'String'
                }
              },
              connector_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'connectorId',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              error_code: {
                client_side_validation: true,
                required: false,
                serialized_name: 'errorCode',
                type: {
                  name: 'String'
                }
              },
              message: {
                client_side_validation: true,
                required: false,
                serialized_name: 'message',
                type: {
                  name: 'String'
                }
              },
              time_occured: {
                client_side_validation: true,
                required: false,
                serialized_name: 'timeOccured',
                type: {
                  name: 'DateTime'
                }
              },
              server: {
                client_side_validation: true,
                required: false,
                serialized_name: 'server',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
