com.azure.resourcemanager.costmanagement.models.CheckNameAvailabilityReason Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-costmanagement Show documentation
Show all versions of azure-resourcemanager-costmanagement Show documentation
This package contains Microsoft Azure SDK for CostManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. CostManagement management client provides access to CostManagement resources for Azure Enterprise Subscriptions. Package tag package-2022-10.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.costmanagement.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/** The reason why the given name is not available. */
public final class CheckNameAvailabilityReason extends ExpandableStringEnum {
/** Static value Invalid for CheckNameAvailabilityReason. */
public static final CheckNameAvailabilityReason INVALID = fromString("Invalid");
/** Static value AlreadyExists for CheckNameAvailabilityReason. */
public static final CheckNameAvailabilityReason ALREADY_EXISTS = fromString("AlreadyExists");
/**
* Creates a new instance of CheckNameAvailabilityReason value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public CheckNameAvailabilityReason() {
}
/**
* Creates or finds a CheckNameAvailabilityReason from its string representation.
*
* @param name a name to look for.
* @return the corresponding CheckNameAvailabilityReason.
*/
@JsonCreator
public static CheckNameAvailabilityReason fromString(String name) {
return fromString(name, CheckNameAvailabilityReason.class);
}
/**
* Gets known CheckNameAvailabilityReason values.
*
* @return known CheckNameAvailabilityReason values.
*/
public static Collection values() {
return values(CheckNameAvailabilityReason.class);
}
}