Creates a new instance of the {MigrationBandwidth} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [MigrationBandwidthAssignmentMethod] :assignment_method The value of attribute `assignment_method`.
@option opts [Integer] :custom_value The value of attribute `custom_value`.
# File lib/ovirtsdk4/types.rb, line 7181 def initialize(opts = {}) super(opts) self.assignment_method = opts[:assignment_method] self.custom_value = opts[:custom_value] end
Returns the value of the `assignment_method` attribute.
@return [MigrationBandwidthAssignmentMethod]
# File lib/ovirtsdk4/types.rb, line 7138 def assignment_method return @assignment_method end
Sets the value of the `assignment_method` attribute.
@param value [MigrationBandwidthAssignmentMethod]
# File lib/ovirtsdk4/types.rb, line 7147 def assignment_method=(value) @assignment_method = value end
Returns the value of the `custom_value` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 7156 def custom_value return @custom_value end
Sets the value of the `custom_value` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 7165 def custom_value=(value) @custom_value = value end