
com.threatconnect.sdk.server.entity.FileOccurrence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
The ThreatConnect Java SDK. Used to communicate with teh ThreatConnect Threat Intelligence Platform
The newest version!
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.threatconnect.sdk.server.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.threatconnect.sdk.server.entity.format.DateSerializer;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;
/**
*
* @author eric
*/
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "FileOccurrence")
public class FileOccurrence
{
@XmlElement(name = "Id", required = true)
private Integer id;
@XmlElement(name = "FileName", required = true)
private String fileName;
@XmlElement(name = "Path", required = true)
private String path;
@JsonSerialize(using = DateSerializer.class)
@XmlElement(name = "Date", required = true)
private Date date;
public FileOccurrence()
{
}
public FileOccurrence(Integer id, String fileName, String path, Date date)
{
this.id = id;
this.fileName = fileName;
this.path = path;
this.date = date;
}
public Integer getId()
{
return id;
}
public void setId(Integer id)
{
this.id = id;
}
public String getFileName()
{
return fileName;
}
public void setFileName(String fileName)
{
this.fileName = fileName;
}
public String getPath()
{
return path;
}
public void setPath(String path)
{
this.path = path;
}
public Date getDate()
{
return date;
}
public void setDate(Date date)
{
this.date = date;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy