Files
prometeu-studio/prometeu-studio-api/src/main/java/p/studio/api/automation/OperationLookup.java
T

12 lines
555 B
Java

package p.studio.api.automation;
/** Exactly one lookup key, always scoped to a separately validated project/task identity. */
public record OperationLookup(String operationId, String clientRequestId) {
public OperationLookup {
if ((operationId == null) == (clientRequestId == null)
|| (operationId != null && operationId.isBlank())
|| (clientRequestId != null && clientRequestId.isBlank()))
throw new IllegalArgumentException("Supply exactly one nonblank operationId or clientRequestId");
}
}