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

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> MsSmoothAudioDeduplication -> ShowS
[MsSmoothAudioDeduplication] -> ShowS
MsSmoothAudioDeduplication -> String
(Int -> MsSmoothAudioDeduplication -> ShowS)
-> (MsSmoothAudioDeduplication -> String)
-> ([MsSmoothAudioDeduplication] -> ShowS)
-> Show MsSmoothAudioDeduplication
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]
(Int -> ReadS MsSmoothAudioDeduplication)
-> ReadS [MsSmoothAudioDeduplication]
-> ReadPrec MsSmoothAudioDeduplication
-> ReadPrec [MsSmoothAudioDeduplication]
-> Read 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
(MsSmoothAudioDeduplication -> MsSmoothAudioDeduplication -> Bool)
-> (MsSmoothAudioDeduplication
    -> MsSmoothAudioDeduplication -> Bool)
-> Eq MsSmoothAudioDeduplication
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
Eq MsSmoothAudioDeduplication
-> (MsSmoothAudioDeduplication
    -> MsSmoothAudioDeduplication -> Ordering)
-> (MsSmoothAudioDeduplication
    -> MsSmoothAudioDeduplication -> Bool)
-> (MsSmoothAudioDeduplication
    -> MsSmoothAudioDeduplication -> Bool)
-> (MsSmoothAudioDeduplication
    -> MsSmoothAudioDeduplication -> Bool)
-> (MsSmoothAudioDeduplication
    -> MsSmoothAudioDeduplication -> Bool)
-> (MsSmoothAudioDeduplication
    -> MsSmoothAudioDeduplication -> MsSmoothAudioDeduplication)
-> (MsSmoothAudioDeduplication
    -> MsSmoothAudioDeduplication -> MsSmoothAudioDeduplication)
-> Ord 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
$cp1Ord :: Eq MsSmoothAudioDeduplication
Prelude.Ord,
      (forall x.
 MsSmoothAudioDeduplication -> Rep MsSmoothAudioDeduplication x)
-> (forall x.
    Rep MsSmoothAudioDeduplication x -> MsSmoothAudioDeduplication)
-> Generic MsSmoothAudioDeduplication
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
    ( Int -> MsSmoothAudioDeduplication -> Int
MsSmoothAudioDeduplication -> Int
(Int -> MsSmoothAudioDeduplication -> Int)
-> (MsSmoothAudioDeduplication -> Int)
-> Hashable MsSmoothAudioDeduplication
forall 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 -> ()
(MsSmoothAudioDeduplication -> ())
-> NFData MsSmoothAudioDeduplication
forall a. (a -> ()) -> NFData a
rnf :: MsSmoothAudioDeduplication -> ()
$crnf :: MsSmoothAudioDeduplication -> ()
Prelude.NFData,
      Text -> Either String MsSmoothAudioDeduplication
(Text -> Either String MsSmoothAudioDeduplication)
-> FromText MsSmoothAudioDeduplication
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MsSmoothAudioDeduplication
$cfromText :: Text -> Either String MsSmoothAudioDeduplication
Core.FromText,
      MsSmoothAudioDeduplication -> Text
(MsSmoothAudioDeduplication -> Text)
-> ToText MsSmoothAudioDeduplication
forall a. (a -> Text) -> ToText a
toText :: MsSmoothAudioDeduplication -> Text
$ctoText :: MsSmoothAudioDeduplication -> Text
Core.ToText,
      MsSmoothAudioDeduplication -> ByteString
(MsSmoothAudioDeduplication -> ByteString)
-> ToByteString MsSmoothAudioDeduplication
forall a. (a -> ByteString) -> ToByteString a
toBS :: MsSmoothAudioDeduplication -> ByteString
$ctoBS :: MsSmoothAudioDeduplication -> ByteString
Core.ToByteString,
      MsSmoothAudioDeduplication -> ByteStringBuilder
(MsSmoothAudioDeduplication -> ByteStringBuilder)
-> ToLog MsSmoothAudioDeduplication
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MsSmoothAudioDeduplication -> ByteStringBuilder
$cbuild :: MsSmoothAudioDeduplication -> ByteStringBuilder
Core.ToLog,
      HeaderName -> MsSmoothAudioDeduplication -> [Header]
(HeaderName -> MsSmoothAudioDeduplication -> [Header])
-> ToHeader MsSmoothAudioDeduplication
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MsSmoothAudioDeduplication -> [Header]
$ctoHeader :: HeaderName -> MsSmoothAudioDeduplication -> [Header]
Core.ToHeader,
      MsSmoothAudioDeduplication -> QueryString
(MsSmoothAudioDeduplication -> QueryString)
-> ToQuery MsSmoothAudioDeduplication
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MsSmoothAudioDeduplication -> QueryString
$ctoQuery :: MsSmoothAudioDeduplication -> QueryString
Core.ToQuery,
      Value -> Parser [MsSmoothAudioDeduplication]
Value -> Parser MsSmoothAudioDeduplication
(Value -> Parser MsSmoothAudioDeduplication)
-> (Value -> Parser [MsSmoothAudioDeduplication])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [MsSmoothAudioDeduplication]
FromJSONKeyFunction MsSmoothAudioDeduplication
FromJSONKeyFunction MsSmoothAudioDeduplication
-> FromJSONKeyFunction [MsSmoothAudioDeduplication]
-> FromJSONKey MsSmoothAudioDeduplication
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MsSmoothAudioDeduplication]
$cfromJSONKeyList :: FromJSONKeyFunction [MsSmoothAudioDeduplication]
fromJSONKey :: FromJSONKeyFunction MsSmoothAudioDeduplication
$cfromJSONKey :: FromJSONKeyFunction MsSmoothAudioDeduplication
Core.FromJSONKey,
      [MsSmoothAudioDeduplication] -> Encoding
[MsSmoothAudioDeduplication] -> Value
MsSmoothAudioDeduplication -> Encoding
MsSmoothAudioDeduplication -> Value
(MsSmoothAudioDeduplication -> Value)
-> (MsSmoothAudioDeduplication -> Encoding)
-> ([MsSmoothAudioDeduplication] -> Value)
-> ([MsSmoothAudioDeduplication] -> Encoding)
-> ToJSON MsSmoothAudioDeduplication
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
Core.ToJSON,
      ToJSONKeyFunction [MsSmoothAudioDeduplication]
ToJSONKeyFunction MsSmoothAudioDeduplication
ToJSONKeyFunction MsSmoothAudioDeduplication
-> ToJSONKeyFunction [MsSmoothAudioDeduplication]
-> ToJSONKey MsSmoothAudioDeduplication
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MsSmoothAudioDeduplication]
$ctoJSONKeyList :: ToJSONKeyFunction [MsSmoothAudioDeduplication]
toJSONKey :: ToJSONKeyFunction MsSmoothAudioDeduplication
$ctoJSONKey :: ToJSONKeyFunction MsSmoothAudioDeduplication
Core.ToJSONKey,
      [Node] -> Either String MsSmoothAudioDeduplication
([Node] -> Either String MsSmoothAudioDeduplication)
-> FromXML MsSmoothAudioDeduplication
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MsSmoothAudioDeduplication
$cparseXML :: [Node] -> Either String MsSmoothAudioDeduplication
Core.FromXML,
      MsSmoothAudioDeduplication -> XML
(MsSmoothAudioDeduplication -> XML)
-> ToXML MsSmoothAudioDeduplication
forall a. (a -> XML) -> ToXML a
toXML :: MsSmoothAudioDeduplication -> XML
$ctoXML :: MsSmoothAudioDeduplication -> XML
Core.ToXML
    )

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

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

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