# 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::Cosmosdb::Mgmt::V2021_01_15
  module Models
    #
    # Cosmos DB resource throughput policy
    #
    class ThroughputPolicyResource

      include MsRestAzure

      # @return [Boolean] Determines whether the ThroughputPolicy is active or
      # not
      attr_accessor :is_enabled

      # @return [Integer] Represents the percentage by which throughput can
      # increase every time throughput policy kicks in.
      attr_accessor :increment_percent


      #
      # Mapper for ThroughputPolicyResource class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ThroughputPolicyResource',
          type: {
            name: 'Composite',
            class_name: 'ThroughputPolicyResource',
            model_properties: {
              is_enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'isEnabled',
                type: {
                  name: 'Boolean'
                }
              },
              increment_percent: {
                client_side_validation: true,
                required: false,
                serialized_name: 'incrementPercent',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
