{-# 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.SortExperimentsBy
-- 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.SortExperimentsBy
  ( SortExperimentsBy
      ( ..,
        SortExperimentsBy_CreationTime,
        SortExperimentsBy_Name
      ),
  )
where

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

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

pattern SortExperimentsBy_CreationTime :: SortExperimentsBy
pattern $bSortExperimentsBy_CreationTime :: SortExperimentsBy
$mSortExperimentsBy_CreationTime :: forall {r}. SortExperimentsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortExperimentsBy_CreationTime = SortExperimentsBy' "CreationTime"

pattern SortExperimentsBy_Name :: SortExperimentsBy
pattern $bSortExperimentsBy_Name :: SortExperimentsBy
$mSortExperimentsBy_Name :: forall {r}. SortExperimentsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortExperimentsBy_Name = SortExperimentsBy' "Name"

{-# COMPLETE
  SortExperimentsBy_CreationTime,
  SortExperimentsBy_Name,
  SortExperimentsBy'
  #-}