{-# 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.TrainingJobSortByOptions
-- 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.TrainingJobSortByOptions
  ( TrainingJobSortByOptions
      ( ..,
        TrainingJobSortByOptions_CreationTime,
        TrainingJobSortByOptions_FinalObjectiveMetricValue,
        TrainingJobSortByOptions_Name,
        TrainingJobSortByOptions_Status
      ),
  )
where

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

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

pattern TrainingJobSortByOptions_CreationTime :: TrainingJobSortByOptions
pattern $bTrainingJobSortByOptions_CreationTime :: TrainingJobSortByOptions
$mTrainingJobSortByOptions_CreationTime :: forall {r}.
TrainingJobSortByOptions -> ((# #) -> r) -> ((# #) -> r) -> r
TrainingJobSortByOptions_CreationTime = TrainingJobSortByOptions' "CreationTime"

pattern TrainingJobSortByOptions_FinalObjectiveMetricValue :: TrainingJobSortByOptions
pattern $bTrainingJobSortByOptions_FinalObjectiveMetricValue :: TrainingJobSortByOptions
$mTrainingJobSortByOptions_FinalObjectiveMetricValue :: forall {r}.
TrainingJobSortByOptions -> ((# #) -> r) -> ((# #) -> r) -> r
TrainingJobSortByOptions_FinalObjectiveMetricValue = TrainingJobSortByOptions' "FinalObjectiveMetricValue"

pattern TrainingJobSortByOptions_Name :: TrainingJobSortByOptions
pattern $bTrainingJobSortByOptions_Name :: TrainingJobSortByOptions
$mTrainingJobSortByOptions_Name :: forall {r}.
TrainingJobSortByOptions -> ((# #) -> r) -> ((# #) -> r) -> r
TrainingJobSortByOptions_Name = TrainingJobSortByOptions' "Name"

pattern TrainingJobSortByOptions_Status :: TrainingJobSortByOptions
pattern $bTrainingJobSortByOptions_Status :: TrainingJobSortByOptions
$mTrainingJobSortByOptions_Status :: forall {r}.
TrainingJobSortByOptions -> ((# #) -> r) -> ((# #) -> r) -> r
TrainingJobSortByOptions_Status = TrainingJobSortByOptions' "Status"

{-# COMPLETE
  TrainingJobSortByOptions_CreationTime,
  TrainingJobSortByOptions_FinalObjectiveMetricValue,
  TrainingJobSortByOptions_Name,
  TrainingJobSortByOptions_Status,
  TrainingJobSortByOptions'
  #-}