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