io.apicurio.registry.rest.client.v2.models.IfExists Maven / Gradle / Ivy
The newest version!
package io.apicurio.registry.rest.client.v2.models;
import com.microsoft.kiota.serialization.ValuedEnum;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public enum IfExists implements ValuedEnum {
FAIL("FAIL"),
UPDATE("UPDATE"),
RETURN("RETURN"),
RETURN_OR_UPDATE("RETURN_OR_UPDATE");
public final String value;
IfExists(final String value) {
this.value = value;
}
@jakarta.annotation.Nonnull
public String getValue() { return this.value; }
@jakarta.annotation.Nullable
public static IfExists forValue(@jakarta.annotation.Nonnull final String searchValue) {
Objects.requireNonNull(searchValue);
switch(searchValue) {
case "FAIL": return FAIL;
case "UPDATE": return UPDATE;
case "RETURN": return RETURN;
case "RETURN_OR_UPDATE": return RETURN_OR_UPDATE;
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy