{-# 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.AudioDefaultSelection
-- 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.AudioDefaultSelection
  ( AudioDefaultSelection
      ( ..,
        AudioDefaultSelection_DEFAULT,
        AudioDefaultSelection_NOT_DEFAULT
      ),
  )
where

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

-- | Enable this setting on one audio selector to set it as the default for
-- the job. The service uses this default for outputs where it can\'t find
-- the specified input audio. If you don\'t set a default, those outputs
-- have no audio.
newtype AudioDefaultSelection = AudioDefaultSelection'
  { AudioDefaultSelection -> Text
fromAudioDefaultSelection ::
      Core.Text
  }
  deriving stock
    ( Int -> AudioDefaultSelection -> ShowS
[AudioDefaultSelection] -> ShowS
AudioDefaultSelection -> String
(Int -> AudioDefaultSelection -> ShowS)
-> (AudioDefaultSelection -> String)
-> ([AudioDefaultSelection] -> ShowS)
-> Show AudioDefaultSelection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AudioDefaultSelection] -> ShowS
$cshowList :: [AudioDefaultSelection] -> ShowS
show :: AudioDefaultSelection -> String
$cshow :: AudioDefaultSelection -> String
showsPrec :: Int -> AudioDefaultSelection -> ShowS
$cshowsPrec :: Int -> AudioDefaultSelection -> ShowS
Prelude.Show,
      ReadPrec [AudioDefaultSelection]
ReadPrec AudioDefaultSelection
Int -> ReadS AudioDefaultSelection
ReadS [AudioDefaultSelection]
(Int -> ReadS AudioDefaultSelection)
-> ReadS [AudioDefaultSelection]
-> ReadPrec AudioDefaultSelection
-> ReadPrec [AudioDefaultSelection]
-> Read AudioDefaultSelection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AudioDefaultSelection]
$creadListPrec :: ReadPrec [AudioDefaultSelection]
readPrec :: ReadPrec AudioDefaultSelection
$creadPrec :: ReadPrec AudioDefaultSelection
readList :: ReadS [AudioDefaultSelection]
$creadList :: ReadS [AudioDefaultSelection]
readsPrec :: Int -> ReadS AudioDefaultSelection
$creadsPrec :: Int -> ReadS AudioDefaultSelection
Prelude.Read,
      AudioDefaultSelection -> AudioDefaultSelection -> Bool
(AudioDefaultSelection -> AudioDefaultSelection -> Bool)
-> (AudioDefaultSelection -> AudioDefaultSelection -> Bool)
-> Eq AudioDefaultSelection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
$c/= :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
== :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
$c== :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
Prelude.Eq,
      Eq AudioDefaultSelection
Eq AudioDefaultSelection
-> (AudioDefaultSelection -> AudioDefaultSelection -> Ordering)
-> (AudioDefaultSelection -> AudioDefaultSelection -> Bool)
-> (AudioDefaultSelection -> AudioDefaultSelection -> Bool)
-> (AudioDefaultSelection -> AudioDefaultSelection -> Bool)
-> (AudioDefaultSelection -> AudioDefaultSelection -> Bool)
-> (AudioDefaultSelection
    -> AudioDefaultSelection -> AudioDefaultSelection)
-> (AudioDefaultSelection
    -> AudioDefaultSelection -> AudioDefaultSelection)
-> Ord AudioDefaultSelection
AudioDefaultSelection -> AudioDefaultSelection -> Bool
AudioDefaultSelection -> AudioDefaultSelection -> Ordering
AudioDefaultSelection
-> AudioDefaultSelection -> AudioDefaultSelection
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 :: AudioDefaultSelection
-> AudioDefaultSelection -> AudioDefaultSelection
$cmin :: AudioDefaultSelection
-> AudioDefaultSelection -> AudioDefaultSelection
max :: AudioDefaultSelection
-> AudioDefaultSelection -> AudioDefaultSelection
$cmax :: AudioDefaultSelection
-> AudioDefaultSelection -> AudioDefaultSelection
>= :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
$c>= :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
> :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
$c> :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
<= :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
$c<= :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
< :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
$c< :: AudioDefaultSelection -> AudioDefaultSelection -> Bool
compare :: AudioDefaultSelection -> AudioDefaultSelection -> Ordering
$ccompare :: AudioDefaultSelection -> AudioDefaultSelection -> Ordering
$cp1Ord :: Eq AudioDefaultSelection
Prelude.Ord,
      (forall x. AudioDefaultSelection -> Rep AudioDefaultSelection x)
-> (forall x. Rep AudioDefaultSelection x -> AudioDefaultSelection)
-> Generic AudioDefaultSelection
forall x. Rep AudioDefaultSelection x -> AudioDefaultSelection
forall x. AudioDefaultSelection -> Rep AudioDefaultSelection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AudioDefaultSelection x -> AudioDefaultSelection
$cfrom :: forall x. AudioDefaultSelection -> Rep AudioDefaultSelection x
Prelude.Generic
    )
  deriving newtype
    ( Int -> AudioDefaultSelection -> Int
AudioDefaultSelection -> Int
(Int -> AudioDefaultSelection -> Int)
-> (AudioDefaultSelection -> Int) -> Hashable AudioDefaultSelection
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AudioDefaultSelection -> Int
$chash :: AudioDefaultSelection -> Int
hashWithSalt :: Int -> AudioDefaultSelection -> Int
$chashWithSalt :: Int -> AudioDefaultSelection -> Int
Prelude.Hashable,
      AudioDefaultSelection -> ()
(AudioDefaultSelection -> ()) -> NFData AudioDefaultSelection
forall a. (a -> ()) -> NFData a
rnf :: AudioDefaultSelection -> ()
$crnf :: AudioDefaultSelection -> ()
Prelude.NFData,
      Text -> Either String AudioDefaultSelection
(Text -> Either String AudioDefaultSelection)
-> FromText AudioDefaultSelection
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AudioDefaultSelection
$cfromText :: Text -> Either String AudioDefaultSelection
Core.FromText,
      AudioDefaultSelection -> Text
(AudioDefaultSelection -> Text) -> ToText AudioDefaultSelection
forall a. (a -> Text) -> ToText a
toText :: AudioDefaultSelection -> Text
$ctoText :: AudioDefaultSelection -> Text
Core.ToText,
      AudioDefaultSelection -> ByteString
(AudioDefaultSelection -> ByteString)
-> ToByteString AudioDefaultSelection
forall a. (a -> ByteString) -> ToByteString a
toBS :: AudioDefaultSelection -> ByteString
$ctoBS :: AudioDefaultSelection -> ByteString
Core.ToByteString,
      AudioDefaultSelection -> ByteStringBuilder
(AudioDefaultSelection -> ByteStringBuilder)
-> ToLog AudioDefaultSelection
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AudioDefaultSelection -> ByteStringBuilder
$cbuild :: AudioDefaultSelection -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AudioDefaultSelection -> [Header]
(HeaderName -> AudioDefaultSelection -> [Header])
-> ToHeader AudioDefaultSelection
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AudioDefaultSelection -> [Header]
$ctoHeader :: HeaderName -> AudioDefaultSelection -> [Header]
Core.ToHeader,
      AudioDefaultSelection -> QueryString
(AudioDefaultSelection -> QueryString)
-> ToQuery AudioDefaultSelection
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AudioDefaultSelection -> QueryString
$ctoQuery :: AudioDefaultSelection -> QueryString
Core.ToQuery,
      Value -> Parser [AudioDefaultSelection]
Value -> Parser AudioDefaultSelection
(Value -> Parser AudioDefaultSelection)
-> (Value -> Parser [AudioDefaultSelection])
-> FromJSON AudioDefaultSelection
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AudioDefaultSelection]
$cparseJSONList :: Value -> Parser [AudioDefaultSelection]
parseJSON :: Value -> Parser AudioDefaultSelection
$cparseJSON :: Value -> Parser AudioDefaultSelection
Core.FromJSON,
      FromJSONKeyFunction [AudioDefaultSelection]
FromJSONKeyFunction AudioDefaultSelection
FromJSONKeyFunction AudioDefaultSelection
-> FromJSONKeyFunction [AudioDefaultSelection]
-> FromJSONKey AudioDefaultSelection
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AudioDefaultSelection]
$cfromJSONKeyList :: FromJSONKeyFunction [AudioDefaultSelection]
fromJSONKey :: FromJSONKeyFunction AudioDefaultSelection
$cfromJSONKey :: FromJSONKeyFunction AudioDefaultSelection
Core.FromJSONKey,
      [AudioDefaultSelection] -> Encoding
[AudioDefaultSelection] -> Value
AudioDefaultSelection -> Encoding
AudioDefaultSelection -> Value
(AudioDefaultSelection -> Value)
-> (AudioDefaultSelection -> Encoding)
-> ([AudioDefaultSelection] -> Value)
-> ([AudioDefaultSelection] -> Encoding)
-> ToJSON AudioDefaultSelection
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AudioDefaultSelection] -> Encoding
$ctoEncodingList :: [AudioDefaultSelection] -> Encoding
toJSONList :: [AudioDefaultSelection] -> Value
$ctoJSONList :: [AudioDefaultSelection] -> Value
toEncoding :: AudioDefaultSelection -> Encoding
$ctoEncoding :: AudioDefaultSelection -> Encoding
toJSON :: AudioDefaultSelection -> Value
$ctoJSON :: AudioDefaultSelection -> Value
Core.ToJSON,
      ToJSONKeyFunction [AudioDefaultSelection]
ToJSONKeyFunction AudioDefaultSelection
ToJSONKeyFunction AudioDefaultSelection
-> ToJSONKeyFunction [AudioDefaultSelection]
-> ToJSONKey AudioDefaultSelection
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AudioDefaultSelection]
$ctoJSONKeyList :: ToJSONKeyFunction [AudioDefaultSelection]
toJSONKey :: ToJSONKeyFunction AudioDefaultSelection
$ctoJSONKey :: ToJSONKeyFunction AudioDefaultSelection
Core.ToJSONKey,
      [Node] -> Either String AudioDefaultSelection
([Node] -> Either String AudioDefaultSelection)
-> FromXML AudioDefaultSelection
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AudioDefaultSelection
$cparseXML :: [Node] -> Either String AudioDefaultSelection
Core.FromXML,
      AudioDefaultSelection -> XML
(AudioDefaultSelection -> XML) -> ToXML AudioDefaultSelection
forall a. (a -> XML) -> ToXML a
toXML :: AudioDefaultSelection -> XML
$ctoXML :: AudioDefaultSelection -> XML
Core.ToXML
    )

pattern AudioDefaultSelection_DEFAULT :: AudioDefaultSelection
pattern $bAudioDefaultSelection_DEFAULT :: AudioDefaultSelection
$mAudioDefaultSelection_DEFAULT :: forall r.
AudioDefaultSelection -> (Void# -> r) -> (Void# -> r) -> r
AudioDefaultSelection_DEFAULT = AudioDefaultSelection' "DEFAULT"

pattern AudioDefaultSelection_NOT_DEFAULT :: AudioDefaultSelection
pattern $bAudioDefaultSelection_NOT_DEFAULT :: AudioDefaultSelection
$mAudioDefaultSelection_NOT_DEFAULT :: forall r.
AudioDefaultSelection -> (Void# -> r) -> (Void# -> r) -> r
AudioDefaultSelection_NOT_DEFAULT = AudioDefaultSelection' "NOT_DEFAULT"

{-# COMPLETE
  AudioDefaultSelection_DEFAULT,
  AudioDefaultSelection_NOT_DEFAULT,
  AudioDefaultSelection'
  #-}