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

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

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

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

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

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