{-# 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.ProjectSortOrder
-- 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.ProjectSortOrder
  ( ProjectSortOrder
      ( ..,
        ProjectSortOrder_Ascending,
        ProjectSortOrder_Descending
      ),
  )
where

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

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

pattern ProjectSortOrder_Ascending :: ProjectSortOrder
pattern $bProjectSortOrder_Ascending :: ProjectSortOrder
$mProjectSortOrder_Ascending :: forall r. ProjectSortOrder -> (Void# -> r) -> (Void# -> r) -> r
ProjectSortOrder_Ascending = ProjectSortOrder' "Ascending"

pattern ProjectSortOrder_Descending :: ProjectSortOrder
pattern $bProjectSortOrder_Descending :: ProjectSortOrder
$mProjectSortOrder_Descending :: forall r. ProjectSortOrder -> (Void# -> r) -> (Void# -> r) -> r
ProjectSortOrder_Descending = ProjectSortOrder' "Descending"

{-# COMPLETE
  ProjectSortOrder_Ascending,
  ProjectSortOrder_Descending,
  ProjectSortOrder'
  #-}