package eu.eudat.model.persist.referencetypedefinition; import eu.eudat.commons.enums.ReferenceTypeExternalApiHTTPMethodType; import eu.eudat.commons.validation.old.ValidEnum; import jakarta.validation.constraints.NotNull; public class AuthenticationConfigurationPersist { @NotNull(message = "{validation.empty}") private Boolean enabled; @NotNull(message = "{validation.empty}") private String authUrl; @ValidEnum(message = "{validation.empty}") private ReferenceTypeExternalApiHTTPMethodType authMethod; @NotNull(message = "{validation.empty}") private String authTokenPath ; @NotNull(message = "{validation.empty}") private String authRequestBody; @NotNull(message = "{validation.empty}") private String type; public Boolean getEnabled() { return enabled; } public void setEnabled(Boolean enabled) { this.enabled = enabled; } public String getAuthUrl() { return authUrl; } public void setAuthUrl(String authUrl) { this.authUrl = authUrl; } public ReferenceTypeExternalApiHTTPMethodType getAuthMethod() { return authMethod; } public void setAuthMethod(ReferenceTypeExternalApiHTTPMethodType authMethod) { this.authMethod = authMethod; } public String getAuthTokenPath() { return authTokenPath; } public void setAuthTokenPath(String authTokenPath) { this.authTokenPath = authTokenPath; } public String getAuthRequestBody() { return authRequestBody; } public void setAuthRequestBody(String authRequestBody) { this.authRequestBody = authRequestBody; } public String getType() { return type; } public void setType(String type) { this.type = type; } }