Package com.oracle.bmc.adm.model
Class VulnerabilityAudit.Builder
- java.lang.Object
-
- com.oracle.bmc.adm.model.VulnerabilityAudit.Builder
-
- Enclosing class:
- VulnerabilityAudit
public static class VulnerabilityAudit.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VulnerabilityAuditbuild()VulnerabilityAudit.BuilderbuildType(VulnerabilityAudit.BuildType buildType)The type of the build tool is restricted to only two values MAVEN or UNSET.VulnerabilityAudit.BuildercompartmentId(String compartmentId)The compartment Oracle Cloud identifier (OCID) of the vulnerability audit.VulnerabilityAudit.Builderconfiguration(VulnerabilityAuditConfiguration configuration)VulnerabilityAudit.Buildercopy(VulnerabilityAudit model)VulnerabilityAudit.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.VulnerabilityAudit.BuilderdisplayName(String displayName)The name of the vulnerability audit.VulnerabilityAudit.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.VulnerabilityAudit.Builderid(String id)The Oracle Cloud identifier (OCID) of the vulnerability audit.VulnerabilityAudit.BuilderisSuccess(Boolean isSuccess)Indicates if an audit succeeded according to the configuration.VulnerabilityAudit.BuilderknowledgeBaseId(String knowledgeBaseId)The Oracle Cloud identifier (OCID) of the knowledge base.VulnerabilityAudit.BuilderlifecycleDetails(VulnerabilityAudit.LifecycleDetails lifecycleDetails)Details on the lifecycle state.VulnerabilityAudit.BuilderlifecycleState(VulnerabilityAudit.LifecycleState lifecycleState)The current lifecycle state of the vulnerability audit.VulnerabilityAudit.BuildermaxObservedCvssV2Score(Float maxObservedCvssV2Score)Maximum Common Vulnerability Scoring System Version 2 score observed for non-ignored vulnerable application dependencies.VulnerabilityAudit.BuildermaxObservedCvssV2ScoreWithIgnored(Float maxObservedCvssV2ScoreWithIgnored)Maximum Common Vulnerability Scoring System Version 2 score observed for vulnerable application dependencies including ignored ones.VulnerabilityAudit.BuildermaxObservedCvssV3Score(Float maxObservedCvssV3Score)Maximum Common Vulnerability Scoring System Version 3 score observed for non-ignored vulnerable application dependencies.VulnerabilityAudit.BuildermaxObservedCvssV3ScoreWithIgnored(Float maxObservedCvssV3ScoreWithIgnored)Maximum Common Vulnerability Scoring System Version 3 score observed for vulnerable application dependencies including ignored ones.VulnerabilityAudit.BuildermaxObservedSeverity(VulnerabilitySeverity maxObservedSeverity)Maximum ADM Severity observed for non-ignored vulnerable application dependencies.VulnerabilityAudit.BuildermaxObservedSeverityWithIgnored(VulnerabilitySeverity maxObservedSeverityWithIgnored)Maximum ADM Severity observed for vulnerable application dependencies including ignored ones.VulnerabilityAudit.Buildersource(VulnerabilityAuditSource source)VulnerabilityAudit.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.VulnerabilityAudit.BuildertimeCreated(Date timeCreated)The creation date and time of the vulnerability audit (formatted according to RFC3339).VulnerabilityAudit.BuildertimeUpdated(Date timeUpdated)The update date and time of the vulnerability audit (formatted according to RFC3339).VulnerabilityAudit.BuilderusageData(UsageDataDetails usageData)VulnerabilityAudit.Buildervulnerabilities(List<Vulnerability> vulnerabilities)List of vulnerabilities found in the vulnerability audit.VulnerabilityAudit.BuildervulnerableArtifactsCount(Integer vulnerableArtifactsCount)Count of non-ignored vulnerable application dependencies.VulnerabilityAudit.BuildervulnerableArtifactsCountWithIgnored(Integer vulnerableArtifactsCountWithIgnored)Count of all vulnerable application dependencies.
-
-
-
Method Detail
-
id
public VulnerabilityAudit.Builder id(String id)
The Oracle Cloud identifier (OCID) of the vulnerability audit.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public VulnerabilityAudit.Builder displayName(String displayName)
The name of the vulnerability audit.- Parameters:
displayName- the value to set- Returns:
- this builder
-
knowledgeBaseId
public VulnerabilityAudit.Builder knowledgeBaseId(String knowledgeBaseId)
The Oracle Cloud identifier (OCID) of the knowledge base.- Parameters:
knowledgeBaseId- the value to set- Returns:
- this builder
-
timeCreated
public VulnerabilityAudit.Builder timeCreated(Date timeCreated)
The creation date and time of the vulnerability audit (formatted according to RFC3339).- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public VulnerabilityAudit.Builder timeUpdated(Date timeUpdated)
The update date and time of the vulnerability audit (formatted according to RFC3339).- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public VulnerabilityAudit.Builder lifecycleState(VulnerabilityAudit.LifecycleState lifecycleState)
The current lifecycle state of the vulnerability audit.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public VulnerabilityAudit.Builder lifecycleDetails(VulnerabilityAudit.LifecycleDetails lifecycleDetails)
Details on the lifecycle state.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
vulnerabilities
public 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.
- Parameters:
vulnerabilities- the value to set- Returns:
- this builder
-
maxObservedCvssV2Score
public VulnerabilityAudit.Builder maxObservedCvssV2Score(Float maxObservedCvssV2Score)
Maximum Common Vulnerability Scoring System Version 2 score observed for non-ignored vulnerable application dependencies.- Parameters:
maxObservedCvssV2Score- the value to set- Returns:
- this builder
-
maxObservedCvssV3Score
public VulnerabilityAudit.Builder maxObservedCvssV3Score(Float maxObservedCvssV3Score)
Maximum Common Vulnerability Scoring System Version 3 score observed for non-ignored vulnerable application dependencies.- Parameters:
maxObservedCvssV3Score- the value to set- Returns:
- this builder
-
maxObservedSeverity
public VulnerabilityAudit.Builder maxObservedSeverity(VulnerabilitySeverity maxObservedSeverity)
Maximum ADM Severity observed for non-ignored vulnerable application dependencies.- Parameters:
maxObservedSeverity- the value to set- Returns:
- this builder
-
maxObservedCvssV2ScoreWithIgnored
public VulnerabilityAudit.Builder maxObservedCvssV2ScoreWithIgnored(Float maxObservedCvssV2ScoreWithIgnored)
Maximum Common Vulnerability Scoring System Version 2 score observed for vulnerable application dependencies including ignored ones.- Parameters:
maxObservedCvssV2ScoreWithIgnored- the value to set- Returns:
- this builder
-
maxObservedCvssV3ScoreWithIgnored
public VulnerabilityAudit.Builder maxObservedCvssV3ScoreWithIgnored(Float maxObservedCvssV3ScoreWithIgnored)
Maximum Common Vulnerability Scoring System Version 3 score observed for vulnerable application dependencies including ignored ones.- Parameters:
maxObservedCvssV3ScoreWithIgnored- the value to set- Returns:
- this builder
-
maxObservedSeverityWithIgnored
public VulnerabilityAudit.Builder maxObservedSeverityWithIgnored(VulnerabilitySeverity maxObservedSeverityWithIgnored)
Maximum ADM Severity observed for vulnerable application dependencies including ignored ones.- Parameters:
maxObservedSeverityWithIgnored- the value to set- Returns:
- this builder
-
vulnerableArtifactsCountWithIgnored
public VulnerabilityAudit.Builder vulnerableArtifactsCountWithIgnored(Integer vulnerableArtifactsCountWithIgnored)
Count of all vulnerable application dependencies.- Parameters:
vulnerableArtifactsCountWithIgnored- the value to set- Returns:
- this builder
-
vulnerableArtifactsCount
public VulnerabilityAudit.Builder vulnerableArtifactsCount(Integer vulnerableArtifactsCount)
Count of non-ignored vulnerable application dependencies.- Parameters:
vulnerableArtifactsCount- the value to set- Returns:
- this builder
-
configuration
public VulnerabilityAudit.Builder configuration(VulnerabilityAuditConfiguration configuration)
-
usageData
public VulnerabilityAudit.Builder usageData(UsageDataDetails usageData)
-
isSuccess
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.
- Parameters:
isSuccess- the value to set- Returns:
- this builder
-
buildType
public 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.
- Parameters:
buildType- the value to set- Returns:
- this builder
-
source
public VulnerabilityAudit.Builder source(VulnerabilityAuditSource source)
-
compartmentId
public VulnerabilityAudit.Builder compartmentId(String compartmentId)
The compartment Oracle Cloud identifier (OCID) of the vulnerability audit.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
freeformTags
public 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”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public 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”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public 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”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public VulnerabilityAudit build()
-
copy
public VulnerabilityAudit.Builder copy(VulnerabilityAudit model)
-
-