
com.threatconnect.sdk.client.fluent.FileOccurrenceBuilder 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!
package com.threatconnect.sdk.client.fluent;
import com.threatconnect.sdk.server.entity.FileOccurrence;
import java.util.Date;
public class FileOccurrenceBuilder
{
private Integer id;
private String fileName;
private String path;
private Date date;
public FileOccurrenceBuilder withId(Integer id)
{
this.id = id;
return this;
}
public FileOccurrenceBuilder withFileName(String fileName)
{
this.fileName = fileName;
return this;
}
public FileOccurrenceBuilder withPath(String path)
{
this.path = path;
return this;
}
public FileOccurrenceBuilder withDate(Date date)
{
this.date = date;
return this;
}
public FileOccurrence createFileOccurrence()
{
return new FileOccurrence(id, fileName, path, date);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy