Class RunDetails

java.lang.Object
org.apache.commons.release.plugin.slsa.v1_2.RunDetails

public class RunDetails extends Object
Details about the build invocation: the builder identity, execution metadata, and any byproduct artifacts.
Since:
1.10.0
See Also:
  • Field Details

  • Constructor Details

    • RunDetails

      public RunDetails()
      Creates a new RunDetails instance.
    • RunDetails

      public RunDetails(Builder builder, BuildMetadata metadata)
      Creates a new RunDetails with the given builder and metadata.
      Parameters:
      builder - entity that executed the build.
      metadata - metadata about the build invocation.
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getBuilder

      public Builder getBuilder()
      Gets the builder that executed the invocation.

      The builder is trusted to have correctly performed the operation and populated this provenance.

      Returns:
      The builder, or null if not set.
    • getByproducts

      Gets artifacts produced as a side effect of the build that are not the primary output.
      Returns:
      The list of byproduct artifacts, or null if not set.
    • getMetadata

      Gets the metadata about the build invocation, including its identifier and timing.
      Returns:
      The build metadata, or null if not set.
    • hashCode

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

      public RunDetails setBuilder(Builder builder)
      Sets the builder that executed the invocation.
      Parameters:
      builder - The builder.
      Returns:
      this for chaining.
    • setByproducts

      Sets the artifacts produced as a side effect of the build that are not the primary output.
      Parameters:
      byproducts - The list of byproduct artifacts.
      Returns:
      this for chaining.
    • setMetadata

      Sets the metadata about the build invocation.
      Parameters:
      metadata - The build metadata.
      Returns:
      this for chaining.
    • toString

      public String toString()
      Overrides:
      toString in class Object