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

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

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

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

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

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

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

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