Class BuildMetadata
java.lang.Object
org.apache.commons.release.plugin.slsa.v1_2.BuildMetadata
Metadata about a build invocation: its identifier and start and finish timestamps.
- Since:
- 1.10.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new BuildMetadata instance.BuildMetadata(String invocationId, OffsetDateTime startedOn, OffsetDateTime finishedOn) Creates a new BuildMetadata instance with all fields set. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the timestamp of when the build completed, serialized as RFC 3339 in UTC ("Z"suffix).Gets the identifier for this build invocation.Gets the timestamp of when the build started, serialized as RFC 3339 in UTC ("Z"suffix).inthashCode()setFinishedOn(OffsetDateTime finishedOn) Sets the timestamp of when the build completed.setInvocationId(String invocationId) Sets the identifier for this build invocation.setStartedOn(OffsetDateTime startedOn) Sets the timestamp of when the build started.toString()
-
Constructor Details
-
BuildMetadata
public BuildMetadata()Creates a new BuildMetadata instance. -
BuildMetadata
Creates a new BuildMetadata instance with all fields set.- Parameters:
invocationId- identifier for this build invocation.startedOn- timestamp when the build started.finishedOn- timestamp when the build completed.
-
-
Method Details
-
equals
-
getFinishedOn
Gets the timestamp of when the build completed, serialized as RFC 3339 in UTC ("Z"suffix).- Returns:
- The completion timestamp, or
nullif not set.
-
getInvocationId
Gets the identifier for this build invocation.- Returns:
- The invocation identifier, or
nullif not set.
-
getStartedOn
Gets the timestamp of when the build started, serialized as RFC 3339 in UTC ("Z"suffix).- Returns:
- The start timestamp, or
nullif not set.
-
hashCode
-
setFinishedOn
Sets the timestamp of when the build completed.- Parameters:
finishedOn- The completion timestamp.- Returns:
- this for chaining.
-
setInvocationId
Sets the identifier for this build invocation.- Parameters:
invocationId- The invocation identifier.- Returns:
- this for chaining.
-
setStartedOn
Sets the timestamp of when the build started.- Parameters:
startedOn- The start timestamp.- Returns:
- this for chaining.
-
toString
-