// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package client.naming.unionenum.models;

import com.azure.core.annotation.Generated;
import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/**
 * Defines values for ExtensibleEnum.
 */
public final class ExtensibleEnum extends ExpandableStringEnum<ExtensibleEnum> {
    /**
     * Static value value1 for ExtensibleEnum.
     */
    @Generated
    public static final ExtensibleEnum CLIENT_ENUM_VALUE1 = fromString("value1");

    /**
     * Static value value2 for ExtensibleEnum.
     */
    @Generated
    public static final ExtensibleEnum CLIENT_ENUM_VALUE2 = fromString("value2");

    /**
     * Creates a new instance of ExtensibleEnum value.
     * 
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Generated
    @Deprecated
    public ExtensibleEnum() {
    }

    /**
     * Creates or finds a ExtensibleEnum from its string representation.
     * 
     * @param name a name to look for.
     * @return the corresponding ExtensibleEnum.
     */
    @Generated
    public static ExtensibleEnum fromString(String name) {
        return fromString(name, ExtensibleEnum.class);
    }

    /**
     * Gets known ExtensibleEnum values.
     * 
     * @return known ExtensibleEnum values.
     */
    @Generated
    public static Collection<ExtensibleEnum> values() {
        return values(ExtensibleEnum.class);
    }
}
