// SetIntegerValue sets the IntegerValue field's value.
543753
func (s *AcceptQualificationRequestInput) SetIntegerValue(v int64) *AcceptQualificationRequestInput {
	s.IntegerValue = &v
	return s
}
939066
func AddInteger(a uint64, b int64) (uint64, error) {
	if b >= 0 {
		return AddUint64(a, uint64(b))
	}

	if uint64(-b) > a {
		return 0, ErrOverflow.GenWithStackByArgs("BIGINT UNSIGNED", fmt.Sprintf("(%d, %d)", a, b))
	}
	return a - uint64(-b), nil
}
1240528
func (s *IntegerParameterRange) SetMinValue(v string) *IntegerParameterRange {
	s.MinValue = &v
	return s
}
1038152
func (f *fragment) setValue(columnID uint64, bitDepth uint, value uint64) (changed bool, err error) {
	return f.setValueBase(columnID, bitDepth, value, false)
}
1243459
func (s *TypedAttributeValue) SetNumberValue(v string) *TypedAttributeValue {
	s.NumberValue = &v
	return s
}
410883
func (e *ListElement) setValue(value unsafe.Pointer) {
	atomic.StorePointer(&e.value, value)
}
473926
func (c *Cell) SetValue(n interface{}) {
	var s string
	switch n.(type) {
	case time.Time:
		c.SetDateTime(n.(time.Time))
		return
	case int:
		c.setGeneral(fmt.Sprintf("%v", n))
		return
	case int32:
		c.setGeneral(fmt.Sprintf("%v", n))
		return
	case int64:
		c.setGeneral(fmt.Sprintf("%v", n))
		return
	case float32:
		c.setGeneral(fmt.Sprintf("%v", n))
		return
	case float64:
		c.setGeneral(fmt.Sprintf("%v", n))
		return
	case string:
		s = n.(string)
	case []byte:
		s = string(n.([]byte))
	case nil:
		s = ""
	default:
		s = fmt.Sprintf("%v", n)
	}
	c.SetString(s)
}
981646
func (s *QualificationRequirement) SetIntegerValues(v []*int64) *QualificationRequirement {
	s.IntegerValues = v
	return s
}
1312326
func (section *Section) SetInteger(name string, value int64) {
	current, err := section.Get(name)

	// Exists just update the value/type
	if err == nil {
		current.UpdateValue(value)
	} else {
		section.values[name] = NewInteger(value)
	}
}
1094831
func (primative *Primative) AsInteger() (int64, error) {
	switch val := primative.value.(type) {
	case bool:
		intVal := int64(0)
		if val {
			intVal = int64(1)
		}
		return intVal, nil
	case float64:
		return int64(math.Trunc(val)), nil
	case int64:
		return val, nil
	case string:
		return strconv.ParseInt(val, 10, 64)
	}

	msg := fmt.Sprintf("Could not convert value %s to type INTEGER", primative.value)
	return 0, errors.New(msg)
}
463668
func (s *IntegerParameterRangeSpecification) SetMinValue(v string) *IntegerParameterRangeSpecification {
	s.MinValue = &v
	return s
}
431055
func NewInteger(value string) (DataType, error) {
	returnValue := new(Integer)
	v, err := strconv.Atoi(value)
	returnValue.value = v
	return returnValue, err
}
740309
func (s *Scale) SetValue(v float64) *Scale {
	s.Value = &v
	return s
}
767845
func (obj *GenericVariable) SetNumValue(ctx context.Context, val Float64) error {
	err := obj.rpc(ctx, "SetNumValue", nil, val)
	return err 
}
708368
func (s *ParameterDefinition) SetMinValue(v int64) *ParameterDefinition {
	s.MinValue = &v
	return s
}
457285
func (s *HostedZoneLimit) SetValue(v int64) *HostedZoneLimit {
	s.Value = &v
	return s
}
296149
func SetDefaultInt(in int64) integerRuleOpt {
	return func(i *rpc.IntegerRule) {
		i.Default = in
		i.HasDefault = true
	}
}