package cz.moneta.test.dsl.util.wso2;

import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

import java.util.function.Predicate;

@Getter
@Builder
@ToString
public class WaitForApiRequest<T> {

    private String path;
    private Object requestPojo;
    private Class<T> responseClass;
    private Predicate<T> successPredicate;
    private Predicate<T> failurePredicate;
    private String testCaseId;

    @Builder.Default
    private int timeoutSeconds = 60;

    @Builder.Default
    private int intervalSeconds = 3;
}
