io.tiledb.cloud.rest_api.model.GroupActions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiledb-cloud-java Show documentation
Show all versions of tiledb-cloud-java Show documentation
The Java client for the TileDB Cloud Service
The newest version!
/*
* TileDB Storage Platform API
* TileDB Storage Platform REST API
*
* The version of the OpenAPI document: 2.2.19
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.tiledb.cloud.rest_api.model;
import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
/**
* actions a user can take on a group
*/
@JsonAdapter(GroupActions.Adapter.class)
public enum GroupActions {
READ("read"),
WRITE("write"),
EDIT("edit");
private String value;
GroupActions(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static GroupActions fromValue(String value) {
for (GroupActions b : GroupActions.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final GroupActions enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public GroupActions read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return GroupActions.fromValue(value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy