{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | M2ts Absent Input Audio Behavior
newtype M2tsAbsentInputAudioBehavior = M2tsAbsentInputAudioBehavior'
  { M2tsAbsentInputAudioBehavior -> Text
fromM2tsAbsentInputAudioBehavior ::
      Data.Text
  }
  deriving stock
    ( Int -> M2tsAbsentInputAudioBehavior -> ShowS
[M2tsAbsentInputAudioBehavior] -> ShowS
M2tsAbsentInputAudioBehavior -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq M2tsAbsentInputAudioBehavior
Int -> M2tsAbsentInputAudioBehavior -> Int
M2tsAbsentInputAudioBehavior -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: M2tsAbsentInputAudioBehavior -> ()
$crnf :: M2tsAbsentInputAudioBehavior -> ()
Prelude.NFData,
      Text -> Either String M2tsAbsentInputAudioBehavior
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsAbsentInputAudioBehavior
$cfromText :: Text -> Either String M2tsAbsentInputAudioBehavior
Data.FromText,
      M2tsAbsentInputAudioBehavior -> Text
forall a. (a -> Text) -> ToText a
toText :: M2tsAbsentInputAudioBehavior -> Text
$ctoText :: M2tsAbsentInputAudioBehavior -> Text
Data.ToText,
      M2tsAbsentInputAudioBehavior -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsAbsentInputAudioBehavior -> ByteString
$ctoBS :: M2tsAbsentInputAudioBehavior -> ByteString
Data.ToByteString,
      M2tsAbsentInputAudioBehavior -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsAbsentInputAudioBehavior -> ByteStringBuilder
$cbuild :: M2tsAbsentInputAudioBehavior -> ByteStringBuilder
Data.ToLog,
      HeaderName -> M2tsAbsentInputAudioBehavior -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsAbsentInputAudioBehavior -> [Header]
$ctoHeader :: HeaderName -> M2tsAbsentInputAudioBehavior -> [Header]
Data.ToHeader,
      M2tsAbsentInputAudioBehavior -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsAbsentInputAudioBehavior -> QueryString
$ctoQuery :: M2tsAbsentInputAudioBehavior -> QueryString
Data.ToQuery,
      Value -> Parser [M2tsAbsentInputAudioBehavior]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [M2tsAbsentInputAudioBehavior]
FromJSONKeyFunction M2tsAbsentInputAudioBehavior
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsAbsentInputAudioBehavior]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsAbsentInputAudioBehavior]
fromJSONKey :: FromJSONKeyFunction M2tsAbsentInputAudioBehavior
$cfromJSONKey :: FromJSONKeyFunction M2tsAbsentInputAudioBehavior
Data.FromJSONKey,
      [M2tsAbsentInputAudioBehavior] -> Encoding
[M2tsAbsentInputAudioBehavior] -> Value
M2tsAbsentInputAudioBehavior -> Encoding
M2tsAbsentInputAudioBehavior -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [M2tsAbsentInputAudioBehavior]
ToJSONKeyFunction M2tsAbsentInputAudioBehavior
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsAbsentInputAudioBehavior]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsAbsentInputAudioBehavior]
toJSONKey :: ToJSONKeyFunction M2tsAbsentInputAudioBehavior
$ctoJSONKey :: ToJSONKeyFunction M2tsAbsentInputAudioBehavior
Data.ToJSONKey,
      [Node] -> Either String M2tsAbsentInputAudioBehavior
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsAbsentInputAudioBehavior
$cparseXML :: [Node] -> Either String M2tsAbsentInputAudioBehavior
Data.FromXML,
      M2tsAbsentInputAudioBehavior -> XML
forall a. (a -> XML) -> ToXML a
toXML :: M2tsAbsentInputAudioBehavior -> XML
$ctoXML :: M2tsAbsentInputAudioBehavior -> XML
Data.ToXML
    )

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

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

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