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

package type.model.inheritance.enumdiscriminator.models;

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

/**
 * extensible enum type for discriminator.
 */
public final class DogKind extends ExpandableStringEnum<DogKind> {
    /**
     * Species golden.
     */
    @Generated
    public static final DogKind GOLDEN = fromString("golden");

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

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

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