// Code generated by Microsoft Kiota - DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

package models
// Possible values of a property
type Enablement int

const (
    // Device default value, no intent.
    NOTCONFIGURED_ENABLEMENT Enablement = iota
    // Enables the setting on the device.
    ENABLED_ENABLEMENT
    // Disables the setting on the device.
    DISABLED_ENABLEMENT
)

func (i Enablement) String() string {
    return []string{"notConfigured", "enabled", "disabled"}[i]
}
func ParseEnablement(v string) (any, error) {
    result := NOTCONFIGURED_ENABLEMENT
    switch v {
        case "notConfigured":
            result = NOTCONFIGURED_ENABLEMENT
        case "enabled":
            result = ENABLED_ENABLEMENT
        case "disabled":
            result = DISABLED_ENABLEMENT
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeEnablement(values []Enablement) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i Enablement) isMultiValue() bool {
    return false
}
