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

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

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

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

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

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