{-# 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.HLSFragmentSelectorType
-- 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.HLSFragmentSelectorType
  ( HLSFragmentSelectorType
      ( ..,
        HLSFragmentSelectorType_PRODUCER_TIMESTAMP,
        HLSFragmentSelectorType_SERVER_TIMESTAMP
      ),
  )
where

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

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

pattern HLSFragmentSelectorType_PRODUCER_TIMESTAMP :: HLSFragmentSelectorType
pattern $bHLSFragmentSelectorType_PRODUCER_TIMESTAMP :: HLSFragmentSelectorType
$mHLSFragmentSelectorType_PRODUCER_TIMESTAMP :: forall {r}.
HLSFragmentSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
HLSFragmentSelectorType_PRODUCER_TIMESTAMP = HLSFragmentSelectorType' "PRODUCER_TIMESTAMP"

pattern HLSFragmentSelectorType_SERVER_TIMESTAMP :: HLSFragmentSelectorType
pattern $bHLSFragmentSelectorType_SERVER_TIMESTAMP :: HLSFragmentSelectorType
$mHLSFragmentSelectorType_SERVER_TIMESTAMP :: forall {r}.
HLSFragmentSelectorType -> ((# #) -> r) -> ((# #) -> r) -> r
HLSFragmentSelectorType_SERVER_TIMESTAMP = HLSFragmentSelectorType' "SERVER_TIMESTAMP"

{-# COMPLETE
  HLSFragmentSelectorType_PRODUCER_TIMESTAMP,
  HLSFragmentSelectorType_SERVER_TIMESTAMP,
  HLSFragmentSelectorType'
  #-}