{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SecretsManager.Types.SortOrderType
( SortOrderType
( ..,
SortOrderType_Asc,
SortOrderType_Desc
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SortOrderType = SortOrderType'
{ SortOrderType -> Text
fromSortOrderType ::
Core.Text
}
deriving stock
( Int -> SortOrderType -> ShowS
[SortOrderType] -> ShowS
SortOrderType -> String
(Int -> SortOrderType -> ShowS)
-> (SortOrderType -> String)
-> ([SortOrderType] -> ShowS)
-> Show SortOrderType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SortOrderType] -> ShowS
$cshowList :: [SortOrderType] -> ShowS
show :: SortOrderType -> String
$cshow :: SortOrderType -> String
showsPrec :: Int -> SortOrderType -> ShowS
$cshowsPrec :: Int -> SortOrderType -> ShowS
Prelude.Show,
ReadPrec [SortOrderType]
ReadPrec SortOrderType
Int -> ReadS SortOrderType
ReadS [SortOrderType]
(Int -> ReadS SortOrderType)
-> ReadS [SortOrderType]
-> ReadPrec SortOrderType
-> ReadPrec [SortOrderType]
-> Read SortOrderType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SortOrderType]
$creadListPrec :: ReadPrec [SortOrderType]
readPrec :: ReadPrec SortOrderType
$creadPrec :: ReadPrec SortOrderType
readList :: ReadS [SortOrderType]
$creadList :: ReadS [SortOrderType]
readsPrec :: Int -> ReadS SortOrderType
$creadsPrec :: Int -> ReadS SortOrderType
Prelude.Read,
SortOrderType -> SortOrderType -> Bool
(SortOrderType -> SortOrderType -> Bool)
-> (SortOrderType -> SortOrderType -> Bool) -> Eq SortOrderType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SortOrderType -> SortOrderType -> Bool
$c/= :: SortOrderType -> SortOrderType -> Bool
== :: SortOrderType -> SortOrderType -> Bool
$c== :: SortOrderType -> SortOrderType -> Bool
Prelude.Eq,
Eq SortOrderType
Eq SortOrderType
-> (SortOrderType -> SortOrderType -> Ordering)
-> (SortOrderType -> SortOrderType -> Bool)
-> (SortOrderType -> SortOrderType -> Bool)
-> (SortOrderType -> SortOrderType -> Bool)
-> (SortOrderType -> SortOrderType -> Bool)
-> (SortOrderType -> SortOrderType -> SortOrderType)
-> (SortOrderType -> SortOrderType -> SortOrderType)
-> Ord SortOrderType
SortOrderType -> SortOrderType -> Bool
SortOrderType -> SortOrderType -> Ordering
SortOrderType -> SortOrderType -> SortOrderType
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 :: SortOrderType -> SortOrderType -> SortOrderType
$cmin :: SortOrderType -> SortOrderType -> SortOrderType
max :: SortOrderType -> SortOrderType -> SortOrderType
$cmax :: SortOrderType -> SortOrderType -> SortOrderType
>= :: SortOrderType -> SortOrderType -> Bool
$c>= :: SortOrderType -> SortOrderType -> Bool
> :: SortOrderType -> SortOrderType -> Bool
$c> :: SortOrderType -> SortOrderType -> Bool
<= :: SortOrderType -> SortOrderType -> Bool
$c<= :: SortOrderType -> SortOrderType -> Bool
< :: SortOrderType -> SortOrderType -> Bool
$c< :: SortOrderType -> SortOrderType -> Bool
compare :: SortOrderType -> SortOrderType -> Ordering
$ccompare :: SortOrderType -> SortOrderType -> Ordering
$cp1Ord :: Eq SortOrderType
Prelude.Ord,
(forall x. SortOrderType -> Rep SortOrderType x)
-> (forall x. Rep SortOrderType x -> SortOrderType)
-> Generic SortOrderType
forall x. Rep SortOrderType x -> SortOrderType
forall x. SortOrderType -> Rep SortOrderType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SortOrderType x -> SortOrderType
$cfrom :: forall x. SortOrderType -> Rep SortOrderType x
Prelude.Generic
)
deriving newtype
( Int -> SortOrderType -> Int
SortOrderType -> Int
(Int -> SortOrderType -> Int)
-> (SortOrderType -> Int) -> Hashable SortOrderType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SortOrderType -> Int
$chash :: SortOrderType -> Int
hashWithSalt :: Int -> SortOrderType -> Int
$chashWithSalt :: Int -> SortOrderType -> Int
Prelude.Hashable,
SortOrderType -> ()
(SortOrderType -> ()) -> NFData SortOrderType
forall a. (a -> ()) -> NFData a
rnf :: SortOrderType -> ()
$crnf :: SortOrderType -> ()
Prelude.NFData,
Text -> Either String SortOrderType
(Text -> Either String SortOrderType) -> FromText SortOrderType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SortOrderType
$cfromText :: Text -> Either String SortOrderType
Core.FromText,
SortOrderType -> Text
(SortOrderType -> Text) -> ToText SortOrderType
forall a. (a -> Text) -> ToText a
toText :: SortOrderType -> Text
$ctoText :: SortOrderType -> Text
Core.ToText,
SortOrderType -> ByteString
(SortOrderType -> ByteString) -> ToByteString SortOrderType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SortOrderType -> ByteString
$ctoBS :: SortOrderType -> ByteString
Core.ToByteString,
SortOrderType -> ByteStringBuilder
(SortOrderType -> ByteStringBuilder) -> ToLog SortOrderType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SortOrderType -> ByteStringBuilder
$cbuild :: SortOrderType -> ByteStringBuilder
Core.ToLog,
HeaderName -> SortOrderType -> [Header]
(HeaderName -> SortOrderType -> [Header]) -> ToHeader SortOrderType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SortOrderType -> [Header]
$ctoHeader :: HeaderName -> SortOrderType -> [Header]
Core.ToHeader,
SortOrderType -> QueryString
(SortOrderType -> QueryString) -> ToQuery SortOrderType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SortOrderType -> QueryString
$ctoQuery :: SortOrderType -> QueryString
Core.ToQuery,
Value -> Parser [SortOrderType]
Value -> Parser SortOrderType
(Value -> Parser SortOrderType)
-> (Value -> Parser [SortOrderType]) -> FromJSON SortOrderType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SortOrderType]
$cparseJSONList :: Value -> Parser [SortOrderType]
parseJSON :: Value -> Parser SortOrderType
$cparseJSON :: Value -> Parser SortOrderType
Core.FromJSON,
FromJSONKeyFunction [SortOrderType]
FromJSONKeyFunction SortOrderType
FromJSONKeyFunction SortOrderType
-> FromJSONKeyFunction [SortOrderType] -> FromJSONKey SortOrderType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SortOrderType]
$cfromJSONKeyList :: FromJSONKeyFunction [SortOrderType]
fromJSONKey :: FromJSONKeyFunction SortOrderType
$cfromJSONKey :: FromJSONKeyFunction SortOrderType
Core.FromJSONKey,
[SortOrderType] -> Encoding
[SortOrderType] -> Value
SortOrderType -> Encoding
SortOrderType -> Value
(SortOrderType -> Value)
-> (SortOrderType -> Encoding)
-> ([SortOrderType] -> Value)
-> ([SortOrderType] -> Encoding)
-> ToJSON SortOrderType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SortOrderType] -> Encoding
$ctoEncodingList :: [SortOrderType] -> Encoding
toJSONList :: [SortOrderType] -> Value
$ctoJSONList :: [SortOrderType] -> Value
toEncoding :: SortOrderType -> Encoding
$ctoEncoding :: SortOrderType -> Encoding
toJSON :: SortOrderType -> Value
$ctoJSON :: SortOrderType -> Value
Core.ToJSON,
ToJSONKeyFunction [SortOrderType]
ToJSONKeyFunction SortOrderType
ToJSONKeyFunction SortOrderType
-> ToJSONKeyFunction [SortOrderType] -> ToJSONKey SortOrderType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SortOrderType]
$ctoJSONKeyList :: ToJSONKeyFunction [SortOrderType]
toJSONKey :: ToJSONKeyFunction SortOrderType
$ctoJSONKey :: ToJSONKeyFunction SortOrderType
Core.ToJSONKey,
[Node] -> Either String SortOrderType
([Node] -> Either String SortOrderType) -> FromXML SortOrderType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SortOrderType
$cparseXML :: [Node] -> Either String SortOrderType
Core.FromXML,
SortOrderType -> XML
(SortOrderType -> XML) -> ToXML SortOrderType
forall a. (a -> XML) -> ToXML a
toXML :: SortOrderType -> XML
$ctoXML :: SortOrderType -> XML
Core.ToXML
)
pattern SortOrderType_Asc :: SortOrderType
pattern $bSortOrderType_Asc :: SortOrderType
$mSortOrderType_Asc :: forall r. SortOrderType -> (Void# -> r) -> (Void# -> r) -> r
SortOrderType_Asc = SortOrderType' "asc"
pattern SortOrderType_Desc :: SortOrderType
pattern $bSortOrderType_Desc :: SortOrderType
$mSortOrderType_Desc :: forall r. SortOrderType -> (Void# -> r) -> (Void# -> r) -> r
SortOrderType_Desc = SortOrderType' "desc"
{-# COMPLETE
SortOrderType_Asc,
SortOrderType_Desc,
SortOrderType'
#-}