scala.com.amazonaws.kinesis.HashKeyRange.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Cats tooling for the Smithy4s Kinesis Client
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 hash key values for the shard, which is a set of ordered
* contiguous positive integers.
* @param StartingHashKey
* The starting hash key of the hash key range.
* @param EndingHashKey
* The ending hash key of the hash key range.
*/
final case class HashKeyRange(startingHashKey: HashKey, endingHashKey: HashKey)
object HashKeyRange extends ShapeTag.Companion[HashKeyRange] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "HashKeyRange")
val hints: Hints = Hints(
smithy.api.Documentation("The range of possible hash key values for the shard, which is a set of ordered\n contiguous positive integers.
"),
)
implicit val schema: Schema[HashKeyRange] = struct(
HashKey.schema.required[HashKeyRange]("StartingHashKey", _.startingHashKey).addHints(smithy.api.Documentation("The starting hash key of the hash key range.
")),
HashKey.schema.required[HashKeyRange]("EndingHashKey", _.endingHashKey).addHints(smithy.api.Documentation("The ending hash key of the hash key range.
")),
){
HashKeyRange.apply
}.withId(id).addHints(hints)
}