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