{-# 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.HLSDisplayFragmentTimestamp
-- 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.HLSDisplayFragmentTimestamp
  ( HLSDisplayFragmentTimestamp
      ( ..,
        HLSDisplayFragmentTimestamp_ALWAYS,
        HLSDisplayFragmentTimestamp_NEVER
      ),
  )
where

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

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

pattern HLSDisplayFragmentTimestamp_ALWAYS :: HLSDisplayFragmentTimestamp
pattern $bHLSDisplayFragmentTimestamp_ALWAYS :: HLSDisplayFragmentTimestamp
$mHLSDisplayFragmentTimestamp_ALWAYS :: forall r.
HLSDisplayFragmentTimestamp -> (Void# -> r) -> (Void# -> r) -> r
HLSDisplayFragmentTimestamp_ALWAYS = HLSDisplayFragmentTimestamp' "ALWAYS"

pattern HLSDisplayFragmentTimestamp_NEVER :: HLSDisplayFragmentTimestamp
pattern $bHLSDisplayFragmentTimestamp_NEVER :: HLSDisplayFragmentTimestamp
$mHLSDisplayFragmentTimestamp_NEVER :: forall r.
HLSDisplayFragmentTimestamp -> (Void# -> r) -> (Void# -> r) -> r
HLSDisplayFragmentTimestamp_NEVER = HLSDisplayFragmentTimestamp' "NEVER"

{-# COMPLETE
  HLSDisplayFragmentTimestamp_ALWAYS,
  HLSDisplayFragmentTimestamp_NEVER,
  HLSDisplayFragmentTimestamp'
  #-}