{-# 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.Chime.Types.MediaPipelineSourceType
-- 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.Chime.Types.MediaPipelineSourceType
  ( MediaPipelineSourceType
      ( ..,
        MediaPipelineSourceType_ChimeSdkMeeting
      ),
  )
where

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

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

pattern MediaPipelineSourceType_ChimeSdkMeeting :: MediaPipelineSourceType
pattern $bMediaPipelineSourceType_ChimeSdkMeeting :: MediaPipelineSourceType
$mMediaPipelineSourceType_ChimeSdkMeeting :: forall {r}.
MediaPipelineSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
MediaPipelineSourceType_ChimeSdkMeeting = MediaPipelineSourceType' "ChimeSdkMeeting"

{-# COMPLETE
  MediaPipelineSourceType_ChimeSdkMeeting,
  MediaPipelineSourceType'
  #-}