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

const (
    CONFIGURED_CONNECTEDORGANIZATIONSTATE ConnectedOrganizationState = iota
    PROPOSED_CONNECTEDORGANIZATIONSTATE
    UNKNOWNFUTUREVALUE_CONNECTEDORGANIZATIONSTATE
)

func (i ConnectedOrganizationState) String() string {
    return []string{"configured", "proposed", "unknownFutureValue"}[i]
}
func ParseConnectedOrganizationState(v string) (any, error) {
    result := CONFIGURED_CONNECTEDORGANIZATIONSTATE
    switch v {
        case "configured":
            result = CONFIGURED_CONNECTEDORGANIZATIONSTATE
        case "proposed":
            result = PROPOSED_CONNECTEDORGANIZATIONSTATE
        case "unknownFutureValue":
            result = UNKNOWNFUTUREVALUE_CONNECTEDORGANIZATIONSTATE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeConnectedOrganizationState(values []ConnectedOrganizationState) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i ConnectedOrganizationState) isMultiValue() bool {
    return false
}
