// 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 sync statuses associated with an Apple Volume Purchase Program token.
type VppTokenSyncStatus int

const (
    // Default status.
    NONE_VPPTOKENSYNCSTATUS VppTokenSyncStatus = iota
    // Last Sync in progress.
    INPROGRESS_VPPTOKENSYNCSTATUS
    // Last Sync completed successfully.
    COMPLETED_VPPTOKENSYNCSTATUS
    // Last Sync failed.
    FAILED_VPPTOKENSYNCSTATUS
)

func (i VppTokenSyncStatus) String() string {
    return []string{"none", "inProgress", "completed", "failed"}[i]
}
func ParseVppTokenSyncStatus(v string) (any, error) {
    result := NONE_VPPTOKENSYNCSTATUS
    switch v {
        case "none":
            result = NONE_VPPTOKENSYNCSTATUS
        case "inProgress":
            result = INPROGRESS_VPPTOKENSYNCSTATUS
        case "completed":
            result = COMPLETED_VPPTOKENSYNCSTATUS
        case "failed":
            result = FAILED_VPPTOKENSYNCSTATUS
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeVppTokenSyncStatus(values []VppTokenSyncStatus) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i VppTokenSyncStatus) isMultiValue() bool {
    return false
}
