io.flipt.client.models.Result Maven / Gradle / Ivy
package io.flipt.client.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Optional;
public class Result {
private final String status;
private final Optional result;
private final Optional errorMessage;
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public Result(
@JsonProperty("status") String status,
@JsonProperty("result") Optional result,
@JsonProperty("error_message") Optional errorMessage) {
this.status = status;
this.result = result;
this.errorMessage = errorMessage;
}
public String getStatus() {
return status;
}
public Optional getResult() {
return result;
}
@JsonProperty("error_message")
public Optional getErrorMessage() {
return errorMessage;
}
}