{-# 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.WorkDocs.Types.UserStatusType
-- 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.WorkDocs.Types.UserStatusType
  ( UserStatusType
      ( ..,
        UserStatusType_ACTIVE,
        UserStatusType_INACTIVE,
        UserStatusType_PENDING
      ),
  )
where

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

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

pattern UserStatusType_ACTIVE :: UserStatusType
pattern $bUserStatusType_ACTIVE :: UserStatusType
$mUserStatusType_ACTIVE :: forall {r}. UserStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserStatusType_ACTIVE = UserStatusType' "ACTIVE"

pattern UserStatusType_INACTIVE :: UserStatusType
pattern $bUserStatusType_INACTIVE :: UserStatusType
$mUserStatusType_INACTIVE :: forall {r}. UserStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserStatusType_INACTIVE = UserStatusType' "INACTIVE"

pattern UserStatusType_PENDING :: UserStatusType
pattern $bUserStatusType_PENDING :: UserStatusType
$mUserStatusType_PENDING :: forall {r}. UserStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
UserStatusType_PENDING = UserStatusType' "PENDING"

{-# COMPLETE
  UserStatusType_ACTIVE,
  UserStatusType_INACTIVE,
  UserStatusType_PENDING,
  UserStatusType'
  #-}