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

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

pattern EmbeddedTerminateCaptions_DISABLED :: EmbeddedTerminateCaptions
pattern $bEmbeddedTerminateCaptions_DISABLED :: EmbeddedTerminateCaptions
$mEmbeddedTerminateCaptions_DISABLED :: forall r.
EmbeddedTerminateCaptions -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
EmbeddedTerminateCaptions_END_OF_INPUT = EmbeddedTerminateCaptions' "END_OF_INPUT"

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