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

const (
    UNKNOWN_SECURITYRESOURCETYPE SecurityResourceType = iota
    ATTACKED_SECURITYRESOURCETYPE
    RELATED_SECURITYRESOURCETYPE
    UNKNOWNFUTUREVALUE_SECURITYRESOURCETYPE
)

func (i SecurityResourceType) String() string {
    return []string{"unknown", "attacked", "related", "unknownFutureValue"}[i]
}
func ParseSecurityResourceType(v string) (any, error) {
    result := UNKNOWN_SECURITYRESOURCETYPE
    switch v {
        case "unknown":
            result = UNKNOWN_SECURITYRESOURCETYPE
        case "attacked":
            result = ATTACKED_SECURITYRESOURCETYPE
        case "related":
            result = RELATED_SECURITYRESOURCETYPE
        case "unknownFutureValue":
            result = UNKNOWNFUTUREVALUE_SECURITYRESOURCETYPE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeSecurityResourceType(values []SecurityResourceType) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i SecurityResourceType) isMultiValue() bool {
    return false
}
