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

package models
type OnenoteSourceService int

const (
    UNKNOWN_ONENOTESOURCESERVICE OnenoteSourceService = iota
    ONEDRIVE_ONENOTESOURCESERVICE
    ONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE
    ONPREMONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE
)

func (i OnenoteSourceService) String() string {
    return []string{"Unknown", "OneDrive", "OneDriveForBusiness", "OnPremOneDriveForBusiness"}[i]
}
func ParseOnenoteSourceService(v string) (any, error) {
    result := UNKNOWN_ONENOTESOURCESERVICE
    switch v {
        case "Unknown":
            result = UNKNOWN_ONENOTESOURCESERVICE
        case "OneDrive":
            result = ONEDRIVE_ONENOTESOURCESERVICE
        case "OneDriveForBusiness":
            result = ONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE
        case "OnPremOneDriveForBusiness":
            result = ONPREMONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeOnenoteSourceService(values []OnenoteSourceService) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i OnenoteSourceService) isMultiValue() bool {
    return false
}
