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

package com.azure.resourcemanager.iotcentral.models;

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

/** Defines values for AppState. */
public final class AppState extends ExpandableStringEnum<AppState> {
    /** Static value created for AppState. */
    public static final AppState CREATED = fromString("created");

    /** Static value suspended for AppState. */
    public static final AppState SUSPENDED = fromString("suspended");

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

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