@Generated(value="OracleSDKGenerator", comments="API Version: 20210215") public final class Package extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Details of the vulnerable package found
Note: Objects should always be created or deserialized using the Package.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 Package.Builder
, which maintain a
set of all explicitly set fields called Package.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Package.Builder |
static class |
Package.Type
Package type
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Package(String name,
String version,
String cveFixVersion,
Package.Type type,
List<String> locations)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Package.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCveFixVersion()
Package version in which the CVE was fixed
|
List<String> |
getLocations()
Disk locations where package was found
|
String |
getName()
Name of the package
|
Package.Type |
getType()
Package type
|
String |
getVersion()
Package version
|
int |
hashCode() |
Package.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"name","version","cveFixVersion","type","locations"}) public Package(String name, String version, String cveFixVersion, Package.Type type, List<String> locations)
public static Package.Builder builder()
Create a new builder.
public Package.Builder toBuilder()
public String getName()
Name of the package
public String getVersion()
Package version
public String getCveFixVersion()
Package version in which the CVE was fixed
public Package.Type getType()
Package type
public List<String> getLocations()
Disk locations where package was found
public String toString()
toString
in class com.oracle.bmc.http.client.internal.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 com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.