{-# 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.RtmpCaptionData
-- 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.MediaLive.Types.RtmpCaptionData
  ( RtmpCaptionData
      ( ..,
        RtmpCaptionData_ALL,
        RtmpCaptionData_FIELD1_608,
        RtmpCaptionData_FIELD1_AND_FIELD2_608
      ),
  )
where

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

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

pattern RtmpCaptionData_ALL :: RtmpCaptionData
pattern $bRtmpCaptionData_ALL :: RtmpCaptionData
$mRtmpCaptionData_ALL :: forall {r}. RtmpCaptionData -> ((# #) -> r) -> ((# #) -> r) -> r
RtmpCaptionData_ALL = RtmpCaptionData' "ALL"

pattern RtmpCaptionData_FIELD1_608 :: RtmpCaptionData
pattern $bRtmpCaptionData_FIELD1_608 :: RtmpCaptionData
$mRtmpCaptionData_FIELD1_608 :: forall {r}. RtmpCaptionData -> ((# #) -> r) -> ((# #) -> r) -> r
RtmpCaptionData_FIELD1_608 = RtmpCaptionData' "FIELD1_608"

pattern RtmpCaptionData_FIELD1_AND_FIELD2_608 :: RtmpCaptionData
pattern $bRtmpCaptionData_FIELD1_AND_FIELD2_608 :: RtmpCaptionData
$mRtmpCaptionData_FIELD1_AND_FIELD2_608 :: forall {r}. RtmpCaptionData -> ((# #) -> r) -> ((# #) -> r) -> r
RtmpCaptionData_FIELD1_AND_FIELD2_608 = RtmpCaptionData' "FIELD1_AND_FIELD2_608"

{-# COMPLETE
  RtmpCaptionData_ALL,
  RtmpCaptionData_FIELD1_608,
  RtmpCaptionData_FIELD1_AND_FIELD2_608,
  RtmpCaptionData'
  #-}