{-# 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.SortArtifactsBy
-- 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.SortArtifactsBy
  ( SortArtifactsBy
      ( ..,
        SortArtifactsBy_CreationTime
      ),
  )
where

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

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

pattern SortArtifactsBy_CreationTime :: SortArtifactsBy
pattern $bSortArtifactsBy_CreationTime :: SortArtifactsBy
$mSortArtifactsBy_CreationTime :: forall r. SortArtifactsBy -> (Void# -> r) -> (Void# -> r) -> r
SortArtifactsBy_CreationTime = SortArtifactsBy' "CreationTime"

{-# COMPLETE
  SortArtifactsBy_CreationTime,
  SortArtifactsBy'
  #-}