{-# 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.ContentMuxType
-- 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.ContentMuxType
  ( ContentMuxType
      ( ..,
        ContentMuxType_ContentOnly
      ),
  )
where

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

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

pattern ContentMuxType_ContentOnly :: ContentMuxType
pattern $bContentMuxType_ContentOnly :: ContentMuxType
$mContentMuxType_ContentOnly :: forall r. ContentMuxType -> (Void# -> r) -> (Void# -> r) -> r
ContentMuxType_ContentOnly = ContentMuxType' "ContentOnly"

{-# COMPLETE
  ContentMuxType_ContentOnly,
  ContentMuxType'
  #-}