# 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::Web::Mgmt::V2020_09_01
  module Models
    #
    # Class representing Abnormal Time Period identified in diagnosis
    #
    class AbnormalTimePeriod

      include MsRestAzure

      # @return [DateTime] Start time of the downtime
      attr_accessor :start_time

      # @return [DateTime] End time of the downtime
      attr_accessor :end_time

      # @return [Array<DetectorAbnormalTimePeriod>] List of Possible Cause of
      # downtime
      attr_accessor :events

      # @return [Array<Solution>] List of proposed solutions
      attr_accessor :solutions


      #
      # Mapper for AbnormalTimePeriod class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AbnormalTimePeriod',
          type: {
            name: 'Composite',
            class_name: 'AbnormalTimePeriod',
            model_properties: {
              start_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'startTime',
                type: {
                  name: 'DateTime'
                }
              },
              end_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'endTime',
                type: {
                  name: 'DateTime'
                }
              },
              events: {
                client_side_validation: true,
                required: false,
                serialized_name: 'events',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'DetectorAbnormalTimePeriodElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'DetectorAbnormalTimePeriod'
                      }
                  }
                }
              },
              solutions: {
                client_side_validation: true,
                required: false,
                serialized_name: 'solutions',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'SolutionElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Solution'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
