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

const (
    ALWAYS_ATTRIBUTEFLOWTYPE AttributeFlowType = iota
    OBJECTADDONLY_ATTRIBUTEFLOWTYPE
    MULTIVALUEADDONLY_ATTRIBUTEFLOWTYPE
    VALUEADDONLY_ATTRIBUTEFLOWTYPE
    ATTRIBUTEADDONLY_ATTRIBUTEFLOWTYPE
)

func (i AttributeFlowType) String() string {
    return []string{"Always", "ObjectAddOnly", "MultiValueAddOnly", "ValueAddOnly", "AttributeAddOnly"}[i]
}
func ParseAttributeFlowType(v string) (any, error) {
    result := ALWAYS_ATTRIBUTEFLOWTYPE
    switch v {
        case "Always":
            result = ALWAYS_ATTRIBUTEFLOWTYPE
        case "ObjectAddOnly":
            result = OBJECTADDONLY_ATTRIBUTEFLOWTYPE
        case "MultiValueAddOnly":
            result = MULTIVALUEADDONLY_ATTRIBUTEFLOWTYPE
        case "ValueAddOnly":
            result = VALUEADDONLY_ATTRIBUTEFLOWTYPE
        case "AttributeAddOnly":
            result = ATTRIBUTEADDONLY_ATTRIBUTEFLOWTYPE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeAttributeFlowType(values []AttributeFlowType) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i AttributeFlowType) isMultiValue() bool {
    return false
}
