Class FileScanReport.FileResult.Builder
-
- All Implemented Interfaces:
public final class FileScanReport.FileResult.BuilderA builder for FileResult.
-
-
Method Summary
-
-
Method Detail
-
details
final FileScanReport.FileResult.Builder details(FileScanReport.FileResult.Details details)
-
details
final FileScanReport.FileResult.Builder details(JsonField<FileScanReport.FileResult.Details> details)
Sets Builder.details to an arbitrary JSON value.
You should usually call Builder.details with a well-typed Details value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
detections
final FileScanReport.FileResult.Builder detections(List<FileScanReport.FileResult.Detection> detections)
-
detections
final FileScanReport.FileResult.Builder detections(JsonField<List<FileScanReport.FileResult.Detection>> detections)
Sets Builder.detections to an arbitrary JSON value.
You should usually call Builder.detections with a well-typed
List<Detection>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addDetection
final FileScanReport.FileResult.Builder addDetection(FileScanReport.FileResult.Detection detection)
Adds a single Detection to detections.
-
endTime
final FileScanReport.FileResult.Builder endTime(OffsetDateTime endTime)
time the scan ended
-
endTime
final FileScanReport.FileResult.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.
-
fileInstanceId
final FileScanReport.FileResult.Builder fileInstanceId(String fileInstanceId)
unique ID of the file
-
fileInstanceId
final FileScanReport.FileResult.Builder fileInstanceId(JsonField<String> fileInstanceId)
Sets Builder.fileInstanceId to an arbitrary JSON value.
You should usually call Builder.fileInstanceId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileLocation
final FileScanReport.FileResult.Builder fileLocation(String fileLocation)
full file path
-
fileLocation
final FileScanReport.FileResult.Builder fileLocation(JsonField<String> fileLocation)
Sets Builder.fileLocation to an arbitrary JSON value.
You should usually call Builder.fileLocation with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
seen
final FileScanReport.FileResult.Builder seen(OffsetDateTime seen)
time the scan was seen at
-
seen
final FileScanReport.FileResult.Builder seen(JsonField<OffsetDateTime> seen)
Sets Builder.seen to an arbitrary JSON value.
You should usually call Builder.seen with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
startTime
final FileScanReport.FileResult.Builder startTime(OffsetDateTime startTime)
time the scan started
-
startTime
final FileScanReport.FileResult.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 FileScanReport.FileResult.Builder status(FileScanReport.FileResult.Status status)
status of the scan
-
status
final FileScanReport.FileResult.Builder status(JsonField<FileScanReport.FileResult.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.
-
fileError
final FileScanReport.FileResult.Builder fileError(List<String> fileError)
Error messages returned by the scanner
-
fileError
final FileScanReport.FileResult.Builder fileError(JsonField<List<String>> fileError)
Sets Builder.fileError to an arbitrary JSON value.
You should usually call Builder.fileError with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addFileError
final FileScanReport.FileResult.Builder addFileError(String fileError)
Adds a single String to Builder.fileError.
-
additionalProperties
final FileScanReport.FileResult.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileScanReport.FileResult.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileScanReport.FileResult.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileScanReport.FileResult.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileScanReport.FileResult.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileScanReport.FileResult build()
Returns an immutable instance of FileResult.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.details() .detections() .endTime() .fileInstanceId() .fileLocation() .seen() .startTime() .status()
-
-
-
-