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

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

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

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

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

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