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

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

newtype MediaPipelineSourceType = MediaPipelineSourceType'
  { MediaPipelineSourceType -> Text
fromMediaPipelineSourceType ::
      Core.Text
  }
  deriving stock
    ( Int -> MediaPipelineSourceType -> ShowS
[MediaPipelineSourceType] -> ShowS
MediaPipelineSourceType -> String
(Int -> MediaPipelineSourceType -> ShowS)
-> (MediaPipelineSourceType -> String)
-> ([MediaPipelineSourceType] -> ShowS)
-> Show MediaPipelineSourceType
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]
(Int -> ReadS MediaPipelineSourceType)
-> ReadS [MediaPipelineSourceType]
-> ReadPrec MediaPipelineSourceType
-> ReadPrec [MediaPipelineSourceType]
-> Read 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
(MediaPipelineSourceType -> MediaPipelineSourceType -> Bool)
-> (MediaPipelineSourceType -> MediaPipelineSourceType -> Bool)
-> Eq MediaPipelineSourceType
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
Eq MediaPipelineSourceType
-> (MediaPipelineSourceType -> MediaPipelineSourceType -> Ordering)
-> (MediaPipelineSourceType -> MediaPipelineSourceType -> Bool)
-> (MediaPipelineSourceType -> MediaPipelineSourceType -> Bool)
-> (MediaPipelineSourceType -> MediaPipelineSourceType -> Bool)
-> (MediaPipelineSourceType -> MediaPipelineSourceType -> Bool)
-> (MediaPipelineSourceType
    -> MediaPipelineSourceType -> MediaPipelineSourceType)
-> (MediaPipelineSourceType
    -> MediaPipelineSourceType -> MediaPipelineSourceType)
-> Ord 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
$cp1Ord :: Eq MediaPipelineSourceType
Prelude.Ord,
      (forall x.
 MediaPipelineSourceType -> Rep MediaPipelineSourceType x)
-> (forall x.
    Rep MediaPipelineSourceType x -> MediaPipelineSourceType)
-> Generic MediaPipelineSourceType
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
    ( Int -> MediaPipelineSourceType -> Int
MediaPipelineSourceType -> Int
(Int -> MediaPipelineSourceType -> Int)
-> (MediaPipelineSourceType -> Int)
-> Hashable MediaPipelineSourceType
forall 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 -> ()
(MediaPipelineSourceType -> ()) -> NFData MediaPipelineSourceType
forall a. (a -> ()) -> NFData a
rnf :: MediaPipelineSourceType -> ()
$crnf :: MediaPipelineSourceType -> ()
Prelude.NFData,
      Text -> Either String MediaPipelineSourceType
(Text -> Either String MediaPipelineSourceType)
-> FromText MediaPipelineSourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MediaPipelineSourceType
$cfromText :: Text -> Either String MediaPipelineSourceType
Core.FromText,
      MediaPipelineSourceType -> Text
(MediaPipelineSourceType -> Text) -> ToText MediaPipelineSourceType
forall a. (a -> Text) -> ToText a
toText :: MediaPipelineSourceType -> Text
$ctoText :: MediaPipelineSourceType -> Text
Core.ToText,
      MediaPipelineSourceType -> ByteString
(MediaPipelineSourceType -> ByteString)
-> ToByteString MediaPipelineSourceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: MediaPipelineSourceType -> ByteString
$ctoBS :: MediaPipelineSourceType -> ByteString
Core.ToByteString,
      MediaPipelineSourceType -> ByteStringBuilder
(MediaPipelineSourceType -> ByteStringBuilder)
-> ToLog MediaPipelineSourceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MediaPipelineSourceType -> ByteStringBuilder
$cbuild :: MediaPipelineSourceType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> MediaPipelineSourceType -> [Header]
(HeaderName -> MediaPipelineSourceType -> [Header])
-> ToHeader MediaPipelineSourceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MediaPipelineSourceType -> [Header]
$ctoHeader :: HeaderName -> MediaPipelineSourceType -> [Header]
Core.ToHeader,
      MediaPipelineSourceType -> QueryString
(MediaPipelineSourceType -> QueryString)
-> ToQuery MediaPipelineSourceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MediaPipelineSourceType -> QueryString
$ctoQuery :: MediaPipelineSourceType -> QueryString
Core.ToQuery,
      Value -> Parser [MediaPipelineSourceType]
Value -> Parser MediaPipelineSourceType
(Value -> Parser MediaPipelineSourceType)
-> (Value -> Parser [MediaPipelineSourceType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [MediaPipelineSourceType]
FromJSONKeyFunction MediaPipelineSourceType
FromJSONKeyFunction MediaPipelineSourceType
-> FromJSONKeyFunction [MediaPipelineSourceType]
-> FromJSONKey MediaPipelineSourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MediaPipelineSourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [MediaPipelineSourceType]
fromJSONKey :: FromJSONKeyFunction MediaPipelineSourceType
$cfromJSONKey :: FromJSONKeyFunction MediaPipelineSourceType
Core.FromJSONKey,
      [MediaPipelineSourceType] -> Encoding
[MediaPipelineSourceType] -> Value
MediaPipelineSourceType -> Encoding
MediaPipelineSourceType -> Value
(MediaPipelineSourceType -> Value)
-> (MediaPipelineSourceType -> Encoding)
-> ([MediaPipelineSourceType] -> Value)
-> ([MediaPipelineSourceType] -> Encoding)
-> ToJSON MediaPipelineSourceType
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
Core.ToJSON,
      ToJSONKeyFunction [MediaPipelineSourceType]
ToJSONKeyFunction MediaPipelineSourceType
ToJSONKeyFunction MediaPipelineSourceType
-> ToJSONKeyFunction [MediaPipelineSourceType]
-> ToJSONKey MediaPipelineSourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MediaPipelineSourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [MediaPipelineSourceType]
toJSONKey :: ToJSONKeyFunction MediaPipelineSourceType
$ctoJSONKey :: ToJSONKeyFunction MediaPipelineSourceType
Core.ToJSONKey,
      [Node] -> Either String MediaPipelineSourceType
([Node] -> Either String MediaPipelineSourceType)
-> FromXML MediaPipelineSourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MediaPipelineSourceType
$cparseXML :: [Node] -> Either String MediaPipelineSourceType
Core.FromXML,
      MediaPipelineSourceType -> XML
(MediaPipelineSourceType -> XML) -> ToXML MediaPipelineSourceType
forall a. (a -> XML) -> ToXML a
toXML :: MediaPipelineSourceType -> XML
$ctoXML :: MediaPipelineSourceType -> XML
Core.ToXML
    )

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

{-# COMPLETE
  MediaPipelineSourceType_ChimeSdkMeeting,
  MediaPipelineSourceType'
  #-}