# 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::Monitor::Mgmt::V2019_06_01
  module Models
    #
    # An email receiver.
    #
    class EmailReceiver

      include MsRestAzure

      # @return [String] The name of the email receiver. Names must be unique
      # across all receivers within an action group.
      attr_accessor :name

      # @return [String] The email address of this receiver.
      attr_accessor :email_address

      # @return [Boolean] Indicates whether to use common alert schema.
      attr_accessor :use_common_alert_schema

      # @return [ReceiverStatus] The receiver status of the e-mail. Possible
      # values include: 'NotSpecified', 'Enabled', 'Disabled'
      attr_accessor :status


      #
      # Mapper for EmailReceiver class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'EmailReceiver',
          type: {
            name: 'Composite',
            class_name: 'EmailReceiver',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              email_address: {
                client_side_validation: true,
                required: true,
                serialized_name: 'emailAddress',
                type: {
                  name: 'String'
                }
              },
              use_common_alert_schema: {
                client_side_validation: true,
                required: true,
                serialized_name: 'useCommonAlertSchema',
                type: {
                  name: 'Boolean'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'status',
                type: {
                  name: 'Enum',
                  module: 'ReceiverStatus'
                }
              }
            }
          }
        }
      end
    end
  end
end
