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

package tsptest.multipart.models;

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

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

    /**
     * Static value PNG for ImageType.
     */
    @Generated
    public static final ImageType PNG = fromString("PNG");

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

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

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