{-# 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.VideoMuxType
-- 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.VideoMuxType
  ( VideoMuxType
      ( ..,
        VideoMuxType_VideoOnly
      ),
  )
where

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

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

pattern VideoMuxType_VideoOnly :: VideoMuxType
pattern $bVideoMuxType_VideoOnly :: VideoMuxType
$mVideoMuxType_VideoOnly :: forall r. VideoMuxType -> (Void# -> r) -> (Void# -> r) -> r
VideoMuxType_VideoOnly = VideoMuxType' "VideoOnly"

{-# COMPLETE
  VideoMuxType_VideoOnly,
  VideoMuxType'
  #-}