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

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

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

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

pattern RtmpCaptionData_FIELD1_608 :: RtmpCaptionData
pattern $bRtmpCaptionData_FIELD1_608 :: RtmpCaptionData
$mRtmpCaptionData_FIELD1_608 :: forall r. RtmpCaptionData -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
RtmpCaptionData_FIELD1_AND_FIELD2_608 = RtmpCaptionData' "FIELD1_AND_FIELD2_608"

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