{-# 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.HyperParameterTuningJobSortByOptions
-- 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.HyperParameterTuningJobSortByOptions
  ( HyperParameterTuningJobSortByOptions
      ( ..,
        HyperParameterTuningJobSortByOptions_CreationTime,
        HyperParameterTuningJobSortByOptions_Name,
        HyperParameterTuningJobSortByOptions_Status
      ),
  )
where

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

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

pattern HyperParameterTuningJobSortByOptions_CreationTime :: HyperParameterTuningJobSortByOptions
pattern $bHyperParameterTuningJobSortByOptions_CreationTime :: HyperParameterTuningJobSortByOptions
$mHyperParameterTuningJobSortByOptions_CreationTime :: forall r.
HyperParameterTuningJobSortByOptions
-> (Void# -> r) -> (Void# -> r) -> r
HyperParameterTuningJobSortByOptions_CreationTime = HyperParameterTuningJobSortByOptions' "CreationTime"

pattern HyperParameterTuningJobSortByOptions_Name :: HyperParameterTuningJobSortByOptions
pattern $bHyperParameterTuningJobSortByOptions_Name :: HyperParameterTuningJobSortByOptions
$mHyperParameterTuningJobSortByOptions_Name :: forall r.
HyperParameterTuningJobSortByOptions
-> (Void# -> r) -> (Void# -> r) -> r
HyperParameterTuningJobSortByOptions_Name = HyperParameterTuningJobSortByOptions' "Name"

pattern HyperParameterTuningJobSortByOptions_Status :: HyperParameterTuningJobSortByOptions
pattern $bHyperParameterTuningJobSortByOptions_Status :: HyperParameterTuningJobSortByOptions
$mHyperParameterTuningJobSortByOptions_Status :: forall r.
HyperParameterTuningJobSortByOptions
-> (Void# -> r) -> (Void# -> r) -> r
HyperParameterTuningJobSortByOptions_Status = HyperParameterTuningJobSortByOptions' "Status"

{-# COMPLETE
  HyperParameterTuningJobSortByOptions_CreationTime,
  HyperParameterTuningJobSortByOptions_Name,
  HyperParameterTuningJobSortByOptions_Status,
  HyperParameterTuningJobSortByOptions'
  #-}