{-# 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.AacInputType
-- 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.MediaLive.Types.AacInputType
  ( AacInputType
      ( ..,
        AacInputType_BROADCASTER_MIXED_AD,
        AacInputType_NORMAL
      ),
  )
where

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

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

pattern AacInputType_BROADCASTER_MIXED_AD :: AacInputType
pattern $bAacInputType_BROADCASTER_MIXED_AD :: AacInputType
$mAacInputType_BROADCASTER_MIXED_AD :: forall r. AacInputType -> (Void# -> r) -> (Void# -> r) -> r
AacInputType_BROADCASTER_MIXED_AD = AacInputType' "BROADCASTER_MIXED_AD"

pattern AacInputType_NORMAL :: AacInputType
pattern $bAacInputType_NORMAL :: AacInputType
$mAacInputType_NORMAL :: forall r. AacInputType -> (Void# -> r) -> (Void# -> r) -> r
AacInputType_NORMAL = AacInputType' "NORMAL"

{-# COMPLETE
  AacInputType_BROADCASTER_MIXED_AD,
  AacInputType_NORMAL,
  AacInputType'
  #-}