fi.metatavu.metamind.client.model.TrainingMaterialVisibility Maven / Gradle / Ivy
/*
* Metamind API
* Brain spec for Metamind.
*
* OpenAPI spec version: 2.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package fi.metatavu.metamind.client.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Gets or Sets TrainingMaterialVisibility
*/
public enum TrainingMaterialVisibility {
STORY("STORY"),
LOCAL("LOCAL");
private String value;
TrainingMaterialVisibility(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TrainingMaterialVisibility fromValue(String text) {
for (TrainingMaterialVisibility b : TrainingMaterialVisibility.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}