{-# 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.SortPipelineExecutionsBy
-- 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.SortPipelineExecutionsBy
  ( SortPipelineExecutionsBy
      ( ..,
        SortPipelineExecutionsBy_CreationTime,
        SortPipelineExecutionsBy_PipelineExecutionArn
      ),
  )
where

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

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

pattern SortPipelineExecutionsBy_CreationTime :: SortPipelineExecutionsBy
pattern $bSortPipelineExecutionsBy_CreationTime :: SortPipelineExecutionsBy
$mSortPipelineExecutionsBy_CreationTime :: forall r.
SortPipelineExecutionsBy -> (Void# -> r) -> (Void# -> r) -> r
SortPipelineExecutionsBy_CreationTime = SortPipelineExecutionsBy' "CreationTime"

pattern SortPipelineExecutionsBy_PipelineExecutionArn :: SortPipelineExecutionsBy
pattern $bSortPipelineExecutionsBy_PipelineExecutionArn :: SortPipelineExecutionsBy
$mSortPipelineExecutionsBy_PipelineExecutionArn :: forall r.
SortPipelineExecutionsBy -> (Void# -> r) -> (Void# -> r) -> r
SortPipelineExecutionsBy_PipelineExecutionArn = SortPipelineExecutionsBy' "PipelineExecutionArn"

{-# COMPLETE
  SortPipelineExecutionsBy_CreationTime,
  SortPipelineExecutionsBy_PipelineExecutionArn,
  SortPipelineExecutionsBy'
  #-}