# 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::DevTestLabs::Mgmt::V2018_09_15
  module Models
    #
    # Properties of a cost threshold item.
    #
    class CostThresholdProperties

      include MsRestAzure

      # @return [String] The ID of the cost threshold item.
      attr_accessor :threshold_id

      # @return [PercentageCostThresholdProperties] The value of the percentage
      # cost threshold.
      attr_accessor :percentage_threshold

      # @return [CostThresholdStatus] Indicates whether this threshold will be
      # displayed on cost charts. Possible values include: 'Enabled',
      # 'Disabled'
      attr_accessor :display_on_chart

      # @return [CostThresholdStatus] Indicates whether notifications will be
      # sent when this threshold is exceeded. Possible values include:
      # 'Enabled', 'Disabled'
      attr_accessor :send_notification_when_exceeded

      # @return [String] Indicates the datetime when notifications were last
      # sent for this threshold.
      attr_accessor :notification_sent


      #
      # Mapper for CostThresholdProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CostThresholdProperties',
          type: {
            name: 'Composite',
            class_name: 'CostThresholdProperties',
            model_properties: {
              threshold_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'thresholdId',
                type: {
                  name: 'String'
                }
              },
              percentage_threshold: {
                client_side_validation: true,
                required: false,
                serialized_name: 'percentageThreshold',
                type: {
                  name: 'Composite',
                  class_name: 'PercentageCostThresholdProperties'
                }
              },
              display_on_chart: {
                client_side_validation: true,
                required: false,
                serialized_name: 'displayOnChart',
                type: {
                  name: 'String'
                }
              },
              send_notification_when_exceeded: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sendNotificationWhenExceeded',
                type: {
                  name: 'String'
                }
              },
              notification_sent: {
                client_side_validation: true,
                required: false,
                serialized_name: 'notificationSent',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
