io.github.primelib.jira4j.restv3.model.JiraExpressionResult Maven / Gradle / Ivy
Show all versions of jira4j-rest-v3 Show documentation
package io.github.primelib.jira4j.restv3.model;
import java.util.function.Consumer;
import org.jetbrains.annotations.ApiStatus;
import javax.annotation.processing.Generated;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* JiraExpressionResult
*
*/
@Getter
@Setter
@EqualsAndHashCode
@ToString
@Accessors(fluent = true, chain = true)
@NoArgsConstructor(access = AccessLevel.PROTECTED, force = true)
@Builder
@JsonPropertyOrder({
"meta",
"value"
})
@JsonTypeName("JiraExpressionResult")
@Generated(value = "io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class JiraExpressionResult {
@JsonProperty("meta")
protected JiraExpressionEvaluationMetaDataBean meta;
/**
* The value of the evaluated expression. It may be a primitive JSON value or a Jira REST API object. (Some expressions do not produce any meaningful results—for example, an expression that returns a lambda function—if that's the case a simple string representation is returned. These string representations should not be relied upon and may change without notice.)
*/
@JsonProperty("value")
protected Object value;
/**
* Constructs a validated instance of {@link JiraExpressionResult}.
*
* @param spec the specification to process
*/
public JiraExpressionResult(Consumer spec) {
spec.accept(this);
}
/**
* Constructs a validated instance of {@link JiraExpressionResult}.
*
* NOTE: This constructor is not considered stable and may change if the model is updated. Consider using {@link #JiraExpressionResult(Consumer)} instead.
* @param meta meta
* @param value The value of the evaluated expression. It may be a primitive JSON value or a Jira REST API object. (Some expressions do not produce any meaningful results—for example, an expression that returns a lambda function—if that's the case a simple string representation is returned. These string representations should not be relied upon and may change without notice.)
*/
@ApiStatus.Internal
public JiraExpressionResult(JiraExpressionEvaluationMetaDataBean meta, Object value) {
this.meta = meta;
this.value = value;
}
}