Skip to content

Commit

Permalink
PRODFIX KafkaDLQDto builder kan ikke bruke non nullable (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
RuneLind authored Nov 6, 2024
1 parent 38db4b9 commit 2782ca8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ data class KafkaDLQDto(
private var melding: String? = null
private var skip: Boolean? = null

fun id(id: String) = apply { this.id = id }
fun id(id: String?) = apply { this.id = id }
fun queueType(queueType: QueueType) = apply { this.queueType = queueType }
fun tidRegistrert(tidRegistrert: LocalDateTime) = apply { this.tidRegistrert = tidRegistrert }
fun tidSistRekjort(tidSistRekjort: LocalDateTime) = apply { this.tidSistRekjort = tidSistRekjort }
fun sisteFeilmelding(sisteFeilmelding: String) = apply { this.sisteFeilmelding = sisteFeilmelding }
fun tidRegistrert(tidRegistrert: LocalDateTime?) = apply { this.tidRegistrert = tidRegistrert }
fun tidSistRekjort(tidSistRekjort: LocalDateTime?) = apply { this.tidSistRekjort = tidSistRekjort }
fun sisteFeilmelding(sisteFeilmelding: String?) = apply { this.sisteFeilmelding = sisteFeilmelding }
fun antallRekjoringer(antallRekjoringer: Int) = apply { this.antallRekjoringer = antallRekjoringer }
fun melding(melding: String) = apply { this.melding = melding }
fun skip(skip: Boolean) = apply { this.skip = skip }
fun melding(melding: String?) = apply { this.melding = melding }
fun skip(skip: Boolean?) = apply { this.skip = skip }

fun build() = KafkaDLQDto(
id = id,
Expand Down

0 comments on commit 2782ca8

Please sign in to comment.