Package com.oracle.bmc.adm.model
Class CreateVulnerabilityAuditDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.adm.model.CreateVulnerabilityAuditDetails.Builder
-
- Enclosing class:
- CreateVulnerabilityAuditDetails
public static class CreateVulnerabilityAuditDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
knowledgeBaseId
public CreateVulnerabilityAuditDetails.Builder knowledgeBaseId(String knowledgeBaseId)
The Oracle Cloud identifier (OCID) of the knowledge base.- Parameters:
knowledgeBaseId
- the value to set- Returns:
- this builder
-
compartmentId
public CreateVulnerabilityAuditDetails.Builder compartmentId(String compartmentId)
The compartment Oracle Cloud identifier (OCID) of the vulnerability audit.If compartment identifier is not provided the compartment of the associated knowledge base will be used instead.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
applicationDependencies
public CreateVulnerabilityAuditDetails.Builder applicationDependencies(List<ApplicationDependency> applicationDependencies)
List of application dependencies (without vulnerabilities).- Parameters:
applicationDependencies
- the value to set- Returns:
- this builder
-
buildType
public CreateVulnerabilityAuditDetails.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
-
configuration
public CreateVulnerabilityAuditDetails.Builder configuration(VulnerabilityAuditConfiguration configuration)
-
usageData
public CreateVulnerabilityAuditDetails.Builder usageData(UsageDataDetails usageData)
-
displayName
public CreateVulnerabilityAuditDetails.Builder displayName(String displayName)
The name of the vulnerability audit.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
source
public CreateVulnerabilityAuditDetails.Builder source(VulnerabilityAuditSource source)
-
freeformTags
public CreateVulnerabilityAuditDetails.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 CreateVulnerabilityAuditDetails.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
-
build
public CreateVulnerabilityAuditDetails build()
-
copy
public CreateVulnerabilityAuditDetails.Builder copy(CreateVulnerabilityAuditDetails model)
-
-