@Generated(value="OracleSDKGenerator", comments="API Version: 20210215") public final class ContainerScanResult extends ExplicitlySetBmcModel
A scan result for a container scan
Note: Objects should always be created or deserialized using the ContainerScanResult.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the ContainerScanResult.Builder
, which maintain a set of all explicitly set fields called
ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
ExplicitlySetBmcModel.__explicitlySet__
into account. The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ContainerScanResult.Builder |
Constructor and Description |
---|
ContainerScanResult(String id,
String registryUrl,
String repository,
String image,
String compartmentId,
String targetCompartmentId,
String containerScanTargetId,
ScanResultProblemSeverity highestProblemSeverity,
Integer problemCount,
Date timeStarted,
Date timeFinished,
List<ContainerScanResultProblem> problems)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ContainerScanResult.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
The OCID of the container scan result’s compartment.
|
String |
getContainerScanTargetId()
The OCID of container scan target.
|
ScanResultProblemSeverity |
getHighestProblemSeverity()
Highest problem severity in this report
|
String |
getId()
The OCID of container scan result.
|
String |
getImage()
Image name
|
Integer |
getProblemCount()
Total number of problems found in this scan
|
List<ContainerScanResultProblem> |
getProblems()
List of problems found in this scan
|
String |
getRegistryUrl()
The URL of the docker registry the repository is located in.
|
String |
getRepository()
Repository in which the container image scanned is located
|
String |
getTargetCompartmentId()
The OCID of the compartment to where scan was performed.
|
Date |
getTimeFinished()
Date and time the scan was completed, as described in RFC 3339
|
Date |
getTimeStarted()
Date and time the scan was started, as described in RFC 3339
|
int |
hashCode() |
ContainerScanResult.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","registryUrl","repository","image","compartmentId","targetCompartmentId","containerScanTargetId","highestProblemSeverity","problemCount","timeStarted","timeFinished","problems"}) public ContainerScanResult(String id, String registryUrl, String repository, String image, String compartmentId, String targetCompartmentId, String containerScanTargetId, ScanResultProblemSeverity highestProblemSeverity, Integer problemCount, Date timeStarted, Date timeFinished, List<ContainerScanResultProblem> problems)
public static ContainerScanResult.Builder builder()
Create a new builder.
public ContainerScanResult.Builder toBuilder()
public String getId()
The OCID of container scan result. Immutable and generated on creation.
public String getRegistryUrl()
The URL of the docker registry the repository is located in.
public String getRepository()
Repository in which the container image scanned is located
public String getImage()
Image name
public String getCompartmentId()
The OCID of the container scan result’s compartment. This is set to the same as the compartmentId of the container scan target
public String getTargetCompartmentId()
The OCID of the compartment to where scan was performed.
public String getContainerScanTargetId()
The OCID of container scan target.
public ScanResultProblemSeverity getHighestProblemSeverity()
Highest problem severity in this report
public Integer getProblemCount()
Total number of problems found in this scan
public Date getTimeStarted()
Date and time the scan was started, as described in RFC 3339
public Date getTimeFinished()
Date and time the scan was completed, as described in RFC 3339
public List<ContainerScanResultProblem> getProblems()
List of problems found in this scan
public String toString()
toString
in class ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ExplicitlySetBmcModel
public int hashCode()
hashCode
in class ExplicitlySetBmcModel
Copyright © 2016–2022. All rights reserved.