public static class ContainerScanResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContainerScanResult |
build() |
ContainerScanResult.Builder |
compartmentId(String compartmentId)
The OCID
of the container scan result’s compartment.
|
ContainerScanResult.Builder |
containerScanTargetId(String containerScanTargetId)
The OCID
of container scan target.
|
ContainerScanResult.Builder |
copy(ContainerScanResult model) |
ContainerScanResult.Builder |
highestProblemSeverity(ScanResultProblemSeverity highestProblemSeverity)
Highest problem severity in this report
|
ContainerScanResult.Builder |
id(String id)
The OCID
of container scan result.
|
ContainerScanResult.Builder |
image(String image)
Image name
|
ContainerScanResult.Builder |
problemCount(Integer problemCount)
Total number of problems found in this scan
|
ContainerScanResult.Builder |
problems(List<ContainerScanResultProblem> problems)
List of problems found in this scan
|
ContainerScanResult.Builder |
registryUrl(String registryUrl)
The URL of the docker registry the repository is located in.
|
ContainerScanResult.Builder |
repository(String repository)
Repository in which the container image scanned is located
|
ContainerScanResult.Builder |
targetCompartmentId(String targetCompartmentId)
The OCID
of the compartment to where scan was performed.
|
ContainerScanResult.Builder |
timeFinished(Date timeFinished)
Date and time the scan was completed, as described in RFC
3339
|
ContainerScanResult.Builder |
timeStarted(Date timeStarted)
Date and time the scan was started, as described in RFC
3339
|
public ContainerScanResult.Builder id(String id)
The OCID of container scan result. Immutable and generated on creation.
id
- the value to setpublic ContainerScanResult.Builder registryUrl(String registryUrl)
The URL of the docker registry the repository is located in.
registryUrl
- the value to setpublic ContainerScanResult.Builder repository(String repository)
Repository in which the container image scanned is located
repository
- the value to setpublic ContainerScanResult.Builder image(String image)
Image name
image
- the value to setpublic 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
compartmentId
- the value to setpublic ContainerScanResult.Builder targetCompartmentId(String targetCompartmentId)
The OCID of the compartment to where scan was performed.
targetCompartmentId
- the value to setpublic ContainerScanResult.Builder containerScanTargetId(String containerScanTargetId)
The OCID of container scan target.
containerScanTargetId
- the value to setpublic ContainerScanResult.Builder highestProblemSeverity(ScanResultProblemSeverity highestProblemSeverity)
Highest problem severity in this report
highestProblemSeverity
- the value to setpublic ContainerScanResult.Builder problemCount(Integer problemCount)
Total number of problems found in this scan
problemCount
- the value to setpublic ContainerScanResult.Builder timeStarted(Date timeStarted)
Date and time the scan was started, as described in RFC 3339
timeStarted
- the value to setpublic ContainerScanResult.Builder timeFinished(Date timeFinished)
Date and time the scan was completed, as described in RFC 3339
timeFinished
- the value to setpublic ContainerScanResult.Builder problems(List<ContainerScanResultProblem> problems)
List of problems found in this scan
problems
- the value to setpublic ContainerScanResult build()
public ContainerScanResult.Builder copy(ContainerScanResult model)
Copyright © 2016–2024. All rights reserved.