Class RunDetails
java.lang.Object
org.apache.commons.release.plugin.slsa.v1_2.RunDetails
Details about the build invocation: the builder identity, execution metadata, and any byproduct artifacts.
- Since:
- 1.10.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RunDetails instance.RunDetails(Builder builder, BuildMetadata metadata) Creates a new RunDetails with the given builder and metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the builder that executed the invocation.Gets artifacts produced as a side effect of the build that are not the primary output.Gets the metadata about the build invocation, including its identifier and timing.inthashCode()setBuilder(Builder builder) Sets the builder that executed the invocation.setByproducts(List<ResourceDescriptor> byproducts) Sets the artifacts produced as a side effect of the build that are not the primary output.setMetadata(BuildMetadata metadata) Sets the metadata about the build invocation.toString()
-
Constructor Details
-
RunDetails
public RunDetails()Creates a new RunDetails instance. -
RunDetails
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
-
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
nullif 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
nullif not set.
-
getMetadata
Gets the metadata about the build invocation, including its identifier and timing.- Returns:
- The build metadata, or
nullif not set.
-
hashCode
-
setBuilder
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
-