# 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::SQL::Mgmt::V2014_04_01
  module Models
    #
    # The impact of an operation, both in absolute and relative terms.
    #
    class OperationImpact

      include MsRestAzure

      # @return [String] The name of the impact dimension.
      attr_accessor :name

      # @return [String] The unit in which estimated impact to dimension is
      # measured.
      attr_accessor :unit

      # @return [Float] The absolute impact to dimension.
      attr_accessor :change_value_absolute

      # @return [Float] The relative impact to dimension (null if not
      # applicable)
      attr_accessor :change_value_relative


      #
      # Mapper for OperationImpact class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'OperationImpact',
          type: {
            name: 'Composite',
            class_name: 'OperationImpact',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              unit: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'unit',
                type: {
                  name: 'String'
                }
              },
              change_value_absolute: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'changeValueAbsolute',
                type: {
                  name: 'Double'
                }
              },
              change_value_relative: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'changeValueRelative',
                type: {
                  name: 'Double'
                }
              }
            }
          }
        }
      end
    end
  end
end
