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

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

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

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

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

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