# 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::Support::Mgmt::V2020_04_01
  module Models
    #
    # Service Level Agreement details for a support ticket.
    #
    class ServiceLevelAgreement

      include MsRestAzure

      # @return [DateTime] Time in UTC (ISO 8601 format) when the service level
      # agreement starts.
      attr_accessor :start_time

      # @return [DateTime] Time in UTC (ISO 8601 format) when the service level
      # agreement expires.
      attr_accessor :expiration_time

      # @return [Integer] Service Level Agreement in minutes.
      attr_accessor :sla_minutes


      #
      # Mapper for ServiceLevelAgreement class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServiceLevelAgreement',
          type: {
            name: 'Composite',
            class_name: 'ServiceLevelAgreement',
            model_properties: {
              start_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'startTime',
                type: {
                  name: 'DateTime'
                }
              },
              expiration_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'expirationTime',
                type: {
                  name: 'DateTime'
                }
              },
              sla_minutes: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'slaMinutes',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
