# 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::DataBox::Mgmt::V2018_01_01
  module Models
    #
    # Contact Details.
    #
    class ContactDetails

      include MsRestAzure

      # @return [String] Contact name of the person.
      attr_accessor :contact_name

      # @return [String] Phone number of the contact person.
      attr_accessor :phone

      # @return [String] Phone extension number of the contact person.
      attr_accessor :phone_extension

      # @return [String] Mobile number of the contact person.
      attr_accessor :mobile

      # @return [Array<String>] List of Email-ids to be notified about job
      # progress.
      attr_accessor :email_list

      # @return [Array<NotificationPreference>] Notification preference for a
      # job stage.
      attr_accessor :notification_preference


      #
      # Mapper for ContactDetails class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ContactDetails',
          type: {
            name: 'Composite',
            class_name: 'ContactDetails',
            model_properties: {
              contact_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'contactName',
                type: {
                  name: 'String'
                }
              },
              phone: {
                client_side_validation: true,
                required: true,
                serialized_name: 'phone',
                type: {
                  name: 'String'
                }
              },
              phone_extension: {
                client_side_validation: true,
                required: false,
                serialized_name: 'phoneExtension',
                type: {
                  name: 'String'
                }
              },
              mobile: {
                client_side_validation: true,
                required: false,
                serialized_name: 'mobile',
                type: {
                  name: 'String'
                }
              },
              email_list: {
                client_side_validation: true,
                required: true,
                serialized_name: 'emailList',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              notification_preference: {
                client_side_validation: true,
                required: false,
                serialized_name: 'notificationPreference',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'NotificationPreferenceElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'NotificationPreference'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
