{-# 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.AudioDescriptionLanguageCodeControl
-- 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.AudioDescriptionLanguageCodeControl
  ( AudioDescriptionLanguageCodeControl
      ( ..,
        AudioDescriptionLanguageCodeControl_FOLLOW_INPUT,
        AudioDescriptionLanguageCodeControl_USE_CONFIGURED
      ),
  )
where

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

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

pattern AudioDescriptionLanguageCodeControl_FOLLOW_INPUT :: AudioDescriptionLanguageCodeControl
pattern $bAudioDescriptionLanguageCodeControl_FOLLOW_INPUT :: AudioDescriptionLanguageCodeControl
$mAudioDescriptionLanguageCodeControl_FOLLOW_INPUT :: forall {r}.
AudioDescriptionLanguageCodeControl
-> ((# #) -> r) -> ((# #) -> r) -> r
AudioDescriptionLanguageCodeControl_FOLLOW_INPUT = AudioDescriptionLanguageCodeControl' "FOLLOW_INPUT"

pattern AudioDescriptionLanguageCodeControl_USE_CONFIGURED :: AudioDescriptionLanguageCodeControl
pattern $bAudioDescriptionLanguageCodeControl_USE_CONFIGURED :: AudioDescriptionLanguageCodeControl
$mAudioDescriptionLanguageCodeControl_USE_CONFIGURED :: forall {r}.
AudioDescriptionLanguageCodeControl
-> ((# #) -> r) -> ((# #) -> r) -> r
AudioDescriptionLanguageCodeControl_USE_CONFIGURED = AudioDescriptionLanguageCodeControl' "USE_CONFIGURED"

{-# COMPLETE
  AudioDescriptionLanguageCodeControl_FOLLOW_INPUT,
  AudioDescriptionLanguageCodeControl_USE_CONFIGURED,
  AudioDescriptionLanguageCodeControl'
  #-}