All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.flipt.client.models.Result Maven / Gradle / Ivy

There is a newer version: 0.2.0
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy