com.azure.resourcemanager.mongocluster.models.PromoteMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-mongocluster Show documentation
Show all versions of azure-resourcemanager-mongocluster Show documentation
This package contains Microsoft Azure SDK for Mongo Cluster Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure Cosmos DB for MongoDB vCore resources including clusters and firewall rules.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.mongocluster.models;
import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;
/**
* The mode to apply to a promote operation.
*/
public final class PromoteMode extends ExpandableStringEnum {
/**
* Static value Switchover for PromoteMode.
*/
public static final PromoteMode SWITCHOVER = fromString("Switchover");
/**
* Creates a new instance of PromoteMode value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public PromoteMode() {
}
/**
* Creates or finds a PromoteMode from its string representation.
*
* @param name a name to look for.
* @return the corresponding PromoteMode.
*/
public static PromoteMode fromString(String name) {
return fromString(name, PromoteMode.class);
}
/**
* Gets known PromoteMode values.
*
* @return known PromoteMode values.
*/
public static Collection values() {
return values(PromoteMode.class);
}
}