io.mosip.kernel.masterdata.dto.MachineHistoryDto Maven / Gradle / Ivy
/**
*
*
*/
package io.mosip.kernel.masterdata.dto;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.mosip.kernel.masterdata.validator.ValidLangCode;
import lombok.Data;
/**
* Response dto for Machine History Detail
*
* @author Megha Tanga
* @since 1.0.0
*
*/
@Data
public class MachineHistoryDto {
/**
* Field for machine id
*/
private String id;
/**
* Field for machine name
*/
private String name;
/**
* Field for machine serial number
*/
private String serialNum;
/**
* Field for machine ip address
*/
private String ipAddress;
/**
* Field for machine mac address
*/
private String macAddress;
/**
* Field for machine specific id
*/
private String machineSpecId;
/**
* Field for language code
*/
@ValidLangCode
private String langCode;
/**
* Field for is active
*/
private Boolean isActive;
/**
* Field to hold Effective Date and time
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
private LocalDateTime effectDateTime;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
private LocalDateTime validityDateTime;
}