{-# 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.OutputSdt
-- 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.OutputSdt
  ( OutputSdt
      ( ..,
        OutputSdt_SDT_FOLLOW,
        OutputSdt_SDT_FOLLOW_IF_PRESENT,
        OutputSdt_SDT_MANUAL,
        OutputSdt_SDT_NONE
      ),
  )
where

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

-- | Selects method of inserting SDT information into output stream. \"Follow
-- input SDT\" copies SDT information from input stream to output stream.
-- \"Follow input SDT if present\" copies SDT information from input stream
-- to output stream if SDT information is present in the input, otherwise
-- it will fall back on the user-defined values. Enter \"SDT Manually\"
-- means user will enter the SDT information. \"No SDT\" means output
-- stream will not contain SDT information.
newtype OutputSdt = OutputSdt'
  { OutputSdt -> Text
fromOutputSdt ::
      Core.Text
  }
  deriving stock
    ( Int -> OutputSdt -> ShowS
[OutputSdt] -> ShowS
OutputSdt -> String
(Int -> OutputSdt -> ShowS)
-> (OutputSdt -> String)
-> ([OutputSdt] -> ShowS)
-> Show OutputSdt
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OutputSdt] -> ShowS
$cshowList :: [OutputSdt] -> ShowS
show :: OutputSdt -> String
$cshow :: OutputSdt -> String
showsPrec :: Int -> OutputSdt -> ShowS
$cshowsPrec :: Int -> OutputSdt -> ShowS
Prelude.Show,
      ReadPrec [OutputSdt]
ReadPrec OutputSdt
Int -> ReadS OutputSdt
ReadS [OutputSdt]
(Int -> ReadS OutputSdt)
-> ReadS [OutputSdt]
-> ReadPrec OutputSdt
-> ReadPrec [OutputSdt]
-> Read OutputSdt
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OutputSdt]
$creadListPrec :: ReadPrec [OutputSdt]
readPrec :: ReadPrec OutputSdt
$creadPrec :: ReadPrec OutputSdt
readList :: ReadS [OutputSdt]
$creadList :: ReadS [OutputSdt]
readsPrec :: Int -> ReadS OutputSdt
$creadsPrec :: Int -> ReadS OutputSdt
Prelude.Read,
      OutputSdt -> OutputSdt -> Bool
(OutputSdt -> OutputSdt -> Bool)
-> (OutputSdt -> OutputSdt -> Bool) -> Eq OutputSdt
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OutputSdt -> OutputSdt -> Bool
$c/= :: OutputSdt -> OutputSdt -> Bool
== :: OutputSdt -> OutputSdt -> Bool
$c== :: OutputSdt -> OutputSdt -> Bool
Prelude.Eq,
      Eq OutputSdt
Eq OutputSdt
-> (OutputSdt -> OutputSdt -> Ordering)
-> (OutputSdt -> OutputSdt -> Bool)
-> (OutputSdt -> OutputSdt -> Bool)
-> (OutputSdt -> OutputSdt -> Bool)
-> (OutputSdt -> OutputSdt -> Bool)
-> (OutputSdt -> OutputSdt -> OutputSdt)
-> (OutputSdt -> OutputSdt -> OutputSdt)
-> Ord OutputSdt
OutputSdt -> OutputSdt -> Bool
OutputSdt -> OutputSdt -> Ordering
OutputSdt -> OutputSdt -> OutputSdt
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 :: OutputSdt -> OutputSdt -> OutputSdt
$cmin :: OutputSdt -> OutputSdt -> OutputSdt
max :: OutputSdt -> OutputSdt -> OutputSdt
$cmax :: OutputSdt -> OutputSdt -> OutputSdt
>= :: OutputSdt -> OutputSdt -> Bool
$c>= :: OutputSdt -> OutputSdt -> Bool
> :: OutputSdt -> OutputSdt -> Bool
$c> :: OutputSdt -> OutputSdt -> Bool
<= :: OutputSdt -> OutputSdt -> Bool
$c<= :: OutputSdt -> OutputSdt -> Bool
< :: OutputSdt -> OutputSdt -> Bool
$c< :: OutputSdt -> OutputSdt -> Bool
compare :: OutputSdt -> OutputSdt -> Ordering
$ccompare :: OutputSdt -> OutputSdt -> Ordering
$cp1Ord :: Eq OutputSdt
Prelude.Ord,
      (forall x. OutputSdt -> Rep OutputSdt x)
-> (forall x. Rep OutputSdt x -> OutputSdt) -> Generic OutputSdt
forall x. Rep OutputSdt x -> OutputSdt
forall x. OutputSdt -> Rep OutputSdt x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OutputSdt x -> OutputSdt
$cfrom :: forall x. OutputSdt -> Rep OutputSdt x
Prelude.Generic
    )
  deriving newtype
    ( Int -> OutputSdt -> Int
OutputSdt -> Int
(Int -> OutputSdt -> Int)
-> (OutputSdt -> Int) -> Hashable OutputSdt
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OutputSdt -> Int
$chash :: OutputSdt -> Int
hashWithSalt :: Int -> OutputSdt -> Int
$chashWithSalt :: Int -> OutputSdt -> Int
Prelude.Hashable,
      OutputSdt -> ()
(OutputSdt -> ()) -> NFData OutputSdt
forall a. (a -> ()) -> NFData a
rnf :: OutputSdt -> ()
$crnf :: OutputSdt -> ()
Prelude.NFData,
      Text -> Either String OutputSdt
(Text -> Either String OutputSdt) -> FromText OutputSdt
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OutputSdt
$cfromText :: Text -> Either String OutputSdt
Core.FromText,
      OutputSdt -> Text
(OutputSdt -> Text) -> ToText OutputSdt
forall a. (a -> Text) -> ToText a
toText :: OutputSdt -> Text
$ctoText :: OutputSdt -> Text
Core.ToText,
      OutputSdt -> ByteString
(OutputSdt -> ByteString) -> ToByteString OutputSdt
forall a. (a -> ByteString) -> ToByteString a
toBS :: OutputSdt -> ByteString
$ctoBS :: OutputSdt -> ByteString
Core.ToByteString,
      OutputSdt -> ByteStringBuilder
(OutputSdt -> ByteStringBuilder) -> ToLog OutputSdt
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OutputSdt -> ByteStringBuilder
$cbuild :: OutputSdt -> ByteStringBuilder
Core.ToLog,
      HeaderName -> OutputSdt -> [Header]
(HeaderName -> OutputSdt -> [Header]) -> ToHeader OutputSdt
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OutputSdt -> [Header]
$ctoHeader :: HeaderName -> OutputSdt -> [Header]
Core.ToHeader,
      OutputSdt -> QueryString
(OutputSdt -> QueryString) -> ToQuery OutputSdt
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OutputSdt -> QueryString
$ctoQuery :: OutputSdt -> QueryString
Core.ToQuery,
      Value -> Parser [OutputSdt]
Value -> Parser OutputSdt
(Value -> Parser OutputSdt)
-> (Value -> Parser [OutputSdt]) -> FromJSON OutputSdt
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OutputSdt]
$cparseJSONList :: Value -> Parser [OutputSdt]
parseJSON :: Value -> Parser OutputSdt
$cparseJSON :: Value -> Parser OutputSdt
Core.FromJSON,
      FromJSONKeyFunction [OutputSdt]
FromJSONKeyFunction OutputSdt
FromJSONKeyFunction OutputSdt
-> FromJSONKeyFunction [OutputSdt] -> FromJSONKey OutputSdt
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OutputSdt]
$cfromJSONKeyList :: FromJSONKeyFunction [OutputSdt]
fromJSONKey :: FromJSONKeyFunction OutputSdt
$cfromJSONKey :: FromJSONKeyFunction OutputSdt
Core.FromJSONKey,
      [OutputSdt] -> Encoding
[OutputSdt] -> Value
OutputSdt -> Encoding
OutputSdt -> Value
(OutputSdt -> Value)
-> (OutputSdt -> Encoding)
-> ([OutputSdt] -> Value)
-> ([OutputSdt] -> Encoding)
-> ToJSON OutputSdt
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OutputSdt] -> Encoding
$ctoEncodingList :: [OutputSdt] -> Encoding
toJSONList :: [OutputSdt] -> Value
$ctoJSONList :: [OutputSdt] -> Value
toEncoding :: OutputSdt -> Encoding
$ctoEncoding :: OutputSdt -> Encoding
toJSON :: OutputSdt -> Value
$ctoJSON :: OutputSdt -> Value
Core.ToJSON,
      ToJSONKeyFunction [OutputSdt]
ToJSONKeyFunction OutputSdt
ToJSONKeyFunction OutputSdt
-> ToJSONKeyFunction [OutputSdt] -> ToJSONKey OutputSdt
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OutputSdt]
$ctoJSONKeyList :: ToJSONKeyFunction [OutputSdt]
toJSONKey :: ToJSONKeyFunction OutputSdt
$ctoJSONKey :: ToJSONKeyFunction OutputSdt
Core.ToJSONKey,
      [Node] -> Either String OutputSdt
([Node] -> Either String OutputSdt) -> FromXML OutputSdt
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OutputSdt
$cparseXML :: [Node] -> Either String OutputSdt
Core.FromXML,
      OutputSdt -> XML
(OutputSdt -> XML) -> ToXML OutputSdt
forall a. (a -> XML) -> ToXML a
toXML :: OutputSdt -> XML
$ctoXML :: OutputSdt -> XML
Core.ToXML
    )

pattern OutputSdt_SDT_FOLLOW :: OutputSdt
pattern $bOutputSdt_SDT_FOLLOW :: OutputSdt
$mOutputSdt_SDT_FOLLOW :: forall r. OutputSdt -> (Void# -> r) -> (Void# -> r) -> r
OutputSdt_SDT_FOLLOW = OutputSdt' "SDT_FOLLOW"

pattern OutputSdt_SDT_FOLLOW_IF_PRESENT :: OutputSdt
pattern $bOutputSdt_SDT_FOLLOW_IF_PRESENT :: OutputSdt
$mOutputSdt_SDT_FOLLOW_IF_PRESENT :: forall r. OutputSdt -> (Void# -> r) -> (Void# -> r) -> r
OutputSdt_SDT_FOLLOW_IF_PRESENT = OutputSdt' "SDT_FOLLOW_IF_PRESENT"

pattern OutputSdt_SDT_MANUAL :: OutputSdt
pattern $bOutputSdt_SDT_MANUAL :: OutputSdt
$mOutputSdt_SDT_MANUAL :: forall r. OutputSdt -> (Void# -> r) -> (Void# -> r) -> r
OutputSdt_SDT_MANUAL = OutputSdt' "SDT_MANUAL"

pattern OutputSdt_SDT_NONE :: OutputSdt
pattern $bOutputSdt_SDT_NONE :: OutputSdt
$mOutputSdt_SDT_NONE :: forall r. OutputSdt -> (Void# -> r) -> (Void# -> r) -> r
OutputSdt_SDT_NONE = OutputSdt' "SDT_NONE"

{-# COMPLETE
  OutputSdt_SDT_FOLLOW,
  OutputSdt_SDT_FOLLOW_IF_PRESENT,
  OutputSdt_SDT_MANUAL,
  OutputSdt_SDT_NONE,
  OutputSdt'
  #-}