Class ScanReport.Builder
-
- All Implemented Interfaces:
public final class ScanReport.BuilderA builder for ScanReport.
-
-
Method Summary
-
-
Method Detail
-
detectionCount
final ScanReport.Builder detectionCount(Long detectionCount)
number of detections found
-
detectionCount
final ScanReport.Builder detectionCount(JsonField<Long> detectionCount)
Sets Builder.detectionCount to an arbitrary JSON value.
You should usually call Builder.detectionCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileCount
final ScanReport.Builder fileCount(Long fileCount)
number of files scanned
-
fileCount
final ScanReport.Builder fileCount(JsonField<Long> fileCount)
Sets Builder.fileCount to an arbitrary JSON value.
You should usually call Builder.fileCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
filesWithDetectionsCount
final ScanReport.Builder filesWithDetectionsCount(Long filesWithDetectionsCount)
number of files with detections found
-
filesWithDetectionsCount
final ScanReport.Builder filesWithDetectionsCount(JsonField<Long> filesWithDetectionsCount)
Sets Builder.filesWithDetectionsCount to an arbitrary JSON value.
You should usually call Builder.filesWithDetectionsCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inventory
final ScanReport.Builder inventory(ScanReport.Inventory inventory)
information about model and version that this scan relates to
-
inventory
final ScanReport.Builder inventory(JsonField<ScanReport.Inventory> inventory)
Sets Builder.inventory to an arbitrary JSON value.
You should usually call Builder.inventory with a well-typed Inventory value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inventory
final ScanReport.Builder inventory(ScanReport.Inventory.ScanModelDetailsV3 scanModelDetailsV3)
Alias for calling inventory with
Inventory.ofScanModelDetailsV3(scanModelDetailsV3).
-
inventory
final ScanReport.Builder inventory(ScanReport.Inventory.ScanModelIdsV3 scanModelIdsV3)
Alias for calling inventory with
Inventory.ofScanModelIdsV3(scanModelIdsV3).
-
inventory
final ScanReport.Builder inventory(ScanReport.Inventory.ScanModelComboV3 scanModelComboV3)
Alias for calling inventory with
Inventory.ofScanModelComboV3(scanModelComboV3).
-
scanId
final ScanReport.Builder scanId(String scanId)
unique identifier for the scan
-
scanId
final ScanReport.Builder scanId(JsonField<String> scanId)
Sets Builder.scanId to an arbitrary JSON value.
You should usually call Builder.scanId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
startTime
final ScanReport.Builder startTime(OffsetDateTime startTime)
time the scan started
-
startTime
final ScanReport.Builder startTime(JsonField<OffsetDateTime> startTime)
Sets Builder.startTime to an arbitrary JSON value.
You should usually call Builder.startTime with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final ScanReport.Builder status(ScanReport.Status status)
status of the scan
-
status
final ScanReport.Builder status(JsonField<ScanReport.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
version
final ScanReport.Builder version(String version)
scanner version
-
version
final ScanReport.Builder version(JsonField<String> version)
Sets Builder.version to an arbitrary JSON value.
You should usually call Builder.version with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
schemaVersion
final ScanReport.Builder schemaVersion(String schemaVersion)
version of the scan report schema format
-
schemaVersion
final ScanReport.Builder schemaVersion(JsonField<String> schemaVersion)
Sets Builder.schemaVersion to an arbitrary JSON value.
You should usually call Builder.schemaVersion with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
compliance
final ScanReport.Builder compliance(ScanReport.Compliance compliance)
-
compliance
final ScanReport.Builder compliance(JsonField<ScanReport.Compliance> compliance)
Sets Builder.compliance to an arbitrary JSON value.
You should usually call Builder.compliance with a well-typed Compliance value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
detectionCategories
final ScanReport.Builder detectionCategories(List<String> detectionCategories)
list of detection categories found
-
detectionCategories
final ScanReport.Builder detectionCategories(JsonField<List<String>> detectionCategories)
Sets Builder.detectionCategories to an arbitrary JSON value.
You should usually call Builder.detectionCategories with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addDetectionCategory
final ScanReport.Builder addDetectionCategory(String detectionCategory)
Adds a single String to detectionCategories.
-
endTime
final ScanReport.Builder endTime(OffsetDateTime endTime)
time the scan ended
-
endTime
final ScanReport.Builder endTime(JsonField<OffsetDateTime> endTime)
Sets Builder.endTime to an arbitrary JSON value.
You should usually call Builder.endTime with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileResults
final ScanReport.Builder fileResults(List<ScanReport.FileResult> fileResults)
-
fileResults
final ScanReport.Builder fileResults(JsonField<List<ScanReport.FileResult>> fileResults)
Sets Builder.fileResults to an arbitrary JSON value.
You should usually call Builder.fileResults with a well-typed
List<FileResult>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addFileResult
final ScanReport.Builder addFileResult(ScanReport.FileResult fileResult)
Adds a single FileResult to fileResults.
-
hasGenealogy
final ScanReport.Builder hasGenealogy(Boolean hasGenealogy)
if there is model geneaology info available
-
hasGenealogy
final ScanReport.Builder hasGenealogy(JsonField<Boolean> hasGenealogy)
Sets Builder.hasGenealogy to an arbitrary JSON value.
You should usually call Builder.hasGenealogy with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
highestSeverity
final ScanReport.Builder highestSeverity(ScanReport.HighestSeverity highestSeverity)
The highest severity of any detections on the scan.
-
highestSeverity
final ScanReport.Builder highestSeverity(JsonField<ScanReport.HighestSeverity> highestSeverity)
Sets Builder.highestSeverity to an arbitrary JSON value.
You should usually call Builder.highestSeverity with a well-typed HighestSeverity value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
severity
@Deprecated(message = "deprecated") final ScanReport.Builder severity(ScanReport.Severity severity)
The highest severity of any detections on the scan. Use ScanHighestDetectionSeverity instead.
-
severity
@Deprecated(message = "deprecated") final ScanReport.Builder severity(JsonField<ScanReport.Severity> severity)
Sets Builder.severity to an arbitrary JSON value.
You should usually call Builder.severity with a well-typed Severity value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
summary
final ScanReport.Builder summary(ScanReport.Summary summary)
aggregated summary statistics for the scan
-
summary
final ScanReport.Builder summary(JsonField<ScanReport.Summary> summary)
Sets Builder.summary to an arbitrary JSON value.
You should usually call Builder.summary with a well-typed Summary value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ScanReport.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ScanReport.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ScanReport.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ScanReport.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ScanReport.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ScanReport build()
Returns an immutable instance of ScanReport.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.detectionCount() .fileCount() .filesWithDetectionsCount() .inventory() .scanId() .startTime() .status() .version()
-
-
-
-