{-# 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.SortBy
-- 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.SortBy
  ( SortBy
      ( ..,
        SortBy_CreationTime,
        SortBy_Name,
        SortBy_Status
      ),
  )
where

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

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

pattern SortBy_CreationTime :: SortBy
pattern $bSortBy_CreationTime :: SortBy
$mSortBy_CreationTime :: forall r. SortBy -> (Void# -> r) -> (Void# -> r) -> r
SortBy_CreationTime = SortBy' "CreationTime"

pattern SortBy_Name :: SortBy
pattern $bSortBy_Name :: SortBy
$mSortBy_Name :: forall r. SortBy -> (Void# -> r) -> (Void# -> r) -> r
SortBy_Name = SortBy' "Name"

pattern SortBy_Status :: SortBy
pattern $bSortBy_Status :: SortBy
$mSortBy_Status :: forall r. SortBy -> (Void# -> r) -> (Void# -> r) -> r
SortBy_Status = SortBy' "Status"

{-# COMPLETE
  SortBy_CreationTime,
  SortBy_Name,
  SortBy_Status,
  SortBy'
  #-}