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