{-# 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.RegistrationStatus
-- 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.RegistrationStatus
  ( RegistrationStatus
      ( ..,
        RegistrationStatus_Registered,
        RegistrationStatus_Suspended,
        RegistrationStatus_Unregistered
      ),
  )
where

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

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

pattern RegistrationStatus_Registered :: RegistrationStatus
pattern $bRegistrationStatus_Registered :: RegistrationStatus
$mRegistrationStatus_Registered :: forall r. RegistrationStatus -> (Void# -> r) -> (Void# -> r) -> r
RegistrationStatus_Registered = RegistrationStatus' "Registered"

pattern RegistrationStatus_Suspended :: RegistrationStatus
pattern $bRegistrationStatus_Suspended :: RegistrationStatus
$mRegistrationStatus_Suspended :: forall r. RegistrationStatus -> (Void# -> r) -> (Void# -> r) -> r
RegistrationStatus_Suspended = RegistrationStatus' "Suspended"

pattern RegistrationStatus_Unregistered :: RegistrationStatus
pattern $bRegistrationStatus_Unregistered :: RegistrationStatus
$mRegistrationStatus_Unregistered :: forall r. RegistrationStatus -> (Void# -> r) -> (Void# -> r) -> r
RegistrationStatus_Unregistered = RegistrationStatus' "Unregistered"

{-# COMPLETE
  RegistrationStatus_Registered,
  RegistrationStatus_Suspended,
  RegistrationStatus_Unregistered,
  RegistrationStatus'
  #-}