io.mosip.kernel.masterdata.dto.DeviceRegistrationCenterDto Maven / Gradle / Ivy
package io.mosip.kernel.masterdata.dto;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Range;
import io.mosip.kernel.masterdata.dto.getresponse.extn.BaseDto;
import io.mosip.kernel.masterdata.validator.StringFormatter;
import io.mosip.kernel.masterdata.validator.ValidLangCode;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
/**
*
* @author Megha Tanga
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DeviceRegistrationCenterDto extends BaseDto {
/**
* Field for registration Center Id
*/
@NotNull
@StringFormatter(min = 1, max = 10)
@ApiModelProperty(value = "id", required = true, dataType = "java.lang.String")
private String regCentId;
/**
* Field for device id
*/
@NotNull
@StringFormatter(min = 1, max = 36)
@ApiModelProperty(value = "id", required = true, dataType = "java.lang.String")
private String id;
/**
* Field for device name
*/
@NotNull
@StringFormatter(min = 1, max = 64)
@ApiModelProperty(value = "name", required = true, dataType = "java.lang.String")
private String name;
/**
* Field for device serial number
*/
@NotNull
@StringFormatter(min = 1, max = 64)
@ApiModelProperty(value = "serialNum", required = true, dataType = "java.lang.String")
private String serialNum;
/**
* Field for device device specification Id
*/
@NotNull
@StringFormatter(min = 1, max = 36)
@ApiModelProperty(value = "deviceSpecId", required = true, dataType = "java.lang.String")
private String deviceSpecId;
/**
* Field for device mac address
*/
@NotNull
@StringFormatter(min = 1, max = 64)
@ApiModelProperty(value = "macAddress", required = true, dataType = "java.lang.String")
private String macAddress;
/**
* Field for device IP address
*/
@Size(min = 0, max = 17)
@ApiModelProperty(value = "ipAddress", required = true, dataType = "java.lang.String")
private String ipAddress;
/**
* Field for language code
*/
@ValidLangCode(message = "Language Code is Invalid")
@ApiModelProperty(value = "langCode", required = true, dataType = "java.lang.String")
private String langCode;
}