Class ScanReport
-
- All Implemented Interfaces:
public final class ScanReport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classScanReport.BuilderA builder for ScanReport.
public final classScanReport.Inventoryinformation about model and version that this scan relates to
public final classScanReport.Statusstatus of the scan
public final classScanReport.Compliancepublic final classScanReport.FileResultpublic final classScanReport.HighestSeverityThe highest severity of any detections on the scan.
public final classScanReport.SeverityThe highest severity of any detections on the scan. Use ScanHighestDetectionSeverity instead.
public final classScanReport.Summaryaggregated summary statistics for the scan
-
Method Summary
Modifier and Type Method Description final LongdetectionCount()number of detections found final LongfileCount()number of files scanned final LongfilesWithDetectionsCount()number of files with detections found final ScanReport.Inventoryinventory()information about model and version that this scan relates to final StringscanId()unique identifier for the scan final OffsetDateTimestartTime()time the scan started final ScanReport.Statusstatus()status of the scan 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 final 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.HighestSeverity>highestSeverity()The highest severity of any detections on the scan. final Optional<ScanReport.Severity>severity()The highest severity of any detections on the scan. final Optional<ScanReport.Summary>summary()aggregated summary statistics for the scan 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<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.HighestSeverity>_highestSeverity()Returns the raw JSON value of highestSeverity. final JsonField<ScanReport.Severity>_severity()Returns the raw JSON value of severity. final JsonField<ScanReport.Summary>_summary()Returns the raw JSON value of summary. 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
final Long detectionCount()
number of detections found
-
filesWithDetectionsCount
final Long filesWithDetectionsCount()
number of files with detections found
-
inventory
final ScanReport.Inventory inventory()
information about model and version that this scan relates to
-
startTime
final OffsetDateTime startTime()
time the scan started
-
status
final ScanReport.Status status()
status of the scan
-
schemaVersion
final Optional<String> schemaVersion()
version of the scan report schema format
-
compliance
final Optional<ScanReport.Compliance> compliance()
-
detectionCategories
final Optional<List<String>> detectionCategories()
list of detection categories found
-
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
-
highestSeverity
final Optional<ScanReport.HighestSeverity> highestSeverity()
The highest severity of any detections on the scan.
-
severity
@Deprecated(message = "deprecated") final Optional<ScanReport.Severity> severity()
The highest severity of any detections on the scan. Use ScanHighestDetectionSeverity instead.
-
summary
final Optional<ScanReport.Summary> summary()
aggregated summary statistics for the scan
-
_detectionCount
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
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
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.
-
_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
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.
-
_highestSeverity
final JsonField<ScanReport.HighestSeverity> _highestSeverity()
Returns the raw JSON value of highestSeverity.
Unlike highestSeverity, 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.
-
_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.
-
_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() .version()
-
-
-
-