com.azure.resourcemanager.cosmos.models.CreateMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-cosmos Show documentation
Show all versions of azure-resourcemanager-cosmos Show documentation
This package contains Microsoft Azure CosmosDB SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.cosmos.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
* Enum to indicate the mode of account creation.
*/
public final class CreateMode extends ExpandableStringEnum {
/**
* Static value Default for CreateMode.
*/
public static final CreateMode DEFAULT = fromString("Default");
/**
* Static value Restore for CreateMode.
*/
public static final CreateMode RESTORE = fromString("Restore");
/**
* Creates a new instance of CreateMode value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public CreateMode() {
}
/**
* Creates or finds a CreateMode from its string representation.
*
* @param name a name to look for.
* @return the corresponding CreateMode.
*/
@JsonCreator
public static CreateMode fromString(String name) {
return fromString(name, CreateMode.class);
}
/**
* Gets known CreateMode values.
*
* @return known CreateMode values.
*/
public static Collection values() {
return values(CreateMode.class);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy