{-# 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.AccountType
-- 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.AccountType
  ( AccountType
      ( ..,
        AccountType_EnterpriseDirectory,
        AccountType_EnterpriseLWA,
        AccountType_EnterpriseOIDC,
        AccountType_Team
      ),
  )
where

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

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

pattern AccountType_EnterpriseDirectory :: AccountType
pattern $bAccountType_EnterpriseDirectory :: AccountType
$mAccountType_EnterpriseDirectory :: forall r. AccountType -> (Void# -> r) -> (Void# -> r) -> r
AccountType_EnterpriseDirectory = AccountType' "EnterpriseDirectory"

pattern AccountType_EnterpriseLWA :: AccountType
pattern $bAccountType_EnterpriseLWA :: AccountType
$mAccountType_EnterpriseLWA :: forall r. AccountType -> (Void# -> r) -> (Void# -> r) -> r
AccountType_EnterpriseLWA = AccountType' "EnterpriseLWA"

pattern AccountType_EnterpriseOIDC :: AccountType
pattern $bAccountType_EnterpriseOIDC :: AccountType
$mAccountType_EnterpriseOIDC :: forall r. AccountType -> (Void# -> r) -> (Void# -> r) -> r
AccountType_EnterpriseOIDC = AccountType' "EnterpriseOIDC"

pattern AccountType_Team :: AccountType
pattern $bAccountType_Team :: AccountType
$mAccountType_Team :: forall r. AccountType -> (Void# -> r) -> (Void# -> r) -> r
AccountType_Team = AccountType' "Team"

{-# COMPLETE
  AccountType_EnterpriseDirectory,
  AccountType_EnterpriseLWA,
  AccountType_EnterpriseOIDC,
  AccountType_Team,
  AccountType'
  #-}