{-# 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.MediaLive.Types.HlsTimedMetadataId3Frame
-- 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.MediaLive.Types.HlsTimedMetadataId3Frame
  ( HlsTimedMetadataId3Frame
      ( ..,
        HlsTimedMetadataId3Frame_NONE,
        HlsTimedMetadataId3Frame_PRIV,
        HlsTimedMetadataId3Frame_TDRL
      ),
  )
where

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

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

pattern HlsTimedMetadataId3Frame_NONE :: HlsTimedMetadataId3Frame
pattern $bHlsTimedMetadataId3Frame_NONE :: HlsTimedMetadataId3Frame
$mHlsTimedMetadataId3Frame_NONE :: forall r.
HlsTimedMetadataId3Frame -> (Void# -> r) -> (Void# -> r) -> r
HlsTimedMetadataId3Frame_NONE = HlsTimedMetadataId3Frame' "NONE"

pattern HlsTimedMetadataId3Frame_PRIV :: HlsTimedMetadataId3Frame
pattern $bHlsTimedMetadataId3Frame_PRIV :: HlsTimedMetadataId3Frame
$mHlsTimedMetadataId3Frame_PRIV :: forall r.
HlsTimedMetadataId3Frame -> (Void# -> r) -> (Void# -> r) -> r
HlsTimedMetadataId3Frame_PRIV = HlsTimedMetadataId3Frame' "PRIV"

pattern HlsTimedMetadataId3Frame_TDRL :: HlsTimedMetadataId3Frame
pattern $bHlsTimedMetadataId3Frame_TDRL :: HlsTimedMetadataId3Frame
$mHlsTimedMetadataId3Frame_TDRL :: forall r.
HlsTimedMetadataId3Frame -> (Void# -> r) -> (Void# -> r) -> r
HlsTimedMetadataId3Frame_TDRL = HlsTimedMetadataId3Frame' "TDRL"

{-# COMPLETE
  HlsTimedMetadataId3Frame_NONE,
  HlsTimedMetadataId3Frame_PRIV,
  HlsTimedMetadataId3Frame_TDRL,
  HlsTimedMetadataId3Frame'
  #-}