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

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

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

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

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

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