Class ScanReport
-
- All Implemented Interfaces:
public final class ScanReportA scan report with all of its details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classScanReport.BuilderA builder for ScanReport.
public final classScanReport.Inventorypublic final classScanReport.Statusstatus of the scan
public final classScanReport.Summarypublic final classScanReport.Compliancepublic final classScanReport.FileResultpublic final classScanReport.SeverityThe highest severity of any detections on the scan, including "safe". Use
.summary.highest_severityinstead.
-
Method Summary
Modifier and Type Method Description final LongdetectionCount()number of detections found; use .summary.detection_countinsteadfinal LongfileCount()number of files scanned; use .summary.file_countinsteadfinal LongfilesWithDetectionsCount()number of files with detections found; use .summary.files_with_detections_countinsteadfinal ScanReport.Inventoryinventory()final StringscanId()unique identifier for the scan final OffsetDateTimestartTime()time the scan started final ScanReport.Statusstatus()status of the scan final ScanReport.Summarysummary()final Stringversion()scanner version final Optional<String>schemaVersion()version of the scan report schema format final Optional<ScanReport.Compliance>compliance()final Optional<List<String>>detectionCategories()list of detection categories found; use .summary.detection_categoriesinsteadfinal Optional<OffsetDateTime>endTime()time the scan ended final Optional<List<ScanReport.FileResult>>fileResults()final Optional<Boolean>hasGenealogy()if there is model geneaology info available final Optional<ScanReport.Severity>severity()The highest severity of any detections on the scan, including "safe". final JsonField<Long>_detectionCount()Returns the raw JSON value of detectionCount. final JsonField<Long>_fileCount()Returns the raw JSON value of fileCount. final JsonField<Long>_filesWithDetectionsCount()Returns the raw JSON value of filesWithDetectionsCount. final JsonField<ScanReport.Inventory>_inventory()Returns the raw JSON value of inventory. final JsonField<String>_scanId()Returns the raw JSON value of scanId. final JsonField<OffsetDateTime>_startTime()Returns the raw JSON value of startTime. final JsonField<ScanReport.Status>_status()Returns the raw JSON value of status. final JsonField<ScanReport.Summary>_summary()Returns the raw JSON value of summary. final JsonField<String>_version()Returns the raw JSON value of version. final JsonField<String>_schemaVersion()Returns the raw JSON value of schemaVersion. final JsonField<ScanReport.Compliance>_compliance()Returns the raw JSON value of compliance. final JsonField<List<String>>_detectionCategories()Returns the raw JSON value of detectionCategories. final JsonField<OffsetDateTime>_endTime()Returns the raw JSON value of endTime. final JsonField<List<ScanReport.FileResult>>_fileResults()Returns the raw JSON value of fileResults. final JsonField<Boolean>_hasGenealogy()Returns the raw JSON value of hasGenealogy. final JsonField<ScanReport.Severity>_severity()Returns the raw JSON value of severity. final Map<String, JsonValue>_additionalProperties()final ScanReport.BuildertoBuilder()final ScanReportvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ScanReport.Builderbuilder()Returns a mutable builder for constructing an instance of ScanReport. -
-
Method Detail
-
detectionCount
@Deprecated(message = "deprecated") final Long detectionCount()
number of detections found; use
.summary.detection_countinstead
-
fileCount
@Deprecated(message = "deprecated") final Long fileCount()
number of files scanned; use
.summary.file_countinstead
-
filesWithDetectionsCount
@Deprecated(message = "deprecated") final Long filesWithDetectionsCount()
number of files with detections found; use
.summary.files_with_detections_countinstead
-
inventory
final ScanReport.Inventory inventory()
-
startTime
final OffsetDateTime startTime()
time the scan started
-
status
final ScanReport.Status status()
status of the scan
-
summary
final ScanReport.Summary summary()
-
schemaVersion
final Optional<String> schemaVersion()
version of the scan report schema format
-
compliance
final Optional<ScanReport.Compliance> compliance()
-
detectionCategories
@Deprecated(message = "deprecated") final Optional<List<String>> detectionCategories()
list of detection categories found; use
.summary.detection_categoriesinstead
-
endTime
final Optional<OffsetDateTime> endTime()
time the scan ended
-
fileResults
final Optional<List<ScanReport.FileResult>> fileResults()
-
hasGenealogy
final Optional<Boolean> hasGenealogy()
if there is model geneaology info available
-
severity
@Deprecated(message = "deprecated") final Optional<ScanReport.Severity> severity()
The highest severity of any detections on the scan, including "safe". Use
.summary.highest_severityinstead.
-
_detectionCount
@Deprecated(message = "deprecated") final JsonField<Long> _detectionCount()
Returns the raw JSON value of detectionCount.
Unlike detectionCount, this method doesn't throw if the JSON field has an unexpected type.
-
_fileCount
@Deprecated(message = "deprecated") final JsonField<Long> _fileCount()
Returns the raw JSON value of fileCount.
Unlike fileCount, this method doesn't throw if the JSON field has an unexpected type.
-
_filesWithDetectionsCount
@Deprecated(message = "deprecated") final JsonField<Long> _filesWithDetectionsCount()
Returns the raw JSON value of filesWithDetectionsCount.
Unlike filesWithDetectionsCount, this method doesn't throw if the JSON field has an unexpected type.
-
_inventory
final JsonField<ScanReport.Inventory> _inventory()
Returns the raw JSON value of inventory.
Unlike inventory, this method doesn't throw if the JSON field has an unexpected type.
-
_scanId
final JsonField<String> _scanId()
Returns the raw JSON value of scanId.
Unlike scanId, this method doesn't throw if the JSON field has an unexpected type.
-
_startTime
final JsonField<OffsetDateTime> _startTime()
Returns the raw JSON value of startTime.
Unlike startTime, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ScanReport.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_summary
final JsonField<ScanReport.Summary> _summary()
Returns the raw JSON value of summary.
Unlike summary, this method doesn't throw if the JSON field has an unexpected type.
-
_version
final JsonField<String> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_schemaVersion
final JsonField<String> _schemaVersion()
Returns the raw JSON value of schemaVersion.
Unlike schemaVersion, this method doesn't throw if the JSON field has an unexpected type.
-
_compliance
final JsonField<ScanReport.Compliance> _compliance()
Returns the raw JSON value of compliance.
Unlike compliance, this method doesn't throw if the JSON field has an unexpected type.
-
_detectionCategories
@Deprecated(message = "deprecated") final JsonField<List<String>> _detectionCategories()
Returns the raw JSON value of detectionCategories.
Unlike detectionCategories, this method doesn't throw if the JSON field has an unexpected type.
-
_endTime
final JsonField<OffsetDateTime> _endTime()
Returns the raw JSON value of endTime.
Unlike endTime, this method doesn't throw if the JSON field has an unexpected type.
-
_fileResults
final JsonField<List<ScanReport.FileResult>> _fileResults()
Returns the raw JSON value of fileResults.
Unlike fileResults, this method doesn't throw if the JSON field has an unexpected type.
-
_hasGenealogy
final JsonField<Boolean> _hasGenealogy()
Returns the raw JSON value of hasGenealogy.
Unlike hasGenealogy, this method doesn't throw if the JSON field has an unexpected type.
-
_severity
@Deprecated(message = "deprecated") final JsonField<ScanReport.Severity> _severity()
Returns the raw JSON value of severity.
Unlike severity, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ScanReport.Builder toBuilder()
-
validate
final ScanReport validate()
-
builder
final static ScanReport.Builder builder()
Returns a mutable builder for constructing an instance of ScanReport.
The following fields are required:
.detectionCount() .fileCount() .filesWithDetectionsCount() .inventory() .scanId() .startTime() .status() .summary() .version()
-
-
-
-