{-# 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.UserSortType
-- 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.UserSortType
  ( UserSortType
      ( ..,
        UserSortType_FULL_NAME,
        UserSortType_STORAGE_LIMIT,
        UserSortType_STORAGE_USED,
        UserSortType_USER_NAME,
        UserSortType_USER_STATUS
      ),
  )
where

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

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

pattern UserSortType_FULL_NAME :: UserSortType
pattern $bUserSortType_FULL_NAME :: UserSortType
$mUserSortType_FULL_NAME :: forall {r}. UserSortType -> ((# #) -> r) -> ((# #) -> r) -> r
UserSortType_FULL_NAME = UserSortType' "FULL_NAME"

pattern UserSortType_STORAGE_LIMIT :: UserSortType
pattern $bUserSortType_STORAGE_LIMIT :: UserSortType
$mUserSortType_STORAGE_LIMIT :: forall {r}. UserSortType -> ((# #) -> r) -> ((# #) -> r) -> r
UserSortType_STORAGE_LIMIT = UserSortType' "STORAGE_LIMIT"

pattern UserSortType_STORAGE_USED :: UserSortType
pattern $bUserSortType_STORAGE_USED :: UserSortType
$mUserSortType_STORAGE_USED :: forall {r}. UserSortType -> ((# #) -> r) -> ((# #) -> r) -> r
UserSortType_STORAGE_USED = UserSortType' "STORAGE_USED"

pattern UserSortType_USER_NAME :: UserSortType
pattern $bUserSortType_USER_NAME :: UserSortType
$mUserSortType_USER_NAME :: forall {r}. UserSortType -> ((# #) -> r) -> ((# #) -> r) -> r
UserSortType_USER_NAME = UserSortType' "USER_NAME"

pattern UserSortType_USER_STATUS :: UserSortType
pattern $bUserSortType_USER_STATUS :: UserSortType
$mUserSortType_USER_STATUS :: forall {r}. UserSortType -> ((# #) -> r) -> ((# #) -> r) -> r
UserSortType_USER_STATUS = UserSortType' "USER_STATUS"

{-# COMPLETE
  UserSortType_FULL_NAME,
  UserSortType_STORAGE_LIMIT,
  UserSortType_STORAGE_USED,
  UserSortType_USER_NAME,
  UserSortType_USER_STATUS,
  UserSortType'
  #-}