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 from
upstreamBuild - number of that build, or null when there is nothing to continue from yet
enabled - 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 Details

    • ManualStep

      public ManualStep(String upstreamJob, Integer upstreamBuild, boolean enabled)
      Creates an instance of a ManualStep record class.
      Parameters:
      upstreamJob - the value for the upstreamJob record component
      upstreamBuild - the value for the upstreamBuild record component
      enabled - the value for the enabled record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • upstreamJob

      @Exported public String upstreamJob()
      Returns the value of the upstreamJob record component.
      Returns:
      the value of the upstreamJob record component
    • upstreamBuild

      @Exported public Integer upstreamBuild()
      Returns the value of the upstreamBuild record component.
      Returns:
      the value of the upstreamBuild record component
    • enabled

      @Exported public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component