# 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::CostManagement::Mgmt::V2019_04_01_preview
  module Models
    #
    # Each KPI must contain a 'type' and 'enabled' key.
    #
    class KpiProperties

      include MsRestAzure

      # @return [KpiTypeType] KPI type (Forecast, Budget). Possible values
      # include: 'Forecast', 'Budget'
      attr_accessor :type

      # @return [String] ID of resource related to metric (budget).
      attr_accessor :id

      # @return [Boolean] show the KPI in the UI?
      attr_accessor :enabled


      #
      # Mapper for KpiProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'KpiProperties',
          type: {
            name: 'Composite',
            class_name: 'KpiProperties',
            model_properties: {
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enabled',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
