{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

pattern UserSortType_USER_STATUS :: UserSortType
pattern $bUserSortType_USER_STATUS :: UserSortType
$mUserSortType_USER_STATUS :: forall r. UserSortType -> (Void# -> r) -> (Void# -> 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'
  #-}