Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.batch; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue;
Defines values for PoolProvisioningState.
/** * Defines values for PoolProvisioningState. */
public enum PoolProvisioningState {
The pool is available to run tasks subject to the availability of compute nodes.
/** The pool is available to run tasks subject to the availability of compute nodes. */
SUCCEEDED("Succeeded"),
The user has requested that the pool be deleted, but the delete operation has not yet completed.
/** The user has requested that the pool be deleted, but the delete operation has not yet completed. */
DELETING("Deleting");
The actual serialized value for a PoolProvisioningState instance.
/** The actual serialized value for a PoolProvisioningState instance. */
private String value; PoolProvisioningState(String value) { this.value = value; }
Parses a serialized value to a PoolProvisioningState instance.
Params:
  • value – the serialized value to parse.
Returns:the parsed PoolProvisioningState object, or null if unable to parse.
/** * Parses a serialized value to a PoolProvisioningState instance. * * @param value the serialized value to parse. * @return the parsed PoolProvisioningState object, or null if unable to parse. */
@JsonCreator public static PoolProvisioningState fromString(String value) { PoolProvisioningState[] items = PoolProvisioningState.values(); for (PoolProvisioningState item : items) { if (item.toString().equalsIgnoreCase(value)) { return item; } } return null; } @JsonValue @Override public String toString() { return this.value; } }