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