{-# 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.M2tsAbsentInputAudioBehavior
-- 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.M2tsAbsentInputAudioBehavior
  ( M2tsAbsentInputAudioBehavior
      ( ..,
        M2tsAbsentInputAudioBehavior_DROP,
        M2tsAbsentInputAudioBehavior_ENCODE_SILENCE
      ),
  )
where

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

-- | M2ts Absent Input Audio Behavior
newtype M2tsAbsentInputAudioBehavior = M2tsAbsentInputAudioBehavior'
  { M2tsAbsentInputAudioBehavior -> Text
fromM2tsAbsentInputAudioBehavior ::
      Core.Text
  }
  deriving stock
    ( Int -> M2tsAbsentInputAudioBehavior -> ShowS
[M2tsAbsentInputAudioBehavior] -> ShowS
M2tsAbsentInputAudioBehavior -> String
(Int -> M2tsAbsentInputAudioBehavior -> ShowS)
-> (M2tsAbsentInputAudioBehavior -> String)
-> ([M2tsAbsentInputAudioBehavior] -> ShowS)
-> Show M2tsAbsentInputAudioBehavior
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [M2tsAbsentInputAudioBehavior] -> ShowS
$cshowList :: [M2tsAbsentInputAudioBehavior] -> ShowS
show :: M2tsAbsentInputAudioBehavior -> String
$cshow :: M2tsAbsentInputAudioBehavior -> String
showsPrec :: Int -> M2tsAbsentInputAudioBehavior -> ShowS
$cshowsPrec :: Int -> M2tsAbsentInputAudioBehavior -> ShowS
Prelude.Show,
      ReadPrec [M2tsAbsentInputAudioBehavior]
ReadPrec M2tsAbsentInputAudioBehavior
Int -> ReadS M2tsAbsentInputAudioBehavior
ReadS [M2tsAbsentInputAudioBehavior]
(Int -> ReadS M2tsAbsentInputAudioBehavior)
-> ReadS [M2tsAbsentInputAudioBehavior]
-> ReadPrec M2tsAbsentInputAudioBehavior
-> ReadPrec [M2tsAbsentInputAudioBehavior]
-> Read M2tsAbsentInputAudioBehavior
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [M2tsAbsentInputAudioBehavior]
$creadListPrec :: ReadPrec [M2tsAbsentInputAudioBehavior]
readPrec :: ReadPrec M2tsAbsentInputAudioBehavior
$creadPrec :: ReadPrec M2tsAbsentInputAudioBehavior
readList :: ReadS [M2tsAbsentInputAudioBehavior]
$creadList :: ReadS [M2tsAbsentInputAudioBehavior]
readsPrec :: Int -> ReadS M2tsAbsentInputAudioBehavior
$creadsPrec :: Int -> ReadS M2tsAbsentInputAudioBehavior
Prelude.Read,
      M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
(M2tsAbsentInputAudioBehavior
 -> M2tsAbsentInputAudioBehavior -> Bool)
-> (M2tsAbsentInputAudioBehavior
    -> M2tsAbsentInputAudioBehavior -> Bool)
-> Eq M2tsAbsentInputAudioBehavior
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
$c/= :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
== :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
$c== :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
Prelude.Eq,
      Eq M2tsAbsentInputAudioBehavior
Eq M2tsAbsentInputAudioBehavior
-> (M2tsAbsentInputAudioBehavior
    -> M2tsAbsentInputAudioBehavior -> Ordering)
-> (M2tsAbsentInputAudioBehavior
    -> M2tsAbsentInputAudioBehavior -> Bool)
-> (M2tsAbsentInputAudioBehavior
    -> M2tsAbsentInputAudioBehavior -> Bool)
-> (M2tsAbsentInputAudioBehavior
    -> M2tsAbsentInputAudioBehavior -> Bool)
-> (M2tsAbsentInputAudioBehavior
    -> M2tsAbsentInputAudioBehavior -> Bool)
-> (M2tsAbsentInputAudioBehavior
    -> M2tsAbsentInputAudioBehavior -> M2tsAbsentInputAudioBehavior)
-> (M2tsAbsentInputAudioBehavior
    -> M2tsAbsentInputAudioBehavior -> M2tsAbsentInputAudioBehavior)
-> Ord M2tsAbsentInputAudioBehavior
M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Ordering
M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> M2tsAbsentInputAudioBehavior
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 :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> M2tsAbsentInputAudioBehavior
$cmin :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> M2tsAbsentInputAudioBehavior
max :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> M2tsAbsentInputAudioBehavior
$cmax :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> M2tsAbsentInputAudioBehavior
>= :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
$c>= :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
> :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
$c> :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
<= :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
$c<= :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
< :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
$c< :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Bool
compare :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Ordering
$ccompare :: M2tsAbsentInputAudioBehavior
-> M2tsAbsentInputAudioBehavior -> Ordering
$cp1Ord :: Eq M2tsAbsentInputAudioBehavior
Prelude.Ord,
      (forall x.
 M2tsAbsentInputAudioBehavior -> Rep M2tsAbsentInputAudioBehavior x)
-> (forall x.
    Rep M2tsAbsentInputAudioBehavior x -> M2tsAbsentInputAudioBehavior)
-> Generic M2tsAbsentInputAudioBehavior
forall x.
Rep M2tsAbsentInputAudioBehavior x -> M2tsAbsentInputAudioBehavior
forall x.
M2tsAbsentInputAudioBehavior -> Rep M2tsAbsentInputAudioBehavior x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep M2tsAbsentInputAudioBehavior x -> M2tsAbsentInputAudioBehavior
$cfrom :: forall x.
M2tsAbsentInputAudioBehavior -> Rep M2tsAbsentInputAudioBehavior x
Prelude.Generic
    )
  deriving newtype
    ( Int -> M2tsAbsentInputAudioBehavior -> Int
M2tsAbsentInputAudioBehavior -> Int
(Int -> M2tsAbsentInputAudioBehavior -> Int)
-> (M2tsAbsentInputAudioBehavior -> Int)
-> Hashable M2tsAbsentInputAudioBehavior
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: M2tsAbsentInputAudioBehavior -> Int
$chash :: M2tsAbsentInputAudioBehavior -> Int
hashWithSalt :: Int -> M2tsAbsentInputAudioBehavior -> Int
$chashWithSalt :: Int -> M2tsAbsentInputAudioBehavior -> Int
Prelude.Hashable,
      M2tsAbsentInputAudioBehavior -> ()
(M2tsAbsentInputAudioBehavior -> ())
-> NFData M2tsAbsentInputAudioBehavior
forall a. (a -> ()) -> NFData a
rnf :: M2tsAbsentInputAudioBehavior -> ()
$crnf :: M2tsAbsentInputAudioBehavior -> ()
Prelude.NFData,
      Text -> Either String M2tsAbsentInputAudioBehavior
(Text -> Either String M2tsAbsentInputAudioBehavior)
-> FromText M2tsAbsentInputAudioBehavior
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsAbsentInputAudioBehavior
$cfromText :: Text -> Either String M2tsAbsentInputAudioBehavior
Core.FromText,
      M2tsAbsentInputAudioBehavior -> Text
(M2tsAbsentInputAudioBehavior -> Text)
-> ToText M2tsAbsentInputAudioBehavior
forall a. (a -> Text) -> ToText a
toText :: M2tsAbsentInputAudioBehavior -> Text
$ctoText :: M2tsAbsentInputAudioBehavior -> Text
Core.ToText,
      M2tsAbsentInputAudioBehavior -> ByteString
(M2tsAbsentInputAudioBehavior -> ByteString)
-> ToByteString M2tsAbsentInputAudioBehavior
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsAbsentInputAudioBehavior -> ByteString
$ctoBS :: M2tsAbsentInputAudioBehavior -> ByteString
Core.ToByteString,
      M2tsAbsentInputAudioBehavior -> ByteStringBuilder
(M2tsAbsentInputAudioBehavior -> ByteStringBuilder)
-> ToLog M2tsAbsentInputAudioBehavior
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsAbsentInputAudioBehavior -> ByteStringBuilder
$cbuild :: M2tsAbsentInputAudioBehavior -> ByteStringBuilder
Core.ToLog,
      HeaderName -> M2tsAbsentInputAudioBehavior -> [Header]
(HeaderName -> M2tsAbsentInputAudioBehavior -> [Header])
-> ToHeader M2tsAbsentInputAudioBehavior
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsAbsentInputAudioBehavior -> [Header]
$ctoHeader :: HeaderName -> M2tsAbsentInputAudioBehavior -> [Header]
Core.ToHeader,
      M2tsAbsentInputAudioBehavior -> QueryString
(M2tsAbsentInputAudioBehavior -> QueryString)
-> ToQuery M2tsAbsentInputAudioBehavior
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsAbsentInputAudioBehavior -> QueryString
$ctoQuery :: M2tsAbsentInputAudioBehavior -> QueryString
Core.ToQuery,
      Value -> Parser [M2tsAbsentInputAudioBehavior]
Value -> Parser M2tsAbsentInputAudioBehavior
(Value -> Parser M2tsAbsentInputAudioBehavior)
-> (Value -> Parser [M2tsAbsentInputAudioBehavior])
-> FromJSON M2tsAbsentInputAudioBehavior
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [M2tsAbsentInputAudioBehavior]
$cparseJSONList :: Value -> Parser [M2tsAbsentInputAudioBehavior]
parseJSON :: Value -> Parser M2tsAbsentInputAudioBehavior
$cparseJSON :: Value -> Parser M2tsAbsentInputAudioBehavior
Core.FromJSON,
      FromJSONKeyFunction [M2tsAbsentInputAudioBehavior]
FromJSONKeyFunction M2tsAbsentInputAudioBehavior
FromJSONKeyFunction M2tsAbsentInputAudioBehavior
-> FromJSONKeyFunction [M2tsAbsentInputAudioBehavior]
-> FromJSONKey M2tsAbsentInputAudioBehavior
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsAbsentInputAudioBehavior]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsAbsentInputAudioBehavior]
fromJSONKey :: FromJSONKeyFunction M2tsAbsentInputAudioBehavior
$cfromJSONKey :: FromJSONKeyFunction M2tsAbsentInputAudioBehavior
Core.FromJSONKey,
      [M2tsAbsentInputAudioBehavior] -> Encoding
[M2tsAbsentInputAudioBehavior] -> Value
M2tsAbsentInputAudioBehavior -> Encoding
M2tsAbsentInputAudioBehavior -> Value
(M2tsAbsentInputAudioBehavior -> Value)
-> (M2tsAbsentInputAudioBehavior -> Encoding)
-> ([M2tsAbsentInputAudioBehavior] -> Value)
-> ([M2tsAbsentInputAudioBehavior] -> Encoding)
-> ToJSON M2tsAbsentInputAudioBehavior
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [M2tsAbsentInputAudioBehavior] -> Encoding
$ctoEncodingList :: [M2tsAbsentInputAudioBehavior] -> Encoding
toJSONList :: [M2tsAbsentInputAudioBehavior] -> Value
$ctoJSONList :: [M2tsAbsentInputAudioBehavior] -> Value
toEncoding :: M2tsAbsentInputAudioBehavior -> Encoding
$ctoEncoding :: M2tsAbsentInputAudioBehavior -> Encoding
toJSON :: M2tsAbsentInputAudioBehavior -> Value
$ctoJSON :: M2tsAbsentInputAudioBehavior -> Value
Core.ToJSON,
      ToJSONKeyFunction [M2tsAbsentInputAudioBehavior]
ToJSONKeyFunction M2tsAbsentInputAudioBehavior
ToJSONKeyFunction M2tsAbsentInputAudioBehavior
-> ToJSONKeyFunction [M2tsAbsentInputAudioBehavior]
-> ToJSONKey M2tsAbsentInputAudioBehavior
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsAbsentInputAudioBehavior]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsAbsentInputAudioBehavior]
toJSONKey :: ToJSONKeyFunction M2tsAbsentInputAudioBehavior
$ctoJSONKey :: ToJSONKeyFunction M2tsAbsentInputAudioBehavior
Core.ToJSONKey,
      [Node] -> Either String M2tsAbsentInputAudioBehavior
([Node] -> Either String M2tsAbsentInputAudioBehavior)
-> FromXML M2tsAbsentInputAudioBehavior
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsAbsentInputAudioBehavior
$cparseXML :: [Node] -> Either String M2tsAbsentInputAudioBehavior
Core.FromXML,
      M2tsAbsentInputAudioBehavior -> XML
(M2tsAbsentInputAudioBehavior -> XML)
-> ToXML M2tsAbsentInputAudioBehavior
forall a. (a -> XML) -> ToXML a
toXML :: M2tsAbsentInputAudioBehavior -> XML
$ctoXML :: M2tsAbsentInputAudioBehavior -> XML
Core.ToXML
    )

pattern M2tsAbsentInputAudioBehavior_DROP :: M2tsAbsentInputAudioBehavior
pattern $bM2tsAbsentInputAudioBehavior_DROP :: M2tsAbsentInputAudioBehavior
$mM2tsAbsentInputAudioBehavior_DROP :: forall r.
M2tsAbsentInputAudioBehavior -> (Void# -> r) -> (Void# -> r) -> r
M2tsAbsentInputAudioBehavior_DROP = M2tsAbsentInputAudioBehavior' "DROP"

pattern M2tsAbsentInputAudioBehavior_ENCODE_SILENCE :: M2tsAbsentInputAudioBehavior
pattern $bM2tsAbsentInputAudioBehavior_ENCODE_SILENCE :: M2tsAbsentInputAudioBehavior
$mM2tsAbsentInputAudioBehavior_ENCODE_SILENCE :: forall r.
M2tsAbsentInputAudioBehavior -> (Void# -> r) -> (Void# -> r) -> r
M2tsAbsentInputAudioBehavior_ENCODE_SILENCE = M2tsAbsentInputAudioBehavior' "ENCODE_SILENCE"

{-# COMPLETE
  M2tsAbsentInputAudioBehavior_DROP,
  M2tsAbsentInputAudioBehavior_ENCODE_SILENCE,
  M2tsAbsentInputAudioBehavior'
  #-}