{-# 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.SortTrialComponentsBy
-- 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.SortTrialComponentsBy
  ( SortTrialComponentsBy
      ( ..,
        SortTrialComponentsBy_CreationTime,
        SortTrialComponentsBy_Name
      ),
  )
where

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

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

pattern SortTrialComponentsBy_CreationTime :: SortTrialComponentsBy
pattern $bSortTrialComponentsBy_CreationTime :: SortTrialComponentsBy
$mSortTrialComponentsBy_CreationTime :: forall {r}.
SortTrialComponentsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortTrialComponentsBy_CreationTime = SortTrialComponentsBy' "CreationTime"

pattern SortTrialComponentsBy_Name :: SortTrialComponentsBy
pattern $bSortTrialComponentsBy_Name :: SortTrialComponentsBy
$mSortTrialComponentsBy_Name :: forall {r}.
SortTrialComponentsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortTrialComponentsBy_Name = SortTrialComponentsBy' "Name"

{-# COMPLETE
  SortTrialComponentsBy_CreationTime,
  SortTrialComponentsBy_Name,
  SortTrialComponentsBy'
  #-}