Class ContainerScanResult.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.ContainerScanResult.Builder
-
- Enclosing class:
- ContainerScanResult
public static class ContainerScanResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerScanResultbuild()ContainerScanResult.BuildercompartmentId(String compartmentId)The OCID of the container scan result’s compartment.ContainerScanResult.BuildercontainerScanTargetId(String containerScanTargetId)The OCID of container scan target.ContainerScanResult.Buildercopy(ContainerScanResult model)ContainerScanResult.BuilderhighestProblemSeverity(ScanResultProblemSeverity highestProblemSeverity)Highest problem severity in this reportContainerScanResult.Builderid(String id)The OCID of container scan result.ContainerScanResult.Builderimage(String image)Image nameContainerScanResult.BuilderproblemCount(Integer problemCount)Total number of problems found in this scanContainerScanResult.Builderproblems(List<ContainerScanResultProblem> problems)List of problems found in this scanContainerScanResult.BuilderregistryUrl(String registryUrl)The URL of the docker registry the repository is located in.ContainerScanResult.Builderrepository(String repository)Repository in which the container image scanned is locatedContainerScanResult.BuildertargetCompartmentId(String targetCompartmentId)The OCID of the compartment to where scan was performed.ContainerScanResult.BuildertimeFinished(Date timeFinished)Date and time the scan was completed, as described in RFC 3339ContainerScanResult.BuildertimeStarted(Date timeStarted)Date and time the scan was started, as described in RFC 3339
-
-
-
Method Detail
-
id
public ContainerScanResult.Builder id(String id)
The OCID of container scan result.Immutable and generated on creation.
- Parameters:
id- the value to set- Returns:
- this builder
-
registryUrl
public ContainerScanResult.Builder registryUrl(String registryUrl)
The URL of the docker registry the repository is located in.- Parameters:
registryUrl- the value to set- Returns:
- this builder
-
repository
public ContainerScanResult.Builder repository(String repository)
Repository in which the container image scanned is located- Parameters:
repository- the value to set- Returns:
- this builder
-
image
public ContainerScanResult.Builder image(String image)
Image name- Parameters:
image- the value to set- Returns:
- this builder
-
compartmentId
public ContainerScanResult.Builder compartmentId(String compartmentId)
The OCID of the container scan result’s compartment.This is set to the same as the compartmentId of the container scan target
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
targetCompartmentId
public ContainerScanResult.Builder targetCompartmentId(String targetCompartmentId)
The OCID of the compartment to where scan was performed.- Parameters:
targetCompartmentId- the value to set- Returns:
- this builder
-
containerScanTargetId
public ContainerScanResult.Builder containerScanTargetId(String containerScanTargetId)
The OCID of container scan target.- Parameters:
containerScanTargetId- the value to set- Returns:
- this builder
-
highestProblemSeverity
public ContainerScanResult.Builder highestProblemSeverity(ScanResultProblemSeverity highestProblemSeverity)
Highest problem severity in this report- Parameters:
highestProblemSeverity- the value to set- Returns:
- this builder
-
problemCount
public ContainerScanResult.Builder problemCount(Integer problemCount)
Total number of problems found in this scan- Parameters:
problemCount- the value to set- Returns:
- this builder
-
timeStarted
public ContainerScanResult.Builder timeStarted(Date timeStarted)
Date and time the scan was started, as described in RFC 3339- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeFinished
public ContainerScanResult.Builder timeFinished(Date timeFinished)
Date and time the scan was completed, as described in RFC 3339- Parameters:
timeFinished- the value to set- Returns:
- this builder
-
problems
public ContainerScanResult.Builder problems(List<ContainerScanResultProblem> problems)
List of problems found in this scan- Parameters:
problems- the value to set- Returns:
- this builder
-
build
public ContainerScanResult build()
-
copy
public ContainerScanResult.Builder copy(ContainerScanResult model)
-
-