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.compute;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
Defines values for OperatingSystemStateTypes.
/**
* Defines values for OperatingSystemStateTypes.
*/
public enum OperatingSystemStateTypes {
Generalized image. Needs to be provisioned during deployment time. /** Generalized image. Needs to be provisioned during deployment time. */
GENERALIZED("Generalized"),
Specialized image. Contains already provisioned OS Disk. /** Specialized image. Contains already provisioned OS Disk. */
SPECIALIZED("Specialized");
The actual serialized value for a OperatingSystemStateTypes instance. /** The actual serialized value for a OperatingSystemStateTypes instance. */
private String value;
OperatingSystemStateTypes(String value) {
this.value = value;
}
Parses a serialized value to a OperatingSystemStateTypes instance.
Params: - value – the serialized value to parse.
Returns: the parsed OperatingSystemStateTypes object, or null if unable to parse.
/**
* Parses a serialized value to a OperatingSystemStateTypes instance.
*
* @param value the serialized value to parse.
* @return the parsed OperatingSystemStateTypes object, or null if unable to parse.
*/
@JsonCreator
public static OperatingSystemStateTypes fromString(String value) {
OperatingSystemStateTypes[] items = OperatingSystemStateTypes.values();
for (OperatingSystemStateTypes item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}
@JsonValue
@Override
public String toString() {
return this.value;
}
}