{-# 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.ChimeSDKMessaging.Types.ChannelMembershipType
-- 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.ChimeSDKMessaging.Types.ChannelMembershipType
  ( ChannelMembershipType
      ( ..,
        ChannelMembershipType_DEFAULT,
        ChannelMembershipType_HIDDEN
      ),
  )
where

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

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

pattern ChannelMembershipType_DEFAULT :: ChannelMembershipType
pattern $bChannelMembershipType_DEFAULT :: ChannelMembershipType
$mChannelMembershipType_DEFAULT :: forall r.
ChannelMembershipType -> (Void# -> r) -> (Void# -> r) -> r
ChannelMembershipType_DEFAULT = ChannelMembershipType' "DEFAULT"

pattern ChannelMembershipType_HIDDEN :: ChannelMembershipType
pattern $bChannelMembershipType_HIDDEN :: ChannelMembershipType
$mChannelMembershipType_HIDDEN :: forall r.
ChannelMembershipType -> (Void# -> r) -> (Void# -> r) -> r
ChannelMembershipType_HIDDEN = ChannelMembershipType' "HIDDEN"

{-# COMPLETE
  ChannelMembershipType_DEFAULT,
  ChannelMembershipType_HIDDEN,
  ChannelMembershipType'
  #-}