Record Class ConfigState.State
java.lang.Object
java.lang.Record
ai.attackframework.tools.burp.utils.config.ConfigState.State
- Record Components:
dataSources- selected top-level source keys such assettingsorexporterscopeType- scope mode:all,burp, orcustomcustomEntries- ordered custom-scope entries used whenscopeType=customsinks- destination configuration for Files and OpenSearchsettingsSub- selected Settings source sub-optionstrafficToolTypes- selected traffic-producing Burp tool typesfindingsSeverities- selected finding severitiesexporterSubOptions- selected exporter log/config/stats sub-optionsexporterStatsIntervalSeconds- stats snapshot interval in secondsindexNameBaseTemplate- base template used to derive default index namesenabledExportFieldsByIndex- enabled optional field keys by index;nullmeans all optional fields are enableduiPreferences- persisted UI-only preferences that should survive save/import cycles
- Enclosing class:
ConfigState
public static record ConfigState.State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, String indexNameBaseTemplate, Map<String,Set<String>> enabledExportFieldsByIndex, ConfigState.UiPreferences uiPreferences)
extends Record
Captures the full persisted exporter configuration.
Collection components are normalized to immutable snapshots. Missing exporter settings are normalized to the current defaults so legacy imports retain the intended Exporter-index behavior.
-
Constructor Summary
ConstructorsConstructorDescriptionState(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, String indexNameBaseTemplate, Map<String, Set<String>> enabledExportFieldsByIndex) State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, String indexNameBaseTemplate, Map<String, Set<String>> enabledExportFieldsByIndex, ConfigState.UiPreferences uiPreferences) Creates an instance of aStaterecord class.State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, Map<String, Set<String>> enabledExportFieldsByIndex) State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, Map<String, Set<String>> enabledExportFieldsByIndex, ConfigState.UiPreferences uiPreferences) State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, Map<String, Set<String>> enabledExportFieldsByIndex) State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, Map<String, Set<String>> enabledExportFieldsByIndex, ConfigState.UiPreferences uiPreferences) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecustomEntriesrecord component.Returns the value of thedataSourcesrecord component.Returns the value of theenabledExportFieldsByIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexporterStatsIntervalSecondsrecord component.Returns the value of theexporterSubOptionsrecord component.Returns the value of thefindingsSeveritiesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theindexNameBaseTemplaterecord component.Returns the value of thescopeTyperecord component.Returns the value of thesettingsSubrecord component.sinks()Returns the value of thesinksrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrafficToolTypesrecord component.Returns the value of theuiPreferencesrecord component.
-
Constructor Details
-
State
public State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, String indexNameBaseTemplate, Map<String, Set<String>> enabledExportFieldsByIndex, ConfigState.UiPreferences uiPreferences) Creates an instance of aStaterecord class.- Parameters:
dataSources- the value for thedataSourcesrecord componentscopeType- the value for thescopeTyperecord componentcustomEntries- the value for thecustomEntriesrecord componentsinks- the value for thesinksrecord componentsettingsSub- the value for thesettingsSubrecord componenttrafficToolTypes- the value for thetrafficToolTypesrecord componentfindingsSeverities- the value for thefindingsSeveritiesrecord componentexporterSubOptions- the value for theexporterSubOptionsrecord componentexporterStatsIntervalSeconds- the value for theexporterStatsIntervalSecondsrecord componentindexNameBaseTemplate- the value for theindexNameBaseTemplaterecord componentenabledExportFieldsByIndex- the value for theenabledExportFieldsByIndexrecord componentuiPreferences- the value for theuiPreferencesrecord component
-
State
public State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, String indexNameBaseTemplate, Map<String, Set<String>> enabledExportFieldsByIndex) -
State
public State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, Map<String, Set<String>> enabledExportFieldsByIndex) -
State
public State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, List<String> exporterSubOptions, int exporterStatsIntervalSeconds, Map<String, Set<String>> enabledExportFieldsByIndex, ConfigState.UiPreferences uiPreferences) -
State
public State(List<String> dataSources, String scopeType, List<ConfigState.ScopeEntry> customEntries, ConfigState.Sinks sinks, List<String> settingsSub, List<String> trafficToolTypes, List<String> findingsSeverities, Map<String, Set<String>> enabledExportFieldsByIndex, ConfigState.UiPreferences uiPreferences) -
State
-
-
Method Details
-
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 '=='. -
dataSources
Returns the value of thedataSourcesrecord component.- Returns:
- the value of the
dataSourcesrecord component
-
scopeType
Returns the value of thescopeTyperecord component.- Returns:
- the value of the
scopeTyperecord component
-
customEntries
Returns the value of thecustomEntriesrecord component.- Returns:
- the value of the
customEntriesrecord component
-
sinks
Returns the value of thesinksrecord component.- Returns:
- the value of the
sinksrecord component
-
settingsSub
Returns the value of thesettingsSubrecord component.- Returns:
- the value of the
settingsSubrecord component
-
trafficToolTypes
Returns the value of thetrafficToolTypesrecord component.- Returns:
- the value of the
trafficToolTypesrecord component
-
findingsSeverities
Returns the value of thefindingsSeveritiesrecord component.- Returns:
- the value of the
findingsSeveritiesrecord component
-
exporterSubOptions
Returns the value of theexporterSubOptionsrecord component.- Returns:
- the value of the
exporterSubOptionsrecord component
-
exporterStatsIntervalSeconds
public int exporterStatsIntervalSeconds()Returns the value of theexporterStatsIntervalSecondsrecord component.- Returns:
- the value of the
exporterStatsIntervalSecondsrecord component
-
indexNameBaseTemplate
Returns the value of theindexNameBaseTemplaterecord component.- Returns:
- the value of the
indexNameBaseTemplaterecord component
-
enabledExportFieldsByIndex
Returns the value of theenabledExportFieldsByIndexrecord component.- Returns:
- the value of the
enabledExportFieldsByIndexrecord component
-
uiPreferences
Returns the value of theuiPreferencesrecord component.- Returns:
- the value of the
uiPreferencesrecord component
-