{-# 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.CandidateSortBy
-- 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.CandidateSortBy
  ( CandidateSortBy
      ( ..,
        CandidateSortBy_CreationTime,
        CandidateSortBy_FinalObjectiveMetricValue,
        CandidateSortBy_Status
      ),
  )
where

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

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

pattern CandidateSortBy_CreationTime :: CandidateSortBy
pattern $bCandidateSortBy_CreationTime :: CandidateSortBy
$mCandidateSortBy_CreationTime :: forall {r}. CandidateSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
CandidateSortBy_CreationTime = CandidateSortBy' "CreationTime"

pattern CandidateSortBy_FinalObjectiveMetricValue :: CandidateSortBy
pattern $bCandidateSortBy_FinalObjectiveMetricValue :: CandidateSortBy
$mCandidateSortBy_FinalObjectiveMetricValue :: forall {r}. CandidateSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
CandidateSortBy_FinalObjectiveMetricValue = CandidateSortBy' "FinalObjectiveMetricValue"

pattern CandidateSortBy_Status :: CandidateSortBy
pattern $bCandidateSortBy_Status :: CandidateSortBy
$mCandidateSortBy_Status :: forall {r}. CandidateSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
CandidateSortBy_Status = CandidateSortBy' "Status"

{-# COMPLETE
  CandidateSortBy_CreationTime,
  CandidateSortBy_FinalObjectiveMetricValue,
  CandidateSortBy_Status,
  CandidateSortBy'
  #-}