{-# 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.SortPipelinesBy
-- 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.SortPipelinesBy
  ( SortPipelinesBy
      ( ..,
        SortPipelinesBy_CreationTime,
        SortPipelinesBy_Name
      ),
  )
where

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

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

pattern SortPipelinesBy_CreationTime :: SortPipelinesBy
pattern $bSortPipelinesBy_CreationTime :: SortPipelinesBy
$mSortPipelinesBy_CreationTime :: forall r. SortPipelinesBy -> (Void# -> r) -> (Void# -> r) -> r
SortPipelinesBy_CreationTime = SortPipelinesBy' "CreationTime"

pattern SortPipelinesBy_Name :: SortPipelinesBy
pattern $bSortPipelinesBy_Name :: SortPipelinesBy
$mSortPipelinesBy_Name :: forall r. SortPipelinesBy -> (Void# -> r) -> (Void# -> r) -> r
SortPipelinesBy_Name = SortPipelinesBy' "Name"

{-# COMPLETE
  SortPipelinesBy_CreationTime,
  SortPipelinesBy_Name,
  SortPipelinesBy'
  #-}