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

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

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

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

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

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