{-# 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.AudioSelectorType
-- 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.AudioSelectorType
  ( AudioSelectorType
      ( ..,
        AudioSelectorType_HLS_RENDITION_GROUP,
        AudioSelectorType_LANGUAGE_CODE,
        AudioSelectorType_PID,
        AudioSelectorType_TRACK
      ),
  )
where

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

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

pattern AudioSelectorType_HLS_RENDITION_GROUP :: AudioSelectorType
pattern $bAudioSelectorType_HLS_RENDITION_GROUP :: AudioSelectorType
$mAudioSelectorType_HLS_RENDITION_GROUP :: forall r. AudioSelectorType -> (Void# -> r) -> (Void# -> r) -> r
AudioSelectorType_HLS_RENDITION_GROUP = AudioSelectorType' "HLS_RENDITION_GROUP"

pattern AudioSelectorType_LANGUAGE_CODE :: AudioSelectorType
pattern $bAudioSelectorType_LANGUAGE_CODE :: AudioSelectorType
$mAudioSelectorType_LANGUAGE_CODE :: forall r. AudioSelectorType -> (Void# -> r) -> (Void# -> r) -> r
AudioSelectorType_LANGUAGE_CODE = AudioSelectorType' "LANGUAGE_CODE"

pattern AudioSelectorType_PID :: AudioSelectorType
pattern $bAudioSelectorType_PID :: AudioSelectorType
$mAudioSelectorType_PID :: forall r. AudioSelectorType -> (Void# -> r) -> (Void# -> r) -> r
AudioSelectorType_PID = AudioSelectorType' "PID"

pattern AudioSelectorType_TRACK :: AudioSelectorType
pattern $bAudioSelectorType_TRACK :: AudioSelectorType
$mAudioSelectorType_TRACK :: forall r. AudioSelectorType -> (Void# -> r) -> (Void# -> r) -> r
AudioSelectorType_TRACK = AudioSelectorType' "TRACK"

{-# COMPLETE
  AudioSelectorType_HLS_RENDITION_GROUP,
  AudioSelectorType_LANGUAGE_CODE,
  AudioSelectorType_PID,
  AudioSelectorType_TRACK,
  AudioSelectorType'
  #-}