Package se.diabol.jenkins.pipeline.model
Record Class ManualStep
java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.model.ManualStep
- Record Components:
upstreamJob- full name of the job whose build the trigger continues fromupstreamBuild- number of that build, or null when there is nothing to continue from yetenabled- whether the trigger can be used right now
@ExportedBean(defaultVisibility=100)
public record ManualStep(String upstreamJob, Integer upstreamBuild, boolean enabled)
extends Record
A task that a person has to trigger, as the Build Pipeline plugin's manual trigger defines it.
-
Constructor Summary
ConstructorsConstructorDescriptionManualStep(String upstreamJob, Integer upstreamBuild, boolean enabled) Creates an instance of aManualSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theupstreamBuildrecord component.Returns the value of theupstreamJobrecord component.
-
Constructor Details
-
ManualStep
Creates an instance of aManualSteprecord class.- Parameters:
upstreamJob- the value for theupstreamJobrecord componentupstreamBuild- the value for theupstreamBuildrecord componentenabled- the value for theenabledrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
upstreamJob
Returns the value of theupstreamJobrecord component.- Returns:
- the value of the
upstreamJobrecord component
-
upstreamBuild
Returns the value of theupstreamBuildrecord component.- Returns:
- the value of the
upstreamBuildrecord component
-
enabled
@Exported public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-