Record Class PipelineCrawlerResource.PipelineCrawlPayload.JdbcPayload

java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.pipelinecrawl.PipelineCrawlerResource.PipelineCrawlPayload.JdbcPayload
Record Components:
useExternalDb - when true, crawl an external database instead of the provisioned one
jdbcUrl - the JDBC connection URL
jdbcUsername - the JDBC username
jdbcPassword - the JDBC password
maxDocuments - cap on documents to crawl; applied only when present and greater than zero
Enclosing class:
PipelineCrawlerResource.PipelineCrawlPayload

public static record PipelineCrawlerResource.PipelineCrawlPayload.JdbcPayload(Boolean useExternalDb, String jdbcUrl, String jdbcUsername, String jdbcPassword, Integer maxDocuments) extends Record
JDBC source payload. Only meaningful when the request source is "JDBC". Unset fields leave the corresponding proto field at its default.
  • Constructor Details

    • JdbcPayload

      public JdbcPayload(Boolean useExternalDb, String jdbcUrl, String jdbcUsername, String jdbcPassword, Integer maxDocuments)
      Creates an instance of a JdbcPayload record class.
      Parameters:
      useExternalDb - the value for the useExternalDb record component
      jdbcUrl - the value for the jdbcUrl record component
      jdbcUsername - the value for the jdbcUsername record component
      jdbcPassword - the value for the jdbcPassword record component
      maxDocuments - the value for the maxDocuments 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.
    • useExternalDb

      public Boolean useExternalDb()
      Returns the value of the useExternalDb record component.
      Returns:
      the value of the useExternalDb record component
    • jdbcUrl

      public String jdbcUrl()
      Returns the value of the jdbcUrl record component.
      Returns:
      the value of the jdbcUrl record component
    • jdbcUsername

      public String jdbcUsername()
      Returns the value of the jdbcUsername record component.
      Returns:
      the value of the jdbcUsername record component
    • jdbcPassword

      public String jdbcPassword()
      Returns the value of the jdbcPassword record component.
      Returns:
      the value of the jdbcPassword record component
    • maxDocuments

      public Integer maxDocuments()
      Returns the value of the maxDocuments record component.
      Returns:
      the value of the maxDocuments record component