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

const (
    CHECKPOLICY_THREATASSESSMENTRESULTTYPE ThreatAssessmentResultType = iota
    RESCAN_THREATASSESSMENTRESULTTYPE
    UNKNOWNFUTUREVALUE_THREATASSESSMENTRESULTTYPE
)

func (i ThreatAssessmentResultType) String() string {
    return []string{"checkPolicy", "rescan", "unknownFutureValue"}[i]
}
func ParseThreatAssessmentResultType(v string) (any, error) {
    result := CHECKPOLICY_THREATASSESSMENTRESULTTYPE
    switch v {
        case "checkPolicy":
            result = CHECKPOLICY_THREATASSESSMENTRESULTTYPE
        case "rescan":
            result = RESCAN_THREATASSESSMENTRESULTTYPE
        case "unknownFutureValue":
            result = UNKNOWNFUTUREVALUE_THREATASSESSMENTRESULTTYPE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeThreatAssessmentResultType(values []ThreatAssessmentResultType) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i ThreatAssessmentResultType) isMultiValue() bool {
    return false
}
