Class LibraryUsage.Builder
- java.lang.Object
-
- com.oracle.bmc.jms.model.LibraryUsage.Builder
-
- Enclosing class:
- LibraryUsage
public static class LibraryUsage.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LibraryUsage.Builder
approximateApplicationCount(Integer approximateApplicationCount)
The approximate count of applications using the library.LibraryUsage.Builder
approximateDeployedApplicationCount(Integer approximateDeployedApplicationCount)
The approximate count of deployed applications using the library.LibraryUsage.Builder
approximateJavaServerInstanceCount(Integer approximateJavaServerInstanceCount)
The approximate count of Java Server instances using the library.LibraryUsage.Builder
approximateManagedInstanceCount(Integer approximateManagedInstanceCount)
The approximate count of managed instances using the library.LibraryUsage
build()
LibraryUsage.Builder
confidenceLevel(ConfidenceLevel confidenceLevel)
Confidence level of the assessed library’s vulnerabilities.LibraryUsage.Builder
copy(LibraryUsage model)
LibraryUsage.Builder
cveId(String cveId)
Deprecated, use vulnerabilities instead.LibraryUsage.Builder
cvssScore(Float cvssScore)
Deprecated, use highestVulnerabilityScore instead.LibraryUsage.Builder
fleetId(String fleetId)
The OCID of the related fleet.LibraryUsage.Builder
highestVulnerabilityScore(Float highestVulnerabilityScore)
Highest CVSS score among the all vulnerabilities.LibraryUsage.Builder
isDynamicallyDetected(Boolean isDynamicallyDetected)
Indicates whether the library was dynamically detected.LibraryUsage.Builder
libraryKey(String libraryKey)
The internal identifier of the library.LibraryUsage.Builder
libraryName(String libraryName)
The name of the library.LibraryUsage.Builder
libraryVersion(String libraryVersion)
The version of the library.LibraryUsage.Builder
timeEnd(Date timeEnd)
Upper bound of the specified time period filter.LibraryUsage.Builder
timeFirstSeen(Date timeFirstSeen)
The date and time the resource was first reported to JMS.LibraryUsage.Builder
timeLastCveRefreshed(Date timeLastCveRefreshed)
Deprecated.LibraryUsage.Builder
timeLastSeen(Date timeLastSeen)
The date and time the resource was last reported to JMS.LibraryUsage.Builder
timeStart(Date timeStart)
Lower bound of the specified time period filter.LibraryUsage.Builder
vulnerabilities(List<LibraryVulnerability> vulnerabilities)
The list of library vulnerabilities.
-
-
-
Method Detail
-
libraryKey
public LibraryUsage.Builder libraryKey(String libraryKey)
The internal identifier of the library.- Parameters:
libraryKey
- the value to set- Returns:
- this builder
-
fleetId
public LibraryUsage.Builder fleetId(String fleetId)
The OCID of the related fleet.- Parameters:
fleetId
- the value to set- Returns:
- this builder
-
libraryName
public LibraryUsage.Builder libraryName(String libraryName)
The name of the library.- Parameters:
libraryName
- the value to set- Returns:
- this builder
-
libraryVersion
public LibraryUsage.Builder libraryVersion(String libraryVersion)
The version of the library.- Parameters:
libraryVersion
- the value to set- Returns:
- this builder
-
cveId
public LibraryUsage.Builder cveId(String cveId)
Deprecated, use vulnerabilities instead.The Common Vulnerabilities and Exposures (CVE) ID.
- Parameters:
cveId
- the value to set- Returns:
- this builder
-
cvssScore
public LibraryUsage.Builder cvssScore(Float cvssScore)
Deprecated, use highestVulnerabilityScore instead.The Common Vulnerability Scoring System (CVSS) score. If cvssScore is not available, it will be set to -1.0. It is set to 0.0 when cveId is null.
- Parameters:
cvssScore
- the value to set- Returns:
- this builder
-
isDynamicallyDetected
public LibraryUsage.Builder isDynamicallyDetected(Boolean isDynamicallyDetected)
Indicates whether the library was dynamically detected.- Parameters:
isDynamicallyDetected
- the value to set- Returns:
- this builder
-
highestVulnerabilityScore
public LibraryUsage.Builder highestVulnerabilityScore(Float highestVulnerabilityScore)
Highest CVSS score among the all vulnerabilities.If highest CVSS score is not available, it will be set to -1.0. It is set to 0.0 when there is no associated vulnerabilities.
- Parameters:
highestVulnerabilityScore
- the value to set- Returns:
- this builder
-
vulnerabilities
public LibraryUsage.Builder vulnerabilities(List<LibraryVulnerability> vulnerabilities)
The list of library vulnerabilities.- Parameters:
vulnerabilities
- the value to set- Returns:
- this builder
-
confidenceLevel
public LibraryUsage.Builder confidenceLevel(ConfidenceLevel confidenceLevel)
Confidence level of the assessed library’s vulnerabilities.- Parameters:
confidenceLevel
- the value to set- Returns:
- this builder
-
approximateApplicationCount
public LibraryUsage.Builder approximateApplicationCount(Integer approximateApplicationCount)
The approximate count of applications using the library.- Parameters:
approximateApplicationCount
- the value to set- Returns:
- this builder
-
approximateJavaServerInstanceCount
public LibraryUsage.Builder approximateJavaServerInstanceCount(Integer approximateJavaServerInstanceCount)
The approximate count of Java Server instances using the library.- Parameters:
approximateJavaServerInstanceCount
- the value to set- Returns:
- this builder
-
approximateDeployedApplicationCount
public LibraryUsage.Builder approximateDeployedApplicationCount(Integer approximateDeployedApplicationCount)
The approximate count of deployed applications using the library.- Parameters:
approximateDeployedApplicationCount
- the value to set- Returns:
- this builder
-
approximateManagedInstanceCount
public LibraryUsage.Builder approximateManagedInstanceCount(Integer approximateManagedInstanceCount)
The approximate count of managed instances using the library.- Parameters:
approximateManagedInstanceCount
- the value to set- Returns:
- this builder
-
timeStart
public LibraryUsage.Builder timeStart(Date timeStart)
Lower bound of the specified time period filter.JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- Parameters:
timeStart
- the value to set- Returns:
- this builder
-
timeEnd
public LibraryUsage.Builder timeEnd(Date timeEnd)
Upper bound of the specified time period filter.JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- Parameters:
timeEnd
- the value to set- Returns:
- this builder
-
timeFirstSeen
public LibraryUsage.Builder timeFirstSeen(Date timeFirstSeen)
The date and time the resource was first reported to JMS.This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.
- Parameters:
timeFirstSeen
- the value to set- Returns:
- this builder
-
timeLastSeen
public LibraryUsage.Builder timeLastSeen(Date timeLastSeen)
The date and time the resource was last reported to JMS.This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.
- Parameters:
timeLastSeen
- the value to set- Returns:
- this builder
-
timeLastCveRefreshed
public LibraryUsage.Builder timeLastCveRefreshed(Date timeLastCveRefreshed)
Deprecated.The date and time of the last CVEs refresh was completed.
- Parameters:
timeLastCveRefreshed
- the value to set- Returns:
- this builder
-
build
public LibraryUsage build()
-
copy
public LibraryUsage.Builder copy(LibraryUsage model)
-
-