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

package com.azure.resourcemanager.postgresqlflexibleserver.models;

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

/** A value indicating whether Geo-Redundant backup is enabled on the server. */
public final class GeoRedundantBackupEnum extends ExpandableStringEnum<GeoRedundantBackupEnum> {
    /** Static value Enabled for GeoRedundantBackupEnum. */
    public static final GeoRedundantBackupEnum ENABLED = fromString("Enabled");

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

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

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

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