
com.azure.resourcemanager.deviceupdate.models.Role Maven / Gradle / Ivy
// 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 java.util.Collection;
/**
* Whether the location is primary or failover.
*/
public final class Role extends ExpandableStringEnum {
/**
* 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 a new instance of Role value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public Role() {
}
/**
* Creates or finds a Role from its string representation.
*
* @param name a name to look for.
* @return the corresponding Role.
*/
public static Role fromString(String name) {
return fromString(name, Role.class);
}
/**
* Gets known Role values.
*
* @return known Role values.
*/
public static Collection values() {
return values(Role.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy