com.azure.resourcemanager.search.models.ProvisioningState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-search Show documentation
Show all versions of azure-resourcemanager-search Show documentation
This package contains Microsoft Azure Cognitive Search Management SDK. For documentation on how to use this package, please see https://aka.ms/azure-sdk-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.search.models;
/**
* The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state
* that occurs while service capacity is being established. After capacity is set up, provisioningState changes to
* either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is
* from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If
* you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search
* service. This is because the free service uses capacity that is already set up.
*/
public enum ProvisioningState {
/**
* Enum value succeeded.
*/
SUCCEEDED("succeeded"),
/**
* Enum value provisioning.
*/
PROVISIONING("provisioning"),
/**
* Enum value failed.
*/
FAILED("failed");
/**
* The actual serialized value for a ProvisioningState instance.
*/
private final String value;
ProvisioningState(String value) {
this.value = value;
}
/**
* Parses a serialized value to a ProvisioningState instance.
*
* @param value the serialized value to parse.
* @return the parsed ProvisioningState object, or null if unable to parse.
*/
public static ProvisioningState fromString(String value) {
if (value == null) {
return null;
}
ProvisioningState[] items = ProvisioningState.values();
for (ProvisioningState item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return this.value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy