smithy4s.com.amazonaws.kinesis.ListStreamsInput.scala Maven / Gradle / Ivy
package com.amazonaws.kinesis
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.struct
/** Represents the input for ListStreams
.
* @param Limit
* The maximum number of streams to list. The default value is 100. If you specify a
* value greater than 100, at most 100 results are returned.
* @param ExclusiveStartStreamName
* The name of the stream to start the list with.
* @param NextToken
*
*/
final case class ListStreamsInput(limit: Option[ListStreamsInputLimit] = None, exclusiveStartStreamName: Option[StreamName] = None, nextToken: Option[NextToken] = None)
object ListStreamsInput extends ShapeTag.Companion[ListStreamsInput] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "ListStreamsInput")
val hints: Hints = Hints(
smithy.api.Documentation("Represents the input for ListStreams
.
"),
smithy.api.Input(),
).lazily
// constructor using the original order from the spec
private def make(limit: Option[ListStreamsInputLimit], exclusiveStartStreamName: Option[StreamName], nextToken: Option[NextToken]): ListStreamsInput = ListStreamsInput(limit, exclusiveStartStreamName, nextToken)
implicit val schema: Schema[ListStreamsInput] = struct(
ListStreamsInputLimit.schema.optional[ListStreamsInput]("Limit", _.limit).addHints(smithy.api.Documentation("The maximum number of streams to list. The default value is 100. If you specify a\n value greater than 100, at most 100 results are returned.
")),
StreamName.schema.optional[ListStreamsInput]("ExclusiveStartStreamName", _.exclusiveStartStreamName).addHints(smithy.api.Documentation("The name of the stream to start the list with.
")),
NextToken.schema.optional[ListStreamsInput]("NextToken", _.nextToken).addHints(smithy.api.Documentation("")),
)(make).withId(id).addHints(hints)
}