Record Class BuildIntegrationRequest

java.lang.Object
java.lang.Record
dev.archunitjava.integration.BuildIntegrationRequest

public record BuildIntegrationRequest(BuildTool tool, String lifecycle, Path approvedRoot, Path configuration, List<Path> compiledOutputs, BuildCommand command, Optional<CliResultFormat> resultFormat, Optional<CliGraphFormat> graphFormat) extends Record
Lossless mapping from build-tool inputs to the shared CLI/library contract.
  • Constructor Details

    • BuildIntegrationRequest

      public BuildIntegrationRequest(BuildTool tool, String lifecycle, Path approvedRoot, Path configuration, List<Path> compiledOutputs, BuildCommand command, Optional<CliResultFormat> resultFormat, Optional<CliGraphFormat> graphFormat)
      Creates an instance of a BuildIntegrationRequest record class.
      Parameters:
      tool - the value for the tool record component
      lifecycle - the value for the lifecycle record component
      approvedRoot - the value for the approvedRoot record component
      configuration - the value for the configuration record component
      compiledOutputs - the value for the compiledOutputs record component
      command - the value for the command record component
      resultFormat - the value for the resultFormat record component
      graphFormat - the value for the graphFormat 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • tool

      public BuildTool tool()
      Returns the value of the tool record component.
      Returns:
      the value of the tool record component
    • lifecycle

      public String lifecycle()
      Returns the value of the lifecycle record component.
      Returns:
      the value of the lifecycle record component
    • approvedRoot

      public Path approvedRoot()
      Returns the value of the approvedRoot record component.
      Returns:
      the value of the approvedRoot record component
    • configuration

      public Path configuration()
      Returns the value of the configuration record component.
      Returns:
      the value of the configuration record component
    • compiledOutputs

      public List<Path> compiledOutputs()
      Returns the value of the compiledOutputs record component.
      Returns:
      the value of the compiledOutputs record component
    • command

      public BuildCommand command()
      Returns the value of the command record component.
      Returns:
      the value of the command record component
    • resultFormat

      public Optional<CliResultFormat> resultFormat()
      Returns the value of the resultFormat record component.
      Returns:
      the value of the resultFormat record component
    • graphFormat

      public Optional<CliGraphFormat> graphFormat()
      Returns the value of the graphFormat record component.
      Returns:
      the value of the graphFormat record component