{-# 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.DASHDisplayFragmentTimestamp
-- 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.DASHDisplayFragmentTimestamp
  ( DASHDisplayFragmentTimestamp
      ( ..,
        DASHDisplayFragmentTimestamp_ALWAYS,
        DASHDisplayFragmentTimestamp_NEVER
      ),
  )
where

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

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

pattern DASHDisplayFragmentTimestamp_ALWAYS :: DASHDisplayFragmentTimestamp
pattern $bDASHDisplayFragmentTimestamp_ALWAYS :: DASHDisplayFragmentTimestamp
$mDASHDisplayFragmentTimestamp_ALWAYS :: forall r.
DASHDisplayFragmentTimestamp -> (Void# -> r) -> (Void# -> r) -> r
DASHDisplayFragmentTimestamp_ALWAYS = DASHDisplayFragmentTimestamp' "ALWAYS"

pattern DASHDisplayFragmentTimestamp_NEVER :: DASHDisplayFragmentTimestamp
pattern $bDASHDisplayFragmentTimestamp_NEVER :: DASHDisplayFragmentTimestamp
$mDASHDisplayFragmentTimestamp_NEVER :: forall r.
DASHDisplayFragmentTimestamp -> (Void# -> r) -> (Void# -> r) -> r
DASHDisplayFragmentTimestamp_NEVER = DASHDisplayFragmentTimestamp' "NEVER"

{-# COMPLETE
  DASHDisplayFragmentTimestamp_ALWAYS,
  DASHDisplayFragmentTimestamp_NEVER,
  DASHDisplayFragmentTimestamp'
  #-}