![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.mixedreality.models.Serial Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-mixedreality Show documentation
Show all versions of azure-resourcemanager-mixedreality Show documentation
This package contains Microsoft Azure SDK for MixedReality Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Mixed Reality Client. Package tag package-2021-01.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mixedreality.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/** serial of key to be regenerated. */
public enum Serial {
/** Enum value 1. */
ONE(1),
/** Enum value 2. */
TWO(2);
/** The actual serialized value for a Serial instance. */
private final int value;
Serial(int value) {
this.value = value;
}
/**
* Parses a serialized value to a Serial instance.
*
* @param value the serialized value to parse.
* @return the parsed Serial object, or null if unable to parse.
*/
@JsonCreator
public static Serial fromInt(int value) {
Serial[] items = Serial.values();
for (Serial item : items) {
if (item.toInt() == value) {
return item;
}
}
return null;
}
/**
* De-serializes the instance to int value.
*
* @return the int value.
*/
@JsonValue
public int toInt() {
return this.value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy