public static class VulnerabilityAudit.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VulnerabilityAudit |
build() |
VulnerabilityAudit.Builder |
buildType(VulnerabilityAudit.BuildType buildType)
The type of the build tool is restricted to only two values MAVEN or UNSET.
|
VulnerabilityAudit.Builder |
compartmentId(String compartmentId)
The compartment Oracle Cloud identifier
(OCID) of the
vulnerability audit.
|
VulnerabilityAudit.Builder |
configuration(VulnerabilityAuditConfiguration configuration) |
VulnerabilityAudit.Builder |
copy(VulnerabilityAudit model) |
VulnerabilityAudit.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
VulnerabilityAudit.Builder |
displayName(String displayName)
The name of the vulnerability audit.
|
VulnerabilityAudit.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
VulnerabilityAudit.Builder |
id(String id)
The Oracle Cloud identifier
(OCID) of the
vulnerability audit.
|
VulnerabilityAudit.Builder |
isSuccess(Boolean isSuccess)
Indicates if an audit succeeded according to the configuration.
|
VulnerabilityAudit.Builder |
knowledgeBaseId(String knowledgeBaseId)
The Oracle Cloud identifier
(OCID) of the
knowledge base.
|
VulnerabilityAudit.Builder |
lifecycleDetails(VulnerabilityAudit.LifecycleDetails lifecycleDetails)
Details on the lifecycle state.
|
VulnerabilityAudit.Builder |
lifecycleState(VulnerabilityAudit.LifecycleState lifecycleState)
The current lifecycle state of the vulnerability audit.
|
VulnerabilityAudit.Builder |
maxObservedCvssV2Score(Float maxObservedCvssV2Score)
Maximum Common Vulnerability Scoring System Version 2 score observed for non-ignored
vulnerable application dependencies.
|
VulnerabilityAudit.Builder |
maxObservedCvssV2ScoreWithIgnored(Float maxObservedCvssV2ScoreWithIgnored)
Maximum Common Vulnerability Scoring System Version 2 score observed for vulnerable
application dependencies including ignored ones.
|
VulnerabilityAudit.Builder |
maxObservedCvssV3Score(Float maxObservedCvssV3Score)
Maximum Common Vulnerability Scoring System Version 3 score observed for non-ignored
vulnerable application dependencies.
|
VulnerabilityAudit.Builder |
maxObservedCvssV3ScoreWithIgnored(Float maxObservedCvssV3ScoreWithIgnored)
Maximum Common Vulnerability Scoring System Version 3 score observed for vulnerable
application dependencies including ignored ones.
|
VulnerabilityAudit.Builder |
maxObservedSeverity(VulnerabilitySeverity maxObservedSeverity)
Maximum ADM Severity observed for non-ignored vulnerable application dependencies.
|
VulnerabilityAudit.Builder |
maxObservedSeverityWithIgnored(VulnerabilitySeverity maxObservedSeverityWithIgnored)
Maximum ADM Severity observed for vulnerable application dependencies including ignored
ones.
|
VulnerabilityAudit.Builder |
source(VulnerabilityAuditSource source) |
VulnerabilityAudit.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
VulnerabilityAudit.Builder |
timeCreated(Date timeCreated)
The creation date and time of the vulnerability audit (formatted according to
RFC3339).
|
VulnerabilityAudit.Builder |
timeUpdated(Date timeUpdated)
The update date and time of the vulnerability audit (formatted according to
RFC3339).
|
VulnerabilityAudit.Builder |
usageData(UsageDataDetails usageData) |
VulnerabilityAudit.Builder |
vulnerabilities(List<Vulnerability> vulnerabilities)
List of vulnerabilities found in the vulnerability audit.
|
VulnerabilityAudit.Builder |
vulnerableArtifactsCount(Integer vulnerableArtifactsCount)
Count of non-ignored vulnerable application dependencies.
|
VulnerabilityAudit.Builder |
vulnerableArtifactsCountWithIgnored(Integer vulnerableArtifactsCountWithIgnored)
Count of all vulnerable application dependencies.
|
public VulnerabilityAudit.Builder id(String id)
The Oracle Cloud identifier (OCID) of the vulnerability audit.
id
- the value to setpublic VulnerabilityAudit.Builder displayName(String displayName)
The name of the vulnerability audit.
displayName
- the value to setpublic VulnerabilityAudit.Builder knowledgeBaseId(String knowledgeBaseId)
The Oracle Cloud identifier (OCID) of the knowledge base.
knowledgeBaseId
- the value to setpublic VulnerabilityAudit.Builder timeCreated(Date timeCreated)
The creation date and time of the vulnerability audit (formatted according to RFC3339).
timeCreated
- the value to setpublic VulnerabilityAudit.Builder timeUpdated(Date timeUpdated)
The update date and time of the vulnerability audit (formatted according to RFC3339).
timeUpdated
- the value to setpublic VulnerabilityAudit.Builder lifecycleState(VulnerabilityAudit.LifecycleState lifecycleState)
The current lifecycle state of the vulnerability audit.
lifecycleState
- the value to setpublic VulnerabilityAudit.Builder lifecycleDetails(VulnerabilityAudit.LifecycleDetails lifecycleDetails)
Details on the lifecycle state.
lifecycleDetails
- the value to setpublic VulnerabilityAudit.Builder vulnerabilities(List<Vulnerability> vulnerabilities)
List of vulnerabilities found in the vulnerability audit. If a vulnerability affects multiple dependencies, the metadata returned here consists of audit-wide aggregates.
vulnerabilities
- the value to setpublic VulnerabilityAudit.Builder maxObservedCvssV2Score(Float maxObservedCvssV2Score)
Maximum Common Vulnerability Scoring System Version 2 score observed for non-ignored vulnerable application dependencies.
maxObservedCvssV2Score
- the value to setpublic VulnerabilityAudit.Builder maxObservedCvssV3Score(Float maxObservedCvssV3Score)
Maximum Common Vulnerability Scoring System Version 3 score observed for non-ignored vulnerable application dependencies.
maxObservedCvssV3Score
- the value to setpublic VulnerabilityAudit.Builder maxObservedSeverity(VulnerabilitySeverity maxObservedSeverity)
Maximum ADM Severity observed for non-ignored vulnerable application dependencies.
maxObservedSeverity
- the value to setpublic VulnerabilityAudit.Builder maxObservedCvssV2ScoreWithIgnored(Float maxObservedCvssV2ScoreWithIgnored)
Maximum Common Vulnerability Scoring System Version 2 score observed for vulnerable application dependencies including ignored ones.
maxObservedCvssV2ScoreWithIgnored
- the value to setpublic VulnerabilityAudit.Builder maxObservedCvssV3ScoreWithIgnored(Float maxObservedCvssV3ScoreWithIgnored)
Maximum Common Vulnerability Scoring System Version 3 score observed for vulnerable application dependencies including ignored ones.
maxObservedCvssV3ScoreWithIgnored
- the value to setpublic VulnerabilityAudit.Builder maxObservedSeverityWithIgnored(VulnerabilitySeverity maxObservedSeverityWithIgnored)
Maximum ADM Severity observed for vulnerable application dependencies including ignored ones.
maxObservedSeverityWithIgnored
- the value to setpublic VulnerabilityAudit.Builder vulnerableArtifactsCountWithIgnored(Integer vulnerableArtifactsCountWithIgnored)
Count of all vulnerable application dependencies.
vulnerableArtifactsCountWithIgnored
- the value to setpublic VulnerabilityAudit.Builder vulnerableArtifactsCount(Integer vulnerableArtifactsCount)
Count of non-ignored vulnerable application dependencies.
vulnerableArtifactsCount
- the value to setpublic VulnerabilityAudit.Builder configuration(VulnerabilityAuditConfiguration configuration)
public VulnerabilityAudit.Builder usageData(UsageDataDetails usageData)
public VulnerabilityAudit.Builder isSuccess(Boolean isSuccess)
Indicates if an audit succeeded according to the configuration. The value is null
if the audit is in the CREATING
state.
isSuccess
- the value to setpublic VulnerabilityAudit.Builder buildType(VulnerabilityAudit.BuildType buildType)
The type of the build tool is restricted to only two values MAVEN or UNSET. Use UNSET when the list of application dependencies is not Maven-related or is a mix of Maven and other ecosystems. This option is soon to be deprecated.
buildType
- the value to setpublic VulnerabilityAudit.Builder source(VulnerabilityAuditSource source)
public VulnerabilityAudit.Builder compartmentId(String compartmentId)
The compartment Oracle Cloud identifier (OCID) of the vulnerability audit.
compartmentId
- the value to setpublic VulnerabilityAudit.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope. Exists
for cross-compatibility only. Example: {"bar-key": "value"}
freeformTags
- the value to setpublic VulnerabilityAudit.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic VulnerabilityAudit.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic VulnerabilityAudit build()
public VulnerabilityAudit.Builder copy(VulnerabilityAudit model)
Copyright © 2016–2024. All rights reserved.