// 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 for pre-release features.
type PrereleaseFeatures int

const (
    // User Defined, default value, no intent.
    USERDEFINED_PRERELEASEFEATURES PrereleaseFeatures = iota
    // Settings only pre-release features.
    SETTINGSONLY_PRERELEASEFEATURES
    // Settings and experimentations pre-release features.
    SETTINGSANDEXPERIMENTATIONS_PRERELEASEFEATURES
    // Pre-release features not allowed.
    NOTALLOWED_PRERELEASEFEATURES
)

func (i PrereleaseFeatures) String() string {
    return []string{"userDefined", "settingsOnly", "settingsAndExperimentations", "notAllowed"}[i]
}
func ParsePrereleaseFeatures(v string) (any, error) {
    result := USERDEFINED_PRERELEASEFEATURES
    switch v {
        case "userDefined":
            result = USERDEFINED_PRERELEASEFEATURES
        case "settingsOnly":
            result = SETTINGSONLY_PRERELEASEFEATURES
        case "settingsAndExperimentations":
            result = SETTINGSANDEXPERIMENTATIONS_PRERELEASEFEATURES
        case "notAllowed":
            result = NOTALLOWED_PRERELEASEFEATURES
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializePrereleaseFeatures(values []PrereleaseFeatures) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i PrereleaseFeatures) isMultiValue() bool {
    return false
}
