# 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::ServiceFabric::V6_3_0_9
  module Models
    #
    # A container event.
    #
    class ContainerEvent

      include MsRestAzure

      # @return [String] The name of the container event.
      attr_accessor :name

      # @return [Integer] The count of the event.
      attr_accessor :count

      # @return [String] Date/time of the first event.
      attr_accessor :first_timestamp

      # @return [String] Date/time of the last event.
      attr_accessor :last_timestamp

      # @return [String] The event message
      attr_accessor :message

      # @return [String] The event type.
      attr_accessor :type


      #
      # Mapper for ContainerEvent class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ContainerEvent',
          type: {
            name: 'Composite',
            class_name: 'ContainerEvent',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'count',
                type: {
                  name: 'Number'
                }
              },
              first_timestamp: {
                client_side_validation: true,
                required: false,
                serialized_name: 'firstTimestamp',
                type: {
                  name: 'String'
                }
              },
              last_timestamp: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lastTimestamp',
                type: {
                  name: 'String'
                }
              },
              message: {
                client_side_validation: true,
                required: false,
                serialized_name: 'message',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
