{-# 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.MediaConvert.Types.EmbeddedTerminateCaptions
-- 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.MediaConvert.Types.EmbeddedTerminateCaptions
  ( EmbeddedTerminateCaptions
      ( ..,
        EmbeddedTerminateCaptions_DISABLED,
        EmbeddedTerminateCaptions_END_OF_INPUT
      ),
  )
where

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

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

pattern EmbeddedTerminateCaptions_DISABLED :: EmbeddedTerminateCaptions
pattern $bEmbeddedTerminateCaptions_DISABLED :: EmbeddedTerminateCaptions
$mEmbeddedTerminateCaptions_DISABLED :: forall {r}.
EmbeddedTerminateCaptions -> ((# #) -> r) -> ((# #) -> r) -> r
EmbeddedTerminateCaptions_DISABLED = EmbeddedTerminateCaptions' "DISABLED"

pattern EmbeddedTerminateCaptions_END_OF_INPUT :: EmbeddedTerminateCaptions
pattern $bEmbeddedTerminateCaptions_END_OF_INPUT :: EmbeddedTerminateCaptions
$mEmbeddedTerminateCaptions_END_OF_INPUT :: forall {r}.
EmbeddedTerminateCaptions -> ((# #) -> r) -> ((# #) -> r) -> r
EmbeddedTerminateCaptions_END_OF_INPUT = EmbeddedTerminateCaptions' "END_OF_INPUT"

{-# COMPLETE
  EmbeddedTerminateCaptions_DISABLED,
  EmbeddedTerminateCaptions_END_OF_INPUT,
  EmbeddedTerminateCaptions'
  #-}