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

package com.azure.resourcemanager.devcenter.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Indicates whether the environment type is either enabled or disabled. */
public final class EnvironmentTypeEnableStatus extends ExpandableStringEnum<EnvironmentTypeEnableStatus> {
    /** Static value Enabled for EnvironmentTypeEnableStatus. */
    public static final EnvironmentTypeEnableStatus ENABLED = fromString("Enabled");

    /** Static value Disabled for EnvironmentTypeEnableStatus. */
    public static final EnvironmentTypeEnableStatus DISABLED = fromString("Disabled");

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

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

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