All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.com.amazonaws.kinesis.SequenceNumberRange.scala Maven / Gradle / Ivy

There is a newer version: 0.0.32
Show newest version
package com.amazonaws.kinesis

import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.struct

/** 

The range of possible sequence numbers for the shard.

* @param StartingSequenceNumber *

The starting sequence number for the range.

* @param EndingSequenceNumber *

The ending sequence number for the range. Shards that are in the OPEN state have an * ending sequence number of null.

*/ final case class SequenceNumberRange(startingSequenceNumber: SequenceNumber, endingSequenceNumber: Option[SequenceNumber] = None) object SequenceNumberRange extends ShapeTag.Companion[SequenceNumberRange] { val id: ShapeId = ShapeId("com.amazonaws.kinesis", "SequenceNumberRange") val hints: Hints = Hints( smithy.api.Documentation("

The range of possible sequence numbers for the shard.

"), ) implicit val schema: Schema[SequenceNumberRange] = struct( SequenceNumber.schema.required[SequenceNumberRange]("StartingSequenceNumber", _.startingSequenceNumber).addHints(smithy.api.Documentation("

The starting sequence number for the range.

")), SequenceNumber.schema.optional[SequenceNumberRange]("EndingSequenceNumber", _.endingSequenceNumber).addHints(smithy.api.Documentation("

The ending sequence number for the range. Shards that are in the OPEN state have an\n ending sequence number of null.

")), ){ SequenceNumberRange.apply }.withId(id).addHints(hints) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy