{-# 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.KinesisVideoArchivedMedia.Types.FragmentSelectorType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.KinesisVideoArchivedMedia.Types.FragmentSelectorType
  ( FragmentSelectorType
      ( ..,
        FragmentSelectorType_PRODUCER_TIMESTAMP,
        FragmentSelectorType_SERVER_TIMESTAMP
      ),
  )
where

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

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

pattern FragmentSelectorType_PRODUCER_TIMESTAMP :: FragmentSelectorType
pattern $bFragmentSelectorType_PRODUCER_TIMESTAMP :: FragmentSelectorType
$mFragmentSelectorType_PRODUCER_TIMESTAMP :: forall r. FragmentSelectorType -> (Void# -> r) -> (Void# -> r) -> r
FragmentSelectorType_PRODUCER_TIMESTAMP = FragmentSelectorType' "PRODUCER_TIMESTAMP"

pattern FragmentSelectorType_SERVER_TIMESTAMP :: FragmentSelectorType
pattern $bFragmentSelectorType_SERVER_TIMESTAMP :: FragmentSelectorType
$mFragmentSelectorType_SERVER_TIMESTAMP :: forall r. FragmentSelectorType -> (Void# -> r) -> (Void# -> r) -> r
FragmentSelectorType_SERVER_TIMESTAMP = FragmentSelectorType' "SERVER_TIMESTAMP"

{-# COMPLETE
  FragmentSelectorType_PRODUCER_TIMESTAMP,
  FragmentSelectorType_SERVER_TIMESTAMP,
  FragmentSelectorType'
  #-}