io.mosip.kernel.masterdata.dto.ValidDocumentDto Maven / Gradle / Ivy
package io.mosip.kernel.masterdata.dto;
import javax.validation.constraints.NotNull;
import io.mosip.kernel.masterdata.validator.StringFormatter;
import io.mosip.kernel.masterdata.validator.ValidLangCode;
import lombok.Data;
/**
* @author Ritesh Sinha
* @since 1.0.0
*
*/
@Data
public class ValidDocumentDto {
@NotNull
@StringFormatter(min = 1, max = 36)
private String docTypeCode;
@NotNull
@StringFormatter(min = 1, max = 36)
private String docCategoryCode;
@ValidLangCode(message = "Language Code is Invalid")
private String langCode;
@NotNull
private Boolean isActive;
}