{-# 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.MxfAfdSignaling
-- 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.MxfAfdSignaling
  ( MxfAfdSignaling
      ( ..,
        MxfAfdSignaling_COPY_FROM_VIDEO,
        MxfAfdSignaling_NO_COPY
      ),
  )
where

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

-- | Optional. When you have AFD signaling set up in your output video
-- stream, use this setting to choose whether to also include it in the MXF
-- wrapper. Choose Don\'t copy (NO_COPY) to exclude AFD signaling from the
-- MXF wrapper. Choose Copy from video stream (COPY_FROM_VIDEO) to copy the
-- AFD values from the video stream for this output to the MXF wrapper.
-- Regardless of which option you choose, the AFD values remain in the
-- video stream. Related settings: To set up your output to include or
-- exclude AFD values, see AfdSignaling, under VideoDescription. On the
-- console, find AFD signaling under the output\'s video encoding settings.
newtype MxfAfdSignaling = MxfAfdSignaling'
  { MxfAfdSignaling -> Text
fromMxfAfdSignaling ::
      Core.Text
  }
  deriving stock
    ( Int -> MxfAfdSignaling -> ShowS
[MxfAfdSignaling] -> ShowS
MxfAfdSignaling -> String
(Int -> MxfAfdSignaling -> ShowS)
-> (MxfAfdSignaling -> String)
-> ([MxfAfdSignaling] -> ShowS)
-> Show MxfAfdSignaling
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MxfAfdSignaling] -> ShowS
$cshowList :: [MxfAfdSignaling] -> ShowS
show :: MxfAfdSignaling -> String
$cshow :: MxfAfdSignaling -> String
showsPrec :: Int -> MxfAfdSignaling -> ShowS
$cshowsPrec :: Int -> MxfAfdSignaling -> ShowS
Prelude.Show,
      ReadPrec [MxfAfdSignaling]
ReadPrec MxfAfdSignaling
Int -> ReadS MxfAfdSignaling
ReadS [MxfAfdSignaling]
(Int -> ReadS MxfAfdSignaling)
-> ReadS [MxfAfdSignaling]
-> ReadPrec MxfAfdSignaling
-> ReadPrec [MxfAfdSignaling]
-> Read MxfAfdSignaling
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MxfAfdSignaling]
$creadListPrec :: ReadPrec [MxfAfdSignaling]
readPrec :: ReadPrec MxfAfdSignaling
$creadPrec :: ReadPrec MxfAfdSignaling
readList :: ReadS [MxfAfdSignaling]
$creadList :: ReadS [MxfAfdSignaling]
readsPrec :: Int -> ReadS MxfAfdSignaling
$creadsPrec :: Int -> ReadS MxfAfdSignaling
Prelude.Read,
      MxfAfdSignaling -> MxfAfdSignaling -> Bool
(MxfAfdSignaling -> MxfAfdSignaling -> Bool)
-> (MxfAfdSignaling -> MxfAfdSignaling -> Bool)
-> Eq MxfAfdSignaling
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
$c/= :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
== :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
$c== :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
Prelude.Eq,
      Eq MxfAfdSignaling
Eq MxfAfdSignaling
-> (MxfAfdSignaling -> MxfAfdSignaling -> Ordering)
-> (MxfAfdSignaling -> MxfAfdSignaling -> Bool)
-> (MxfAfdSignaling -> MxfAfdSignaling -> Bool)
-> (MxfAfdSignaling -> MxfAfdSignaling -> Bool)
-> (MxfAfdSignaling -> MxfAfdSignaling -> Bool)
-> (MxfAfdSignaling -> MxfAfdSignaling -> MxfAfdSignaling)
-> (MxfAfdSignaling -> MxfAfdSignaling -> MxfAfdSignaling)
-> Ord MxfAfdSignaling
MxfAfdSignaling -> MxfAfdSignaling -> Bool
MxfAfdSignaling -> MxfAfdSignaling -> Ordering
MxfAfdSignaling -> MxfAfdSignaling -> MxfAfdSignaling
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 :: MxfAfdSignaling -> MxfAfdSignaling -> MxfAfdSignaling
$cmin :: MxfAfdSignaling -> MxfAfdSignaling -> MxfAfdSignaling
max :: MxfAfdSignaling -> MxfAfdSignaling -> MxfAfdSignaling
$cmax :: MxfAfdSignaling -> MxfAfdSignaling -> MxfAfdSignaling
>= :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
$c>= :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
> :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
$c> :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
<= :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
$c<= :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
< :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
$c< :: MxfAfdSignaling -> MxfAfdSignaling -> Bool
compare :: MxfAfdSignaling -> MxfAfdSignaling -> Ordering
$ccompare :: MxfAfdSignaling -> MxfAfdSignaling -> Ordering
$cp1Ord :: Eq MxfAfdSignaling
Prelude.Ord,
      (forall x. MxfAfdSignaling -> Rep MxfAfdSignaling x)
-> (forall x. Rep MxfAfdSignaling x -> MxfAfdSignaling)
-> Generic MxfAfdSignaling
forall x. Rep MxfAfdSignaling x -> MxfAfdSignaling
forall x. MxfAfdSignaling -> Rep MxfAfdSignaling x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MxfAfdSignaling x -> MxfAfdSignaling
$cfrom :: forall x. MxfAfdSignaling -> Rep MxfAfdSignaling x
Prelude.Generic
    )
  deriving newtype
    ( Int -> MxfAfdSignaling -> Int
MxfAfdSignaling -> Int
(Int -> MxfAfdSignaling -> Int)
-> (MxfAfdSignaling -> Int) -> Hashable MxfAfdSignaling
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MxfAfdSignaling -> Int
$chash :: MxfAfdSignaling -> Int
hashWithSalt :: Int -> MxfAfdSignaling -> Int
$chashWithSalt :: Int -> MxfAfdSignaling -> Int
Prelude.Hashable,
      MxfAfdSignaling -> ()
(MxfAfdSignaling -> ()) -> NFData MxfAfdSignaling
forall a. (a -> ()) -> NFData a
rnf :: MxfAfdSignaling -> ()
$crnf :: MxfAfdSignaling -> ()
Prelude.NFData,
      Text -> Either String MxfAfdSignaling
(Text -> Either String MxfAfdSignaling) -> FromText MxfAfdSignaling
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MxfAfdSignaling
$cfromText :: Text -> Either String MxfAfdSignaling
Core.FromText,
      MxfAfdSignaling -> Text
(MxfAfdSignaling -> Text) -> ToText MxfAfdSignaling
forall a. (a -> Text) -> ToText a
toText :: MxfAfdSignaling -> Text
$ctoText :: MxfAfdSignaling -> Text
Core.ToText,
      MxfAfdSignaling -> ByteString
(MxfAfdSignaling -> ByteString) -> ToByteString MxfAfdSignaling
forall a. (a -> ByteString) -> ToByteString a
toBS :: MxfAfdSignaling -> ByteString
$ctoBS :: MxfAfdSignaling -> ByteString
Core.ToByteString,
      MxfAfdSignaling -> ByteStringBuilder
(MxfAfdSignaling -> ByteStringBuilder) -> ToLog MxfAfdSignaling
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MxfAfdSignaling -> ByteStringBuilder
$cbuild :: MxfAfdSignaling -> ByteStringBuilder
Core.ToLog,
      HeaderName -> MxfAfdSignaling -> [Header]
(HeaderName -> MxfAfdSignaling -> [Header])
-> ToHeader MxfAfdSignaling
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MxfAfdSignaling -> [Header]
$ctoHeader :: HeaderName -> MxfAfdSignaling -> [Header]
Core.ToHeader,
      MxfAfdSignaling -> QueryString
(MxfAfdSignaling -> QueryString) -> ToQuery MxfAfdSignaling
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MxfAfdSignaling -> QueryString
$ctoQuery :: MxfAfdSignaling -> QueryString
Core.ToQuery,
      Value -> Parser [MxfAfdSignaling]
Value -> Parser MxfAfdSignaling
(Value -> Parser MxfAfdSignaling)
-> (Value -> Parser [MxfAfdSignaling]) -> FromJSON MxfAfdSignaling
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MxfAfdSignaling]
$cparseJSONList :: Value -> Parser [MxfAfdSignaling]
parseJSON :: Value -> Parser MxfAfdSignaling
$cparseJSON :: Value -> Parser MxfAfdSignaling
Core.FromJSON,
      FromJSONKeyFunction [MxfAfdSignaling]
FromJSONKeyFunction MxfAfdSignaling
FromJSONKeyFunction MxfAfdSignaling
-> FromJSONKeyFunction [MxfAfdSignaling]
-> FromJSONKey MxfAfdSignaling
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MxfAfdSignaling]
$cfromJSONKeyList :: FromJSONKeyFunction [MxfAfdSignaling]
fromJSONKey :: FromJSONKeyFunction MxfAfdSignaling
$cfromJSONKey :: FromJSONKeyFunction MxfAfdSignaling
Core.FromJSONKey,
      [MxfAfdSignaling] -> Encoding
[MxfAfdSignaling] -> Value
MxfAfdSignaling -> Encoding
MxfAfdSignaling -> Value
(MxfAfdSignaling -> Value)
-> (MxfAfdSignaling -> Encoding)
-> ([MxfAfdSignaling] -> Value)
-> ([MxfAfdSignaling] -> Encoding)
-> ToJSON MxfAfdSignaling
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MxfAfdSignaling] -> Encoding
$ctoEncodingList :: [MxfAfdSignaling] -> Encoding
toJSONList :: [MxfAfdSignaling] -> Value
$ctoJSONList :: [MxfAfdSignaling] -> Value
toEncoding :: MxfAfdSignaling -> Encoding
$ctoEncoding :: MxfAfdSignaling -> Encoding
toJSON :: MxfAfdSignaling -> Value
$ctoJSON :: MxfAfdSignaling -> Value
Core.ToJSON,
      ToJSONKeyFunction [MxfAfdSignaling]
ToJSONKeyFunction MxfAfdSignaling
ToJSONKeyFunction MxfAfdSignaling
-> ToJSONKeyFunction [MxfAfdSignaling] -> ToJSONKey MxfAfdSignaling
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MxfAfdSignaling]
$ctoJSONKeyList :: ToJSONKeyFunction [MxfAfdSignaling]
toJSONKey :: ToJSONKeyFunction MxfAfdSignaling
$ctoJSONKey :: ToJSONKeyFunction MxfAfdSignaling
Core.ToJSONKey,
      [Node] -> Either String MxfAfdSignaling
([Node] -> Either String MxfAfdSignaling)
-> FromXML MxfAfdSignaling
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MxfAfdSignaling
$cparseXML :: [Node] -> Either String MxfAfdSignaling
Core.FromXML,
      MxfAfdSignaling -> XML
(MxfAfdSignaling -> XML) -> ToXML MxfAfdSignaling
forall a. (a -> XML) -> ToXML a
toXML :: MxfAfdSignaling -> XML
$ctoXML :: MxfAfdSignaling -> XML
Core.ToXML
    )

pattern MxfAfdSignaling_COPY_FROM_VIDEO :: MxfAfdSignaling
pattern $bMxfAfdSignaling_COPY_FROM_VIDEO :: MxfAfdSignaling
$mMxfAfdSignaling_COPY_FROM_VIDEO :: forall r. MxfAfdSignaling -> (Void# -> r) -> (Void# -> r) -> r
MxfAfdSignaling_COPY_FROM_VIDEO = MxfAfdSignaling' "COPY_FROM_VIDEO"

pattern MxfAfdSignaling_NO_COPY :: MxfAfdSignaling
pattern $bMxfAfdSignaling_NO_COPY :: MxfAfdSignaling
$mMxfAfdSignaling_NO_COPY :: forall r. MxfAfdSignaling -> (Void# -> r) -> (Void# -> r) -> r
MxfAfdSignaling_NO_COPY = MxfAfdSignaling' "NO_COPY"

{-# COMPLETE
  MxfAfdSignaling_COPY_FROM_VIDEO,
  MxfAfdSignaling_NO_COPY,
  MxfAfdSignaling'
  #-}