{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype AlgorithmSortBy = AlgorithmSortBy'
  { AlgorithmSortBy -> Text
fromAlgorithmSortBy ::
      Core.Text
  }
  deriving stock
    ( Int -> AlgorithmSortBy -> ShowS
[AlgorithmSortBy] -> ShowS
AlgorithmSortBy -> String
(Int -> AlgorithmSortBy -> ShowS)
-> (AlgorithmSortBy -> String)
-> ([AlgorithmSortBy] -> ShowS)
-> Show AlgorithmSortBy
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]
(Int -> ReadS AlgorithmSortBy)
-> ReadS [AlgorithmSortBy]
-> ReadPrec AlgorithmSortBy
-> ReadPrec [AlgorithmSortBy]
-> Read 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
(AlgorithmSortBy -> AlgorithmSortBy -> Bool)
-> (AlgorithmSortBy -> AlgorithmSortBy -> Bool)
-> Eq AlgorithmSortBy
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
Eq AlgorithmSortBy
-> (AlgorithmSortBy -> AlgorithmSortBy -> Ordering)
-> (AlgorithmSortBy -> AlgorithmSortBy -> Bool)
-> (AlgorithmSortBy -> AlgorithmSortBy -> Bool)
-> (AlgorithmSortBy -> AlgorithmSortBy -> Bool)
-> (AlgorithmSortBy -> AlgorithmSortBy -> Bool)
-> (AlgorithmSortBy -> AlgorithmSortBy -> AlgorithmSortBy)
-> (AlgorithmSortBy -> AlgorithmSortBy -> AlgorithmSortBy)
-> Ord 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
$cp1Ord :: Eq AlgorithmSortBy
Prelude.Ord,
      (forall x. AlgorithmSortBy -> Rep AlgorithmSortBy x)
-> (forall x. Rep AlgorithmSortBy x -> AlgorithmSortBy)
-> Generic AlgorithmSortBy
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
    ( Int -> AlgorithmSortBy -> Int
AlgorithmSortBy -> Int
(Int -> AlgorithmSortBy -> Int)
-> (AlgorithmSortBy -> Int) -> Hashable AlgorithmSortBy
forall 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 -> ()
(AlgorithmSortBy -> ()) -> NFData AlgorithmSortBy
forall a. (a -> ()) -> NFData a
rnf :: AlgorithmSortBy -> ()
$crnf :: AlgorithmSortBy -> ()
Prelude.NFData,
      Text -> Either String AlgorithmSortBy
(Text -> Either String AlgorithmSortBy) -> FromText AlgorithmSortBy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AlgorithmSortBy
$cfromText :: Text -> Either String AlgorithmSortBy
Core.FromText,
      AlgorithmSortBy -> Text
(AlgorithmSortBy -> Text) -> ToText AlgorithmSortBy
forall a. (a -> Text) -> ToText a
toText :: AlgorithmSortBy -> Text
$ctoText :: AlgorithmSortBy -> Text
Core.ToText,
      AlgorithmSortBy -> ByteString
(AlgorithmSortBy -> ByteString) -> ToByteString AlgorithmSortBy
forall a. (a -> ByteString) -> ToByteString a
toBS :: AlgorithmSortBy -> ByteString
$ctoBS :: AlgorithmSortBy -> ByteString
Core.ToByteString,
      AlgorithmSortBy -> ByteStringBuilder
(AlgorithmSortBy -> ByteStringBuilder) -> ToLog AlgorithmSortBy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AlgorithmSortBy -> ByteStringBuilder
$cbuild :: AlgorithmSortBy -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AlgorithmSortBy -> [Header]
(HeaderName -> AlgorithmSortBy -> [Header])
-> ToHeader AlgorithmSortBy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AlgorithmSortBy -> [Header]
$ctoHeader :: HeaderName -> AlgorithmSortBy -> [Header]
Core.ToHeader,
      AlgorithmSortBy -> QueryString
(AlgorithmSortBy -> QueryString) -> ToQuery AlgorithmSortBy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AlgorithmSortBy -> QueryString
$ctoQuery :: AlgorithmSortBy -> QueryString
Core.ToQuery,
      Value -> Parser [AlgorithmSortBy]
Value -> Parser AlgorithmSortBy
(Value -> Parser AlgorithmSortBy)
-> (Value -> Parser [AlgorithmSortBy]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [AlgorithmSortBy]
FromJSONKeyFunction AlgorithmSortBy
FromJSONKeyFunction AlgorithmSortBy
-> FromJSONKeyFunction [AlgorithmSortBy]
-> FromJSONKey AlgorithmSortBy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AlgorithmSortBy]
$cfromJSONKeyList :: FromJSONKeyFunction [AlgorithmSortBy]
fromJSONKey :: FromJSONKeyFunction AlgorithmSortBy
$cfromJSONKey :: FromJSONKeyFunction AlgorithmSortBy
Core.FromJSONKey,
      [AlgorithmSortBy] -> Encoding
[AlgorithmSortBy] -> Value
AlgorithmSortBy -> Encoding
AlgorithmSortBy -> Value
(AlgorithmSortBy -> Value)
-> (AlgorithmSortBy -> Encoding)
-> ([AlgorithmSortBy] -> Value)
-> ([AlgorithmSortBy] -> Encoding)
-> ToJSON AlgorithmSortBy
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
Core.ToJSON,
      ToJSONKeyFunction [AlgorithmSortBy]
ToJSONKeyFunction AlgorithmSortBy
ToJSONKeyFunction AlgorithmSortBy
-> ToJSONKeyFunction [AlgorithmSortBy] -> ToJSONKey AlgorithmSortBy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AlgorithmSortBy]
$ctoJSONKeyList :: ToJSONKeyFunction [AlgorithmSortBy]
toJSONKey :: ToJSONKeyFunction AlgorithmSortBy
$ctoJSONKey :: ToJSONKeyFunction AlgorithmSortBy
Core.ToJSONKey,
      [Node] -> Either String AlgorithmSortBy
([Node] -> Either String AlgorithmSortBy)
-> FromXML AlgorithmSortBy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AlgorithmSortBy
$cparseXML :: [Node] -> Either String AlgorithmSortBy
Core.FromXML,
      AlgorithmSortBy -> XML
(AlgorithmSortBy -> XML) -> ToXML AlgorithmSortBy
forall a. (a -> XML) -> ToXML a
toXML :: AlgorithmSortBy -> XML
$ctoXML :: AlgorithmSortBy -> XML
Core.ToXML
    )

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

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

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