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

package com.azure.resourcemanager.deviceupdate.models;

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

/** Whether the location is primary or failover. */
public final class Role extends ExpandableStringEnum<Role> {
    /** Static value Primary for Role. */
    public static final Role PRIMARY = fromString("Primary");

    /** Static value Failover for Role. */
    public static final Role FAILOVER = fromString("Failover");

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

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