{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
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.Prelude as Prelude
newtype StartSelectorType = StartSelectorType'
{ StartSelectorType -> Text
fromStartSelectorType ::
Core.Text
}
deriving stock
( Int -> StartSelectorType -> ShowS
[StartSelectorType] -> ShowS
StartSelectorType -> String
(Int -> StartSelectorType -> ShowS)
-> (StartSelectorType -> String)
-> ([StartSelectorType] -> ShowS)
-> Show StartSelectorType
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]
(Int -> ReadS StartSelectorType)
-> ReadS [StartSelectorType]
-> ReadPrec StartSelectorType
-> ReadPrec [StartSelectorType]
-> Read 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
(StartSelectorType -> StartSelectorType -> Bool)
-> (StartSelectorType -> StartSelectorType -> Bool)
-> Eq StartSelectorType
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
Eq StartSelectorType
-> (StartSelectorType -> StartSelectorType -> Ordering)
-> (StartSelectorType -> StartSelectorType -> Bool)
-> (StartSelectorType -> StartSelectorType -> Bool)
-> (StartSelectorType -> StartSelectorType -> Bool)
-> (StartSelectorType -> StartSelectorType -> Bool)
-> (StartSelectorType -> StartSelectorType -> StartSelectorType)
-> (StartSelectorType -> StartSelectorType -> StartSelectorType)
-> Ord 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
$cp1Ord :: Eq StartSelectorType
Prelude.Ord,
(forall x. StartSelectorType -> Rep StartSelectorType x)
-> (forall x. Rep StartSelectorType x -> StartSelectorType)
-> Generic StartSelectorType
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
( Int -> StartSelectorType -> Int
StartSelectorType -> Int
(Int -> StartSelectorType -> Int)
-> (StartSelectorType -> Int) -> Hashable StartSelectorType
forall 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 -> ()
(StartSelectorType -> ()) -> NFData StartSelectorType
forall a. (a -> ()) -> NFData a
rnf :: StartSelectorType -> ()
$crnf :: StartSelectorType -> ()
Prelude.NFData,
Text -> Either String StartSelectorType
(Text -> Either String StartSelectorType)
-> FromText StartSelectorType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StartSelectorType
$cfromText :: Text -> Either String StartSelectorType
Core.FromText,
StartSelectorType -> Text
(StartSelectorType -> Text) -> ToText StartSelectorType
forall a. (a -> Text) -> ToText a
toText :: StartSelectorType -> Text
$ctoText :: StartSelectorType -> Text
Core.ToText,
StartSelectorType -> ByteString
(StartSelectorType -> ByteString) -> ToByteString StartSelectorType
forall a. (a -> ByteString) -> ToByteString a
toBS :: StartSelectorType -> ByteString
$ctoBS :: StartSelectorType -> ByteString
Core.ToByteString,
StartSelectorType -> ByteStringBuilder
(StartSelectorType -> ByteStringBuilder) -> ToLog StartSelectorType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StartSelectorType -> ByteStringBuilder
$cbuild :: StartSelectorType -> ByteStringBuilder
Core.ToLog,
HeaderName -> StartSelectorType -> [Header]
(HeaderName -> StartSelectorType -> [Header])
-> ToHeader StartSelectorType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StartSelectorType -> [Header]
$ctoHeader :: HeaderName -> StartSelectorType -> [Header]
Core.ToHeader,
StartSelectorType -> QueryString
(StartSelectorType -> QueryString) -> ToQuery StartSelectorType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StartSelectorType -> QueryString
$ctoQuery :: StartSelectorType -> QueryString
Core.ToQuery,
Value -> Parser [StartSelectorType]
Value -> Parser StartSelectorType
(Value -> Parser StartSelectorType)
-> (Value -> Parser [StartSelectorType])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [StartSelectorType]
FromJSONKeyFunction StartSelectorType
FromJSONKeyFunction StartSelectorType
-> FromJSONKeyFunction [StartSelectorType]
-> FromJSONKey StartSelectorType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StartSelectorType]
$cfromJSONKeyList :: FromJSONKeyFunction [StartSelectorType]
fromJSONKey :: FromJSONKeyFunction StartSelectorType
$cfromJSONKey :: FromJSONKeyFunction StartSelectorType
Core.FromJSONKey,
[StartSelectorType] -> Encoding
[StartSelectorType] -> Value
StartSelectorType -> Encoding
StartSelectorType -> Value
(StartSelectorType -> Value)
-> (StartSelectorType -> Encoding)
-> ([StartSelectorType] -> Value)
-> ([StartSelectorType] -> Encoding)
-> ToJSON StartSelectorType
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
Core.ToJSON,
ToJSONKeyFunction [StartSelectorType]
ToJSONKeyFunction StartSelectorType
ToJSONKeyFunction StartSelectorType
-> ToJSONKeyFunction [StartSelectorType]
-> ToJSONKey StartSelectorType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StartSelectorType]
$ctoJSONKeyList :: ToJSONKeyFunction [StartSelectorType]
toJSONKey :: ToJSONKeyFunction StartSelectorType
$ctoJSONKey :: ToJSONKeyFunction StartSelectorType
Core.ToJSONKey,
[Node] -> Either String StartSelectorType
([Node] -> Either String StartSelectorType)
-> FromXML StartSelectorType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StartSelectorType
$cparseXML :: [Node] -> Either String StartSelectorType
Core.FromXML,
StartSelectorType -> XML
(StartSelectorType -> XML) -> ToXML StartSelectorType
forall a. (a -> XML) -> ToXML a
toXML :: StartSelectorType -> XML
$ctoXML :: StartSelectorType -> XML
Core.ToXML
)
pattern StartSelectorType_CONTINUATION_TOKEN :: StartSelectorType
pattern $bStartSelectorType_CONTINUATION_TOKEN :: StartSelectorType
$mStartSelectorType_CONTINUATION_TOKEN :: forall r. StartSelectorType -> (Void# -> r) -> (Void# -> r) -> r
StartSelectorType_CONTINUATION_TOKEN = StartSelectorType' "CONTINUATION_TOKEN"
pattern StartSelectorType_EARLIEST :: StartSelectorType
pattern $bStartSelectorType_EARLIEST :: StartSelectorType
$mStartSelectorType_EARLIEST :: forall r. StartSelectorType -> (Void# -> r) -> (Void# -> r) -> r
StartSelectorType_EARLIEST = StartSelectorType' "EARLIEST"
pattern StartSelectorType_FRAGMENT_NUMBER :: StartSelectorType
pattern $bStartSelectorType_FRAGMENT_NUMBER :: StartSelectorType
$mStartSelectorType_FRAGMENT_NUMBER :: forall r. StartSelectorType -> (Void# -> r) -> (Void# -> r) -> r
StartSelectorType_FRAGMENT_NUMBER = StartSelectorType' "FRAGMENT_NUMBER"
pattern StartSelectorType_NOW :: StartSelectorType
pattern $bStartSelectorType_NOW :: StartSelectorType
$mStartSelectorType_NOW :: forall r. StartSelectorType -> (Void# -> r) -> (Void# -> r) -> r
StartSelectorType_NOW = StartSelectorType' "NOW"
pattern StartSelectorType_PRODUCER_TIMESTAMP :: StartSelectorType
pattern $bStartSelectorType_PRODUCER_TIMESTAMP :: StartSelectorType
$mStartSelectorType_PRODUCER_TIMESTAMP :: forall r. StartSelectorType -> (Void# -> r) -> (Void# -> r) -> r
StartSelectorType_PRODUCER_TIMESTAMP = StartSelectorType' "PRODUCER_TIMESTAMP"
pattern StartSelectorType_SERVER_TIMESTAMP :: StartSelectorType
pattern $bStartSelectorType_SERVER_TIMESTAMP :: StartSelectorType
$mStartSelectorType_SERVER_TIMESTAMP :: forall r. StartSelectorType -> (Void# -> r) -> (Void# -> 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'
#-}