{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype FragmentSelectorType = FragmentSelectorType'
  { FragmentSelectorType -> Text
fromFragmentSelectorType ::
      Data.Text
  }
  deriving stock
    ( Int -> FragmentSelectorType -> ShowS
[FragmentSelectorType] -> ShowS
FragmentSelectorType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq FragmentSelectorType
Int -> FragmentSelectorType -> Int
FragmentSelectorType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: FragmentSelectorType -> ()
$crnf :: FragmentSelectorType -> ()
Prelude.NFData,
      Text -> Either String FragmentSelectorType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FragmentSelectorType
$cfromText :: Text -> Either String FragmentSelectorType
Data.FromText,
      FragmentSelectorType -> Text
forall a. (a -> Text) -> ToText a
toText :: FragmentSelectorType -> Text
$ctoText :: FragmentSelectorType -> Text
Data.ToText,
      FragmentSelectorType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: FragmentSelectorType -> ByteString
$ctoBS :: FragmentSelectorType -> ByteString
Data.ToByteString,
      FragmentSelectorType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FragmentSelectorType -> ByteStringBuilder
$cbuild :: FragmentSelectorType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> FragmentSelectorType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FragmentSelectorType -> [Header]
$ctoHeader :: HeaderName -> FragmentSelectorType -> [Header]
Data.ToHeader,
      FragmentSelectorType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FragmentSelectorType -> QueryString
$ctoQuery :: FragmentSelectorType -> QueryString
Data.ToQuery,
      Value -> Parser [FragmentSelectorType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [FragmentSelectorType]
FromJSONKeyFunction FragmentSelectorType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FragmentSelectorType]
$cfromJSONKeyList :: FromJSONKeyFunction [FragmentSelectorType]
fromJSONKey :: FromJSONKeyFunction FragmentSelectorType
$cfromJSONKey :: FromJSONKeyFunction FragmentSelectorType
Data.FromJSONKey,
      [FragmentSelectorType] -> Encoding
[FragmentSelectorType] -> Value
FragmentSelectorType -> Encoding
FragmentSelectorType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [FragmentSelectorType]
ToJSONKeyFunction FragmentSelectorType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FragmentSelectorType]
$ctoJSONKeyList :: ToJSONKeyFunction [FragmentSelectorType]
toJSONKey :: ToJSONKeyFunction FragmentSelectorType
$ctoJSONKey :: ToJSONKeyFunction FragmentSelectorType
Data.ToJSONKey,
      [Node] -> Either String FragmentSelectorType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FragmentSelectorType
$cparseXML :: [Node] -> Either String FragmentSelectorType
Data.FromXML,
      FragmentSelectorType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: FragmentSelectorType -> XML
$ctoXML :: FragmentSelectorType -> XML
Data.ToXML
    )

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

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

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