Class Builder

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

public class Builder extends Object
Entity that executed the build and is trusted to have correctly performed the operation and populated the provenance.
Since:
1.10.0
See Also:
  • Field Details

  • Constructor Details

    • Builder

      public Builder()
      Creates a new Builder instance.
  • Method Details

    • equals

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

      Gets orchestrator dependencies that do not run within the build workload and do not affect the build output, but may affect provenance generation or security guarantees.
      Returns:
      The list of builder dependencies, or null if not set.
    • getId

      public String getId()
      Gets the identifier of the builder.
      Returns:
      The builder identifier URI.
    • getVersion

      Gets a map of build platform component names to their versions.
      Returns:
      The version map, or null if not set.
    • hashCode

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

      public Builder setBuilderDependencies(List<ResourceDescriptor> builderDependencies)
      Sets the orchestrator dependencies that may affect provenance generation or security guarantees.
      Parameters:
      builderDependencies - The list of builder dependencies.
      Returns:
      this for chaining.
    • setId

      public Builder setId(String id)
      Sets the identifier of the builder.
      Parameters:
      id - The builder identifier URI.
      Returns:
      this for chaining.
    • setVersion

      public Builder setVersion(Map<String,String> version)
      Sets the map of build platform component names to their versions.
      Parameters:
      version - The version map.
      Returns:
      this for chaining.
    • toString

      public String toString()
      Overrides:
      toString in class Object