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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/**
 * A value indicating whether the VM has a physical disk attached. String value of SrsDataContract.PresenceStatus enum.
 */
public final class PresenceStatus extends ExpandableStringEnum<PresenceStatus> {
    /** Static value Unknown for PresenceStatus. */
    public static final PresenceStatus UNKNOWN = fromString("Unknown");

    /** Static value Present for PresenceStatus. */
    public static final PresenceStatus PRESENT = fromString("Present");

    /** Static value NotPresent for PresenceStatus. */
    public static final PresenceStatus NOT_PRESENT = fromString("NotPresent");

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

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

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