Class BuildDefinition
java.lang.Object
org.apache.commons.release.plugin.slsa.v1_2.BuildDefinition
Inputs that define the build: the build type, external and internal parameters, and resolved dependencies.
Specifies everything that influenced the build output. Together with RunDetails, it forms the complete
Provenance record.
- Since:
- 1.10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringURI indicating what type of build was performed.Inputs passed to the build.Parameters set by the build platform.private List<ResourceDescriptor> Artifacts the build depends on, specified by URI and digest. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new BuildDefinition instance with the default build type.BuildDefinition(String buildType, Map<String, Object> externalParameters) Creates a new BuildDefinition with the given build type and external parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the URI indicating what type of build was performed.Gets the inputs passed to the build, such as command-line arguments or environment variables.Gets the parameters set by the build platform.Gets the materials that influenced the build.inthashCode()setBuildType(String buildType) Sets the URI indicating what type of build was performed.setExternalParameters(Map<String, Object> externalParameters) Sets the inputs passed to the build.setInternalParameters(Map<String, Object> internalParameters) Sets the parameters set by the build platform.setResolvedDependencies(List<ResourceDescriptor> resolvedDependencies) Sets the materials that influenced the build.toString()
-
Field Details
-
buildType
-
externalParameters
Inputs passed to the build. -
internalParameters
Parameters set by the build platform. -
resolvedDependencies
Artifacts the build depends on, specified by URI and digest.
-
-
Constructor Details
-
BuildDefinition
public BuildDefinition()Creates a new BuildDefinition instance with the default build type. -
BuildDefinition
Creates a new BuildDefinition with the given build type and external parameters.- Parameters:
buildType- URI indicating what type of build was performed.externalParameters- inputs passed to the build.
-
-
Method Details
-
equals
-
getBuildType
Gets the URI indicating what type of build was performed.Determines the meaning of
externalParametersandinternalParameters.- Returns:
- The build type URI.
-
getExternalParameters
Gets the inputs passed to the build, such as command-line arguments or environment variables.- Returns:
- The external parameters map, or
nullif not set.
-
getInternalParameters
Gets the parameters set by the build platform.- Returns:
- The internal parameters map, or
nullif not set.
-
getResolvedDependencies
Gets the materials that influenced the build.The dependency list is considered incomplete unless resolved materials are present.
- Returns:
- The list of resolved dependencies, or
nullif not set.
-
hashCode
-
setBuildType
Sets the URI indicating what type of build was performed.- Parameters:
buildType- The build type URI.- Returns:
- this for chaining.
-
setExternalParameters
Sets the inputs passed to the build.- Parameters:
externalParameters- The external parameters map.- Returns:
- this for chaining.
-
setInternalParameters
Sets the parameters set by the build platform.- Parameters:
internalParameters- The internal parameters map.- Returns:
- this for chaining.
-
setResolvedDependencies
Sets the materials that influenced the build.- Parameters:
resolvedDependencies- The list of resolved dependencies.- Returns:
- this for chaining.
-
toString
-