{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.KinesisVideoMedia.Types.StartSelectorType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.KinesisVideoMedia.Types.StartSelectorType
  ( StartSelectorType
      ( ..,
        StartSelectorType_CONTINUATION_TOKEN,
        StartSelectorType_EARLIEST,
        StartSelectorType_FRAGMENT_NUMBER,
        StartSelectorType_NOW,
        StartSelectorType_PRODUCER_TIMESTAMP,
        StartSelectorType_SERVER_TIMESTAMP
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype StartSelectorType = StartSelectorType'
  { StartSelectorType -> Text
fromStartSelectorType ::
      Data.Text
  }
  deriving stock
    ( Int -> StartSelectorType -> ShowS
[StartSelectorType] -> ShowS
StartSelectorType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartSelectorType] -> ShowS
$cshowList :: [StartSelectorType] -> ShowS
show :: StartSelectorType -> String
$cshow :: StartSelectorType -> String
showsPrec :: Int -> StartSelectorType -> ShowS
$cshowsPrec :: Int -> StartSelectorType -> ShowS
Prelude.Show,
      ReadPrec [StartSelectorType]
ReadPrec StartSelectorType
Int -> ReadS StartSelectorType
ReadS [StartSelectorType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartSelectorType]
$creadListPrec :: ReadPrec [StartSelectorType]
readPrec :: ReadPrec StartSelectorType
$creadPrec :: ReadPrec StartSelectorType
readList :: ReadS [StartSelectorType]
$creadList :: ReadS [StartSelectorType]
readsPrec :: Int -> ReadS StartSelectorType
$creadsPrec :: Int -> ReadS StartSelectorType
Prelude.Read,
      StartSelectorType -> StartSelectorType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartSelectorType -> StartSelectorType -> Bool
$c/= :: StartSelectorType -> StartSelectorType -> Bool
== :: StartSelectorType -> StartSelectorType -> Bool
$c== :: StartSelectorType -> StartSelectorType -> Bool
Prelude.Eq,
      Eq StartSelectorType
StartSelectorType -> StartSelectorType -> Bool
StartSelectorType -> StartSelectorType -> Ordering
StartSelectorType -> StartSelectorType -> StartSelectorType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: StartSelectorType -> StartSelectorType -> StartSelectorType
$cmin :: StartSelectorType -> StartSelectorType -> StartSelectorType
max :: StartSelectorType -> StartSelectorType -> StartSelectorType
$cmax :: StartSelectorType -> StartSelectorType -> StartSelectorType
>= :: StartSelectorType -> StartSelectorType -> Bool
$c>= :: StartSelectorType -> StartSelectorType -> Bool
> :: StartSelectorType -> StartSelectorType -> Bool
$c> :: StartSelectorType -> StartSelectorType -> Bool
<= :: StartSelectorType -> StartSelectorType -> Bool
$c<= :: StartSelectorType -> StartSelectorType -> Bool
< :: StartSelectorType -> StartSelectorType -> Bool
$c< :: StartSelectorType -> StartSelectorType -> Bool
compare :: StartSelectorType -> StartSelectorType -> Ordering
$ccompare :: StartSelectorType -> StartSelectorType -> Ordering
Prelude.Ord,
      forall x. Rep StartSelectorType x -> StartSelectorType
forall x. StartSelectorType -> Rep StartSelectorType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartSelectorType x -> StartSelectorType
$cfrom :: forall x. StartSelectorType -> Rep StartSelectorType x
Prelude.Generic
    )
  deriving newtype
    ( Eq StartSelectorType
Int -> StartSelectorType -> Int
StartSelectorType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StartSelectorType -> Int
$chash :: StartSelectorType -> Int
hashWithSalt :: Int -> StartSelectorType -> Int
$chashWithSalt :: Int -> StartSelectorType -> Int
Prelude.Hashable,
      StartSelectorType -> ()
forall a. (a -> ()) -> NFData a
rnf :: StartSelectorType -> ()
$crnf :: StartSelectorType -> ()
Prelude.NFData,
      Text -> Either String StartSelectorType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StartSelectorType
$cfromText :: Text -> Either String StartSelectorType
Data.FromText,
      StartSelectorType -> Text
forall a. (a -> Text) -> ToText a
toText :: StartSelectorType -> Text
$ctoText :: StartSelectorType -> Text
Data.ToText,
      StartSelectorType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: StartSelectorType -> ByteString
$ctoBS :: StartSelectorType -> ByteString
Data.ToByteString,
      StartSelectorType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StartSelectorType -> ByteStringBuilder
$cbuild :: StartSelectorType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> StartSelectorType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StartSelectorType -> [Header]
$ctoHeader :: HeaderName -> StartSelectorType -> [Header]
Data.ToHeader,
      StartSelectorType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StartSelectorType -> QueryString
$ctoQuery :: StartSelectorType -> QueryString
Data.ToQuery,
      Value -> Parser [StartSelectorType]
Value -> Parser StartSelectorType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StartSelectorType]
$cparseJSONList :: Value -> Parser [StartSelectorType]
parseJSON :: Value -> Parser StartSelectorType
$cparseJSON :: Value -> Parser StartSelectorType
Data.FromJSON,
      FromJSONKeyFunction [StartSelectorType]
FromJSONKeyFunction StartSelectorType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StartSelectorType]
$cfromJSONKeyList :: FromJSONKeyFunction [StartSelectorType]
fromJSONKey :: FromJSONKeyFunction StartSelectorType
$cfromJSONKey :: FromJSONKeyFunction StartSelectorType
Data.FromJSONKey,
      [StartSelectorType] -> Encoding
[StartSelectorType] -> Value
StartSelectorType -> Encoding
StartSelectorType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StartSelectorType] -> Encoding
$ctoEncodingList :: [StartSelectorType] -> Encoding
toJSONList :: [StartSelectorType] -> Value
$ctoJSONList :: [StartSelectorType] -> Value
toEncoding :: StartSelectorType -> Encoding
$ctoEncoding :: StartSelectorType -> Encoding
toJSON :: StartSelectorType -> Value
$ctoJSON :: StartSelectorType -> Value
Data.ToJSON,
      ToJSONKeyFunction [StartSelectorType]
ToJSONKeyFunction StartSelectorType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StartSelectorType]
$ctoJSONKeyList :: ToJSONKeyFunction [StartSelectorType]
toJSONKey :: ToJSONKeyFunction StartSelectorType
$ctoJSONKey :: ToJSONKeyFunction StartSelectorType
Data.ToJSONKey,
      [Node] -> Either String StartSelectorType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StartSelectorType
$cparseXML :: [Node] -> Either String StartSelectorType
Data.FromXML,
      StartSelectorType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: StartSelectorType -> XML
$ctoXML :: StartSelectorType -> XML
Data.ToXML
    )

pattern StartSelectorType_CONTINUATION_TOKEN :: StartSelectorType
pattern $bStartSelectorType_CONTINUATION_TOKEN :: StartSelectorType
$mStartSelectorType_CONTINUATION_TOKEN :: forall {r}. StartSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StartSelectorType_CONTINUATION_TOKEN = StartSelectorType' "CONTINUATION_TOKEN"

pattern StartSelectorType_EARLIEST :: StartSelectorType
pattern $bStartSelectorType_EARLIEST :: StartSelectorType
$mStartSelectorType_EARLIEST :: forall {r}. StartSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StartSelectorType_EARLIEST = StartSelectorType' "EARLIEST"

pattern StartSelectorType_FRAGMENT_NUMBER :: StartSelectorType
pattern $bStartSelectorType_FRAGMENT_NUMBER :: StartSelectorType
$mStartSelectorType_FRAGMENT_NUMBER :: forall {r}. StartSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StartSelectorType_FRAGMENT_NUMBER = StartSelectorType' "FRAGMENT_NUMBER"

pattern StartSelectorType_NOW :: StartSelectorType
pattern $bStartSelectorType_NOW :: StartSelectorType
$mStartSelectorType_NOW :: forall {r}. StartSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StartSelectorType_NOW = StartSelectorType' "NOW"

pattern StartSelectorType_PRODUCER_TIMESTAMP :: StartSelectorType
pattern $bStartSelectorType_PRODUCER_TIMESTAMP :: StartSelectorType
$mStartSelectorType_PRODUCER_TIMESTAMP :: forall {r}. StartSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StartSelectorType_PRODUCER_TIMESTAMP = StartSelectorType' "PRODUCER_TIMESTAMP"

pattern StartSelectorType_SERVER_TIMESTAMP :: StartSelectorType
pattern $bStartSelectorType_SERVER_TIMESTAMP :: StartSelectorType
$mStartSelectorType_SERVER_TIMESTAMP :: forall {r}. StartSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
StartSelectorType_SERVER_TIMESTAMP = StartSelectorType' "SERVER_TIMESTAMP"

{-# COMPLETE
  StartSelectorType_CONTINUATION_TOKEN,
  StartSelectorType_EARLIEST,
  StartSelectorType_FRAGMENT_NUMBER,
  StartSelectorType_NOW,
  StartSelectorType_PRODUCER_TIMESTAMP,
  StartSelectorType_SERVER_TIMESTAMP,
  StartSelectorType'
  #-}