@@ -41,6 +41,9 @@ private constructor(
4141 @JsonProperty(" events_ingested" )
4242 @ExcludeMissing
4343 private val eventsIngested: JsonField <Long > = JsonMissing .of(),
44+ @JsonProperty(" replace_existing_events" )
45+ @ExcludeMissing
46+ private val replaceExistingEvents: JsonField <Boolean > = JsonMissing .of(),
4447 @JsonProperty(" reverted_at" )
4548 @ExcludeMissing
4649 private val revertedAt: JsonField <OffsetDateTime > = JsonMissing .of(),
@@ -79,6 +82,14 @@ private constructor(
7982 /* * The number of events ingested in this backfill. */
8083 fun eventsIngested (): Long = eventsIngested.getRequired(" events_ingested" )
8184
85+ /* *
86+ * If `true`, existing events in the backfill's timeframe will be replaced with the newly
87+ * ingested events associated with the backfill. If `false`, newly ingested events will be added
88+ * to the existing events.
89+ */
90+ fun replaceExistingEvents (): Boolean =
91+ replaceExistingEvents.getRequired(" replace_existing_events" )
92+
8293 /* * The time at which this backfill was reverted. */
8394 fun revertedAt (): Optional <OffsetDateTime > =
8495 Optional .ofNullable(revertedAt.getNullable(" reverted_at" ))
@@ -122,6 +133,15 @@ private constructor(
122133 @ExcludeMissing
123134 fun _eventsIngested (): JsonField <Long > = eventsIngested
124135
136+ /* *
137+ * If `true`, existing events in the backfill's timeframe will be replaced with the newly
138+ * ingested events associated with the backfill. If `false`, newly ingested events will be added
139+ * to the existing events.
140+ */
141+ @JsonProperty(" replace_existing_events" )
142+ @ExcludeMissing
143+ fun _replaceExistingEvents (): JsonField <Boolean > = replaceExistingEvents
144+
125145 /* * The time at which this backfill was reverted. */
126146 @JsonProperty(" reverted_at" )
127147 @ExcludeMissing
@@ -162,6 +182,7 @@ private constructor(
162182 createdAt()
163183 customerId()
164184 eventsIngested()
185+ replaceExistingEvents()
165186 revertedAt()
166187 status()
167188 timeframeEnd()
@@ -185,6 +206,7 @@ private constructor(
185206 private var createdAt: JsonField <OffsetDateTime >? = null
186207 private var customerId: JsonField <String >? = null
187208 private var eventsIngested: JsonField <Long >? = null
209+ private var replaceExistingEvents: JsonField <Boolean >? = null
188210 private var revertedAt: JsonField <OffsetDateTime >? = null
189211 private var status: JsonField <Status >? = null
190212 private var timeframeEnd: JsonField <OffsetDateTime >? = null
@@ -199,6 +221,7 @@ private constructor(
199221 createdAt = eventBackfillCreateResponse.createdAt
200222 customerId = eventBackfillCreateResponse.customerId
201223 eventsIngested = eventBackfillCreateResponse.eventsIngested
224+ replaceExistingEvents = eventBackfillCreateResponse.replaceExistingEvents
202225 revertedAt = eventBackfillCreateResponse.revertedAt
203226 status = eventBackfillCreateResponse.status
204227 timeframeEnd = eventBackfillCreateResponse.timeframeEnd
@@ -259,6 +282,23 @@ private constructor(
259282 this .eventsIngested = eventsIngested
260283 }
261284
285+ /* *
286+ * If `true`, existing events in the backfill's timeframe will be replaced with the newly
287+ * ingested events associated with the backfill. If `false`, newly ingested events will be
288+ * added to the existing events.
289+ */
290+ fun replaceExistingEvents (replaceExistingEvents : Boolean ) =
291+ replaceExistingEvents(JsonField .of(replaceExistingEvents))
292+
293+ /* *
294+ * If `true`, existing events in the backfill's timeframe will be replaced with the newly
295+ * ingested events associated with the backfill. If `false`, newly ingested events will be
296+ * added to the existing events.
297+ */
298+ fun replaceExistingEvents (replaceExistingEvents : JsonField <Boolean >) = apply {
299+ this .replaceExistingEvents = replaceExistingEvents
300+ }
301+
262302 /* * The time at which this backfill was reverted. */
263303 fun revertedAt (revertedAt : OffsetDateTime ? ) = revertedAt(JsonField .ofNullable(revertedAt))
264304
@@ -337,6 +377,7 @@ private constructor(
337377 checkRequired(" createdAt" , createdAt),
338378 checkRequired(" customerId" , customerId),
339379 checkRequired(" eventsIngested" , eventsIngested),
380+ checkRequired(" replaceExistingEvents" , replaceExistingEvents),
340381 checkRequired(" revertedAt" , revertedAt),
341382 checkRequired(" status" , status),
342383 checkRequired(" timeframeEnd" , timeframeEnd),
@@ -455,15 +496,15 @@ private constructor(
455496 return true
456497 }
457498
458- return /* spotless:off */ other is EventBackfillCreateResponse && id == other.id && closeTime == other.closeTime && createdAt == other.createdAt && customerId == other.customerId && eventsIngested == other.eventsIngested && revertedAt == other.revertedAt && status == other.status && timeframeEnd == other.timeframeEnd && timeframeStart == other.timeframeStart && deprecationFilter == other.deprecationFilter && additionalProperties == other.additionalProperties /* spotless:on */
499+ return /* spotless:off */ other is EventBackfillCreateResponse && id == other.id && closeTime == other.closeTime && createdAt == other.createdAt && customerId == other.customerId && eventsIngested == other.eventsIngested && replaceExistingEvents == other.replaceExistingEvents && revertedAt == other.revertedAt && status == other.status && timeframeEnd == other.timeframeEnd && timeframeStart == other.timeframeStart && deprecationFilter == other.deprecationFilter && additionalProperties == other.additionalProperties /* spotless:on */
459500 }
460501
461502 /* spotless:off */
462- private val hashCode: Int by lazy { Objects .hash(id, closeTime, createdAt, customerId, eventsIngested, revertedAt, status, timeframeEnd, timeframeStart, deprecationFilter, additionalProperties) }
503+ private val hashCode: Int by lazy { Objects .hash(id, closeTime, createdAt, customerId, eventsIngested, replaceExistingEvents, revertedAt, status, timeframeEnd, timeframeStart, deprecationFilter, additionalProperties) }
463504 /* spotless:on */
464505
465506 override fun hashCode (): Int = hashCode
466507
467508 override fun toString () =
468- " EventBackfillCreateResponse{id=$id , closeTime=$closeTime , createdAt=$createdAt , customerId=$customerId , eventsIngested=$eventsIngested , revertedAt=$revertedAt , status=$status , timeframeEnd=$timeframeEnd , timeframeStart=$timeframeStart , deprecationFilter=$deprecationFilter , additionalProperties=$additionalProperties }"
509+ " EventBackfillCreateResponse{id=$id , closeTime=$closeTime , createdAt=$createdAt , customerId=$customerId , eventsIngested=$eventsIngested , replaceExistingEvents= $replaceExistingEvents , revertedAt=$revertedAt , status=$status , timeframeEnd=$timeframeEnd , timeframeStart=$timeframeStart , deprecationFilter=$deprecationFilter , additionalProperties=$additionalProperties }"
469510}
0 commit comments