/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.vision.customvision.training.models;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
 * Defines values for DomainType.
 */
public final class DomainType extends ExpandableStringEnum<DomainType> {
    /** Static value Classification for DomainType. */
    public static final DomainType CLASSIFICATION = fromString("Classification");

    /** Static value ObjectDetection for DomainType. */
    public static final DomainType OBJECT_DETECTION = fromString("ObjectDetection");

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

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