Class ArtifactChange

java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.ArtifactChange

public class ArtifactChange extends Object
A change to a single artifact.
  • Constructor Details

    • ArtifactChange

      public ArtifactChange()
  • Method Details

    • getArtifactLocation

      public ArtifactLocation getArtifactLocation()
      Specifies the location of an artifact. (Required)
    • setArtifactLocation

      public void setArtifactLocation(ArtifactLocation artifactLocation)
      Specifies the location of an artifact. (Required)
    • withArtifactLocation

      public ArtifactChange withArtifactLocation(ArtifactLocation artifactLocation)
    • getReplacements

      public List<Replacement> getReplacements()
      An array of replacement objects, each of which represents the replacement of a single region in a single artifact specified by 'artifactLocation'. (Required)
    • setReplacements

      public void setReplacements(List<Replacement> replacements)
      An array of replacement objects, each of which represents the replacement of a single region in a single artifact specified by 'artifactLocation'. (Required)
    • withReplacements

      public ArtifactChange withReplacements(List<Replacement> replacements)
    • getProperties

      public PropertyBag getProperties()
      Key/value pairs that provide additional information about the object.
    • setProperties

      public void setProperties(PropertyBag properties)
      Key/value pairs that provide additional information about the object.
    • withProperties

      public ArtifactChange withProperties(PropertyBag properties)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object