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

package com.azure.resourcemanager.automation.models;

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

/** Gets or sets the state of the configuration. */
public final class DscConfigurationState extends ExpandableStringEnum<DscConfigurationState> {
    /** Static value New for DscConfigurationState. */
    public static final DscConfigurationState NEW = fromString("New");

    /** Static value Edit for DscConfigurationState. */
    public static final DscConfigurationState EDIT = fromString("Edit");

    /** Static value Published for DscConfigurationState. */
    public static final DscConfigurationState PUBLISHED = fromString("Published");

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

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