# 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::AlertsManagement::Mgmt::V2019_03_01
  module Models
    #
    # The Action Groups information, used by the alert rule.
    #
    class ActionGroupsInformation

      include MsRestAzure

      # @return [String] An optional custom email subject to use in email
      # notifications.
      attr_accessor :custom_email_subject

      # @return [String] An optional custom web-hook payload to use in web-hook
      # notifications.
      attr_accessor :custom_webhook_payload

      # @return [Array<String>] The Action Group resource IDs.
      attr_accessor :group_ids


      #
      # Mapper for ActionGroupsInformation class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ActionGroupsInformation',
          type: {
            name: 'Composite',
            class_name: 'ActionGroupsInformation',
            model_properties: {
              custom_email_subject: {
                client_side_validation: true,
                required: false,
                serialized_name: 'customEmailSubject',
                type: {
                  name: 'String'
                }
              },
              custom_webhook_payload: {
                client_side_validation: true,
                required: false,
                serialized_name: 'customWebhookPayload',
                type: {
                  name: 'String'
                }
              },
              group_ids: {
                client_side_validation: true,
                required: true,
                serialized_name: 'groupIds',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
