Package org.axonframework.update.api
Record Class DetectedVulnerability
java.lang.Object
java.lang.Record
org.axonframework.update.api.DetectedVulnerability
- Record Components:
groupId- The group ID of the artifact.artifactId- The artifact ID of the artifact.severity- The severity of the vulnerability, represented by theDetectedVulnerabilitySeverityenum.fixVersion- The recommended version to fix the vulnerability.description- A description of the vulnerability, providing details about its nature and impact.
@Internal
public record DetectedVulnerability(@Nonnull String groupId, @Nonnull String artifactId, @Nonnull DetectedVulnerabilitySeverity severity, @Nonnull String fixVersion, @Nonnull String description)
extends Record
Represents a vulnerability in an AxonIQ Artifact in use. This record contains information about the
artifact's group ID, artifact ID, severity of the vulnerability, the recommended fix version, and a description of the
vulnerability.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Constructor Summary
ConstructorsConstructorDescriptionDetectedVulnerability(String groupId, String artifactId, DetectedVulnerabilitySeverity severity, String fixVersion, String description) Creates an instance of aDetectedVulnerabilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefixVersionrecord component.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DetectedVulnerability
public DetectedVulnerability(@Nonnull String groupId, @Nonnull String artifactId, @Nonnull DetectedVulnerabilitySeverity severity, @Nonnull String fixVersion, @Nonnull String description) Creates an instance of aDetectedVulnerabilityrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentseverity- the value for theseverityrecord componentfixVersion- the value for thefixVersionrecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
fixVersion
Returns the value of thefixVersionrecord component.- Returns:
- the value of the
fixVersionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-