// 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 RejectReason int

const (
    NONE_REJECTREASON RejectReason = iota
    BUSY_REJECTREASON
    FORBIDDEN_REJECTREASON
    UNKNOWNFUTUREVALUE_REJECTREASON
)

func (i RejectReason) String() string {
    return []string{"none", "busy", "forbidden", "unknownFutureValue"}[i]
}
func ParseRejectReason(v string) (any, error) {
    result := NONE_REJECTREASON
    switch v {
        case "none":
            result = NONE_REJECTREASON
        case "busy":
            result = BUSY_REJECTREASON
        case "forbidden":
            result = FORBIDDEN_REJECTREASON
        case "unknownFutureValue":
            result = UNKNOWNFUTUREVALUE_REJECTREASON
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeRejectReason(values []RejectReason) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i RejectReason) isMultiValue() bool {
    return false
}
