Record Class ConfigState.Sinks
java.lang.Object
java.lang.Record
ai.attackframework.tools.burp.utils.config.ConfigState.Sinks
- Enclosing class:
ConfigState
public static record ConfigState.Sinks(boolean filesEnabled, String filesPath, boolean fileJsonlEnabled, boolean fileBulkNdjsonEnabled, boolean fileTotalCapEnabled, double fileTotalCapGb, boolean fileDiskUsagePercentEnabled, int fileDiskUsagePercent, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, String openSearchTlsMode)
extends Record
Sinks selection and values.
File export can target document-only JSONL, bulk-compatible NDJSON, or both. Optional
OpenSearch basic-auth remains non-durable (empty = no auth). openSearchTlsMode
persists whether OpenSearch uses the system trust store, a session-imported pinned
certificate, or trust-all TLS.
-
Constructor Summary
ConstructorsConstructorDescriptionSinks(boolean filesEnabled, String filesPath, boolean fileJsonlEnabled, boolean fileBulkNdjsonEnabled, boolean fileTotalCapEnabled, double fileTotalCapGb, boolean fileDiskUsagePercentEnabled, int fileDiskUsagePercent, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, boolean openSearchInsecureSsl) Sinks(boolean filesEnabled, String filesPath, boolean fileJsonlEnabled, boolean fileBulkNdjsonEnabled, boolean fileTotalCapEnabled, double fileTotalCapGb, boolean fileDiskUsagePercentEnabled, int fileDiskUsagePercent, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, String openSearchTlsMode) Creates an instance of aSinksrecord class.Sinks(boolean filesEnabled, String filesPath, boolean fileJsonlEnabled, boolean fileBulkNdjsonEnabled, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, boolean openSearchInsecureSsl) Sinks(boolean filesEnabled, String filesPath, boolean fileJsonlEnabled, boolean fileBulkNdjsonEnabled, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, String openSearchTlsMode) Sinks(boolean filesEnabled, String filesPath, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, boolean openSearchInsecureSsl) Sinks(boolean filesEnabled, String filesPath, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, String openSearchTlsMode) Convenience constructor for call sites that do not need to specify file formats. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefileBulkNdjsonEnabledrecord component.intReturns the value of thefileDiskUsagePercentrecord component.booleanReturns the value of thefileDiskUsagePercentEnabledrecord component.booleanReturns the value of thefileJsonlEnabledrecord component.booleanReturns the value of thefilesEnabledrecord component.Returns the value of thefilesPathrecord component.longReturns the configured file cap converted to bytes for runtime enforcement.booleanReturns the value of thefileTotalCapEnabledrecord component.doubleReturns the value of thefileTotalCapGbrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theopenSearchPasswordrecord component.Returns the value of theopenSearchTlsModerecord component.Returns the value of theopenSearchUrlrecord component.Returns the value of theopenSearchUserrecord component.booleanReturns the value of theosEnabledrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Sinks
public Sinks(boolean filesEnabled, String filesPath, boolean fileJsonlEnabled, boolean fileBulkNdjsonEnabled, boolean fileTotalCapEnabled, double fileTotalCapGb, boolean fileDiskUsagePercentEnabled, int fileDiskUsagePercent, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, String openSearchTlsMode) Creates an instance of aSinksrecord class.- Parameters:
filesEnabled- the value for thefilesEnabledrecord componentfilesPath- the value for thefilesPathrecord componentfileJsonlEnabled- the value for thefileJsonlEnabledrecord componentfileBulkNdjsonEnabled- the value for thefileBulkNdjsonEnabledrecord componentfileTotalCapEnabled- the value for thefileTotalCapEnabledrecord componentfileTotalCapGb- the value for thefileTotalCapGbrecord componentfileDiskUsagePercentEnabled- the value for thefileDiskUsagePercentEnabledrecord componentfileDiskUsagePercent- the value for thefileDiskUsagePercentrecord componentosEnabled- the value for theosEnabledrecord componentopenSearchUrl- the value for theopenSearchUrlrecord componentopenSearchUser- the value for theopenSearchUserrecord componentopenSearchPassword- the value for theopenSearchPasswordrecord componentopenSearchTlsMode- the value for theopenSearchTlsModerecord component
-
Sinks
-
Sinks
public Sinks(boolean filesEnabled, String filesPath, boolean fileJsonlEnabled, boolean fileBulkNdjsonEnabled, boolean fileTotalCapEnabled, double fileTotalCapGb, boolean fileDiskUsagePercentEnabled, int fileDiskUsagePercent, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, boolean openSearchInsecureSsl) -
Sinks
-
Sinks
public Sinks(boolean filesEnabled, String filesPath, boolean osEnabled, String openSearchUrl, String openSearchUser, String openSearchPassword, String openSearchTlsMode) Convenience constructor for call sites that do not need to specify file formats.When used, file export formats default to disabled until explicitly selected in the UI or config.
-
Sinks
-
-
Method Details
-
fileTotalCapBytes
public long fileTotalCapBytes()Returns the configured file cap converted to bytes for runtime enforcement. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
filesEnabled
public boolean filesEnabled()Returns the value of thefilesEnabledrecord component.- Returns:
- the value of the
filesEnabledrecord component
-
filesPath
Returns the value of thefilesPathrecord component.- Returns:
- the value of the
filesPathrecord component
-
fileJsonlEnabled
public boolean fileJsonlEnabled()Returns the value of thefileJsonlEnabledrecord component.- Returns:
- the value of the
fileJsonlEnabledrecord component
-
fileBulkNdjsonEnabled
public boolean fileBulkNdjsonEnabled()Returns the value of thefileBulkNdjsonEnabledrecord component.- Returns:
- the value of the
fileBulkNdjsonEnabledrecord component
-
fileTotalCapEnabled
public boolean fileTotalCapEnabled()Returns the value of thefileTotalCapEnabledrecord component.- Returns:
- the value of the
fileTotalCapEnabledrecord component
-
fileTotalCapGb
public double fileTotalCapGb()Returns the value of thefileTotalCapGbrecord component.- Returns:
- the value of the
fileTotalCapGbrecord component
-
fileDiskUsagePercentEnabled
public boolean fileDiskUsagePercentEnabled()Returns the value of thefileDiskUsagePercentEnabledrecord component.- Returns:
- the value of the
fileDiskUsagePercentEnabledrecord component
-
fileDiskUsagePercent
public int fileDiskUsagePercent()Returns the value of thefileDiskUsagePercentrecord component.- Returns:
- the value of the
fileDiskUsagePercentrecord component
-
osEnabled
public boolean osEnabled()Returns the value of theosEnabledrecord component.- Returns:
- the value of the
osEnabledrecord component
-
openSearchUrl
Returns the value of theopenSearchUrlrecord component.- Returns:
- the value of the
openSearchUrlrecord component
-
openSearchUser
Returns the value of theopenSearchUserrecord component.- Returns:
- the value of the
openSearchUserrecord component
-
openSearchPassword
Returns the value of theopenSearchPasswordrecord component.- Returns:
- the value of the
openSearchPasswordrecord component
-
openSearchTlsMode
Returns the value of theopenSearchTlsModerecord component.- Returns:
- the value of the
openSearchTlsModerecord component
-