package io.apicurio.registry.storage.dto;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.Map;
import java.util.Set;

@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@Setter
@EqualsAndHashCode
@ToString
public class ContractRuleDto {
    private String name;
    private RuleKind kind;
    private String type;
    private RuleMode mode;
    private String expr;
    private Map<String, String> params;
    private Set<String> tags;
    private RuleAction onSuccess;
    private RuleAction onFailure;
    private boolean disabled;
    private int orderIndex;
}
