{-# 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.MsSmoothAudioDeduplication
-- 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.MediaConvert.Types.MsSmoothAudioDeduplication
  ( MsSmoothAudioDeduplication
      ( ..,
        MsSmoothAudioDeduplication_COMBINE_DUPLICATE_STREAMS,
        MsSmoothAudioDeduplication_NONE
      ),
  )
where

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

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

pattern MsSmoothAudioDeduplication_COMBINE_DUPLICATE_STREAMS :: MsSmoothAudioDeduplication
pattern $bMsSmoothAudioDeduplication_COMBINE_DUPLICATE_STREAMS :: MsSmoothAudioDeduplication
$mMsSmoothAudioDeduplication_COMBINE_DUPLICATE_STREAMS :: forall {r}.
MsSmoothAudioDeduplication -> ((# #) -> r) -> ((# #) -> r) -> r
MsSmoothAudioDeduplication_COMBINE_DUPLICATE_STREAMS = MsSmoothAudioDeduplication' "COMBINE_DUPLICATE_STREAMS"

pattern MsSmoothAudioDeduplication_NONE :: MsSmoothAudioDeduplication
pattern $bMsSmoothAudioDeduplication_NONE :: MsSmoothAudioDeduplication
$mMsSmoothAudioDeduplication_NONE :: forall {r}.
MsSmoothAudioDeduplication -> ((# #) -> r) -> ((# #) -> r) -> r
MsSmoothAudioDeduplication_NONE = MsSmoothAudioDeduplication' "NONE"

{-# COMPLETE
  MsSmoothAudioDeduplication_COMBINE_DUPLICATE_STREAMS,
  MsSmoothAudioDeduplication_NONE,
  MsSmoothAudioDeduplication'
  #-}