Class ScanReport.FileResult.Detection.Builder
-
- All Implemented Interfaces:
public final class ScanReport.FileResult.Detection.BuilderA builder for Detection.
-
-
Method Summary
-
-
Method Detail
-
category
final ScanReport.FileResult.Detection.Builder category(String category)
Vulnerability category for the detection
-
category
final ScanReport.FileResult.Detection.Builder category(JsonField<String> category)
Sets Builder.category to an arbitrary JSON value.
You should usually call Builder.category with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cve
final ScanReport.FileResult.Detection.Builder cve(List<String> cve)
-
cve
final ScanReport.FileResult.Detection.Builder cve(JsonField<List<String>> cve)
Sets Builder.cve to an arbitrary JSON value.
You should usually call Builder.cve with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addCve
final ScanReport.FileResult.Detection.Builder addCve(String cve)
Adds a single String to Builder.cve.
-
cwe
final ScanReport.FileResult.Detection.Builder cwe(String cwe)
-
cwe
final ScanReport.FileResult.Detection.Builder cwe(JsonField<String> cwe)
Sets Builder.cwe to an arbitrary JSON value.
You should usually call Builder.cwe with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cweHref
final ScanReport.FileResult.Detection.Builder cweHref(String cweHref)
CWE URL for the detection
-
cweHref
final ScanReport.FileResult.Detection.Builder cweHref(JsonField<String> cweHref)
Sets Builder.cweHref to an arbitrary JSON value.
You should usually call Builder.cweHref with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final ScanReport.FileResult.Detection.Builder description(String description)
detection description
-
description
final ScanReport.FileResult.Detection.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
detectionId
final ScanReport.FileResult.Detection.Builder detectionId(String detectionId)
unique identifier for the detection
-
detectionId
final ScanReport.FileResult.Detection.Builder detectionId(JsonField<String> detectionId)
Sets Builder.detectionId to an arbitrary JSON value.
You should usually call Builder.detectionId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
impact
final ScanReport.FileResult.Detection.Builder impact(String impact)
detection impact
-
impact
final ScanReport.FileResult.Detection.Builder impact(JsonField<String> impact)
Sets Builder.impact to an arbitrary JSON value.
You should usually call Builder.impact with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
likelihood
final ScanReport.FileResult.Detection.Builder likelihood(String likelihood)
detection likelihood
-
likelihood
final ScanReport.FileResult.Detection.Builder likelihood(JsonField<String> likelihood)
Sets Builder.likelihood to an arbitrary JSON value.
You should usually call Builder.likelihood with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mitreAtlas
final ScanReport.FileResult.Detection.Builder mitreAtlas(List<ScanReport.FileResult.Detection.MitreAtlas> mitreAtlas)
-
mitreAtlas
final ScanReport.FileResult.Detection.Builder mitreAtlas(JsonField<List<ScanReport.FileResult.Detection.MitreAtlas>> mitreAtlas)
Sets Builder.mitreAtlas to an arbitrary JSON value.
You should usually call Builder.mitreAtlas with a well-typed
List<MitreAtlas>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMitreAtlas
final ScanReport.FileResult.Detection.Builder addMitreAtlas(ScanReport.FileResult.Detection.MitreAtlas mitreAtlas)
Adds a single MitreAtlas to Builder.mitreAtlas.
-
owasp
final ScanReport.FileResult.Detection.Builder owasp(List<String> owasp)
-
owasp
final ScanReport.FileResult.Detection.Builder owasp(JsonField<List<String>> owasp)
Sets Builder.owasp to an arbitrary JSON value.
You should usually call Builder.owasp with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addOwasp
final ScanReport.FileResult.Detection.Builder addOwasp(String owasp)
Adds a single String to Builder.owasp.
-
risk
final ScanReport.FileResult.Detection.Builder risk(ScanReport.FileResult.Detection.Risk risk)
detection risk
-
risk
final ScanReport.FileResult.Detection.Builder risk(JsonField<ScanReport.FileResult.Detection.Risk> risk)
Sets Builder.risk to an arbitrary JSON value.
You should usually call Builder.risk with a well-typed Risk value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
ruleId
final ScanReport.FileResult.Detection.Builder ruleId(String ruleId)
unique identifier for the rule that sourced the detection
-
ruleId
final ScanReport.FileResult.Detection.Builder ruleId(JsonField<String> ruleId)
Sets Builder.ruleId to an arbitrary JSON value.
You should usually call Builder.ruleId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
severity
final ScanReport.FileResult.Detection.Builder severity(ScanReport.FileResult.Detection.Severity severity)
The severity of the detection.
-
severity
final ScanReport.FileResult.Detection.Builder severity(JsonField<ScanReport.FileResult.Detection.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.
-
ruleDetails
final ScanReport.FileResult.Detection.Builder ruleDetails(List<ScanReport.FileResult.Detection.RuleDetail> ruleDetails)
-
ruleDetails
final ScanReport.FileResult.Detection.Builder ruleDetails(JsonField<List<ScanReport.FileResult.Detection.RuleDetail>> ruleDetails)
Sets Builder.ruleDetails to an arbitrary JSON value.
You should usually call Builder.ruleDetails with a well-typed
List<RuleDetail>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addRuleDetail
final ScanReport.FileResult.Detection.Builder addRuleDetail(ScanReport.FileResult.Detection.RuleDetail ruleDetail)
Adds a single RuleDetail to ruleDetails.
-
technicalBlogHref
@Deprecated(message = "deprecated") final ScanReport.FileResult.Detection.Builder technicalBlogHref(String technicalBlogHref)
Hiddenlayer Technical Blog URL for the detection
-
technicalBlogHref
@Deprecated(message = "deprecated") final ScanReport.FileResult.Detection.Builder technicalBlogHref(JsonField<String> technicalBlogHref)
Sets Builder.technicalBlogHref to an arbitrary JSON value.
You should usually call Builder.technicalBlogHref with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
technicalBlogHrefs
final ScanReport.FileResult.Detection.Builder technicalBlogHrefs(List<String> technicalBlogHrefs)
Hiddenlayer Technical Blog URLs for the detection
-
technicalBlogHrefs
final ScanReport.FileResult.Detection.Builder technicalBlogHrefs(JsonField<List<String>> technicalBlogHrefs)
Sets Builder.technicalBlogHrefs to an arbitrary JSON value.
You should usually call Builder.technicalBlogHrefs with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTechnicalBlogHref
final ScanReport.FileResult.Detection.Builder addTechnicalBlogHref(String technicalBlogHref)
Adds a single String to technicalBlogHrefs.
-
additionalProperties
final ScanReport.FileResult.Detection.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ScanReport.FileResult.Detection.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ScanReport.FileResult.Detection.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ScanReport.FileResult.Detection.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ScanReport.FileResult.Detection.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ScanReport.FileResult.Detection build()
Returns an immutable instance of Detection.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.category() .cve() .cwe() .cweHref() .description() .detectionId() .impact() .likelihood() .mitreAtlas() .owasp() .risk() .ruleId() .severity()
-
-
-
-