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

package com.azure.resourcemanager.devhub.models;

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

/** The status of the Pull Request submitted against the users repository. */
public final class PullRequestStatus extends ExpandableStringEnum<PullRequestStatus> {
    /** Static value unknown for PullRequestStatus. */
    public static final PullRequestStatus UNKNOWN = fromString("unknown");

    /** Static value submitted for PullRequestStatus. */
    public static final PullRequestStatus SUBMITTED = fromString("submitted");

    /** Static value merged for PullRequestStatus. */
    public static final PullRequestStatus MERGED = fromString("merged");

    /** Static value removed for PullRequestStatus. */
    public static final PullRequestStatus REMOVED = fromString("removed");

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

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

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