{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.Types.AlgorithmSortBy
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.AlgorithmSortBy
  ( AlgorithmSortBy
      ( ..,
        AlgorithmSortBy_CreationTime,
        AlgorithmSortBy_Name
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern AlgorithmSortBy_CreationTime :: AlgorithmSortBy
pattern $bAlgorithmSortBy_CreationTime :: AlgorithmSortBy
$mAlgorithmSortBy_CreationTime :: forall {r}. AlgorithmSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
AlgorithmSortBy_CreationTime = AlgorithmSortBy' "CreationTime"

pattern AlgorithmSortBy_Name :: AlgorithmSortBy
pattern $bAlgorithmSortBy_Name :: AlgorithmSortBy
$mAlgorithmSortBy_Name :: forall {r}. AlgorithmSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
AlgorithmSortBy_Name = AlgorithmSortBy' "Name"

{-# COMPLETE
  AlgorithmSortBy_CreationTime,
  AlgorithmSortBy_Name,
  AlgorithmSortBy'
  #-}