{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SageMaker.Types.CodeRepositorySortOrder
( CodeRepositorySortOrder
( ..,
CodeRepositorySortOrder_Ascending,
CodeRepositorySortOrder_Descending
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype CodeRepositorySortOrder = CodeRepositorySortOrder'
{ CodeRepositorySortOrder -> Text
fromCodeRepositorySortOrder ::
Core.Text
}
deriving stock
( Int -> CodeRepositorySortOrder -> ShowS
[CodeRepositorySortOrder] -> ShowS
CodeRepositorySortOrder -> String
(Int -> CodeRepositorySortOrder -> ShowS)
-> (CodeRepositorySortOrder -> String)
-> ([CodeRepositorySortOrder] -> ShowS)
-> Show CodeRepositorySortOrder
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CodeRepositorySortOrder] -> ShowS
$cshowList :: [CodeRepositorySortOrder] -> ShowS
show :: CodeRepositorySortOrder -> String
$cshow :: CodeRepositorySortOrder -> String
showsPrec :: Int -> CodeRepositorySortOrder -> ShowS
$cshowsPrec :: Int -> CodeRepositorySortOrder -> ShowS
Prelude.Show,
ReadPrec [CodeRepositorySortOrder]
ReadPrec CodeRepositorySortOrder
Int -> ReadS CodeRepositorySortOrder
ReadS [CodeRepositorySortOrder]
(Int -> ReadS CodeRepositorySortOrder)
-> ReadS [CodeRepositorySortOrder]
-> ReadPrec CodeRepositorySortOrder
-> ReadPrec [CodeRepositorySortOrder]
-> Read CodeRepositorySortOrder
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CodeRepositorySortOrder]
$creadListPrec :: ReadPrec [CodeRepositorySortOrder]
readPrec :: ReadPrec CodeRepositorySortOrder
$creadPrec :: ReadPrec CodeRepositorySortOrder
readList :: ReadS [CodeRepositorySortOrder]
$creadList :: ReadS [CodeRepositorySortOrder]
readsPrec :: Int -> ReadS CodeRepositorySortOrder
$creadsPrec :: Int -> ReadS CodeRepositorySortOrder
Prelude.Read,
CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
(CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool)
-> (CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool)
-> Eq CodeRepositorySortOrder
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
$c/= :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
== :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
$c== :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
Prelude.Eq,
Eq CodeRepositorySortOrder
Eq CodeRepositorySortOrder
-> (CodeRepositorySortOrder -> CodeRepositorySortOrder -> Ordering)
-> (CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool)
-> (CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool)
-> (CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool)
-> (CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool)
-> (CodeRepositorySortOrder
-> CodeRepositorySortOrder -> CodeRepositorySortOrder)
-> (CodeRepositorySortOrder
-> CodeRepositorySortOrder -> CodeRepositorySortOrder)
-> Ord CodeRepositorySortOrder
CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
CodeRepositorySortOrder -> CodeRepositorySortOrder -> Ordering
CodeRepositorySortOrder
-> CodeRepositorySortOrder -> CodeRepositorySortOrder
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 :: CodeRepositorySortOrder
-> CodeRepositorySortOrder -> CodeRepositorySortOrder
$cmin :: CodeRepositorySortOrder
-> CodeRepositorySortOrder -> CodeRepositorySortOrder
max :: CodeRepositorySortOrder
-> CodeRepositorySortOrder -> CodeRepositorySortOrder
$cmax :: CodeRepositorySortOrder
-> CodeRepositorySortOrder -> CodeRepositorySortOrder
>= :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
$c>= :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
> :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
$c> :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
<= :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
$c<= :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
< :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
$c< :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Bool
compare :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Ordering
$ccompare :: CodeRepositorySortOrder -> CodeRepositorySortOrder -> Ordering
$cp1Ord :: Eq CodeRepositorySortOrder
Prelude.Ord,
(forall x.
CodeRepositorySortOrder -> Rep CodeRepositorySortOrder x)
-> (forall x.
Rep CodeRepositorySortOrder x -> CodeRepositorySortOrder)
-> Generic CodeRepositorySortOrder
forall x. Rep CodeRepositorySortOrder x -> CodeRepositorySortOrder
forall x. CodeRepositorySortOrder -> Rep CodeRepositorySortOrder x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CodeRepositorySortOrder x -> CodeRepositorySortOrder
$cfrom :: forall x. CodeRepositorySortOrder -> Rep CodeRepositorySortOrder x
Prelude.Generic
)
deriving newtype
( Int -> CodeRepositorySortOrder -> Int
CodeRepositorySortOrder -> Int
(Int -> CodeRepositorySortOrder -> Int)
-> (CodeRepositorySortOrder -> Int)
-> Hashable CodeRepositorySortOrder
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CodeRepositorySortOrder -> Int
$chash :: CodeRepositorySortOrder -> Int
hashWithSalt :: Int -> CodeRepositorySortOrder -> Int
$chashWithSalt :: Int -> CodeRepositorySortOrder -> Int
Prelude.Hashable,
CodeRepositorySortOrder -> ()
(CodeRepositorySortOrder -> ()) -> NFData CodeRepositorySortOrder
forall a. (a -> ()) -> NFData a
rnf :: CodeRepositorySortOrder -> ()
$crnf :: CodeRepositorySortOrder -> ()
Prelude.NFData,
Text -> Either String CodeRepositorySortOrder
(Text -> Either String CodeRepositorySortOrder)
-> FromText CodeRepositorySortOrder
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CodeRepositorySortOrder
$cfromText :: Text -> Either String CodeRepositorySortOrder
Core.FromText,
CodeRepositorySortOrder -> Text
(CodeRepositorySortOrder -> Text) -> ToText CodeRepositorySortOrder
forall a. (a -> Text) -> ToText a
toText :: CodeRepositorySortOrder -> Text
$ctoText :: CodeRepositorySortOrder -> Text
Core.ToText,
CodeRepositorySortOrder -> ByteString
(CodeRepositorySortOrder -> ByteString)
-> ToByteString CodeRepositorySortOrder
forall a. (a -> ByteString) -> ToByteString a
toBS :: CodeRepositorySortOrder -> ByteString
$ctoBS :: CodeRepositorySortOrder -> ByteString
Core.ToByteString,
CodeRepositorySortOrder -> ByteStringBuilder
(CodeRepositorySortOrder -> ByteStringBuilder)
-> ToLog CodeRepositorySortOrder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CodeRepositorySortOrder -> ByteStringBuilder
$cbuild :: CodeRepositorySortOrder -> ByteStringBuilder
Core.ToLog,
HeaderName -> CodeRepositorySortOrder -> [Header]
(HeaderName -> CodeRepositorySortOrder -> [Header])
-> ToHeader CodeRepositorySortOrder
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CodeRepositorySortOrder -> [Header]
$ctoHeader :: HeaderName -> CodeRepositorySortOrder -> [Header]
Core.ToHeader,
CodeRepositorySortOrder -> QueryString
(CodeRepositorySortOrder -> QueryString)
-> ToQuery CodeRepositorySortOrder
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CodeRepositorySortOrder -> QueryString
$ctoQuery :: CodeRepositorySortOrder -> QueryString
Core.ToQuery,
Value -> Parser [CodeRepositorySortOrder]
Value -> Parser CodeRepositorySortOrder
(Value -> Parser CodeRepositorySortOrder)
-> (Value -> Parser [CodeRepositorySortOrder])
-> FromJSON CodeRepositorySortOrder
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CodeRepositorySortOrder]
$cparseJSONList :: Value -> Parser [CodeRepositorySortOrder]
parseJSON :: Value -> Parser CodeRepositorySortOrder
$cparseJSON :: Value -> Parser CodeRepositorySortOrder
Core.FromJSON,
FromJSONKeyFunction [CodeRepositorySortOrder]
FromJSONKeyFunction CodeRepositorySortOrder
FromJSONKeyFunction CodeRepositorySortOrder
-> FromJSONKeyFunction [CodeRepositorySortOrder]
-> FromJSONKey CodeRepositorySortOrder
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CodeRepositorySortOrder]
$cfromJSONKeyList :: FromJSONKeyFunction [CodeRepositorySortOrder]
fromJSONKey :: FromJSONKeyFunction CodeRepositorySortOrder
$cfromJSONKey :: FromJSONKeyFunction CodeRepositorySortOrder
Core.FromJSONKey,
[CodeRepositorySortOrder] -> Encoding
[CodeRepositorySortOrder] -> Value
CodeRepositorySortOrder -> Encoding
CodeRepositorySortOrder -> Value
(CodeRepositorySortOrder -> Value)
-> (CodeRepositorySortOrder -> Encoding)
-> ([CodeRepositorySortOrder] -> Value)
-> ([CodeRepositorySortOrder] -> Encoding)
-> ToJSON CodeRepositorySortOrder
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CodeRepositorySortOrder] -> Encoding
$ctoEncodingList :: [CodeRepositorySortOrder] -> Encoding
toJSONList :: [CodeRepositorySortOrder] -> Value
$ctoJSONList :: [CodeRepositorySortOrder] -> Value
toEncoding :: CodeRepositorySortOrder -> Encoding
$ctoEncoding :: CodeRepositorySortOrder -> Encoding
toJSON :: CodeRepositorySortOrder -> Value
$ctoJSON :: CodeRepositorySortOrder -> Value
Core.ToJSON,
ToJSONKeyFunction [CodeRepositorySortOrder]
ToJSONKeyFunction CodeRepositorySortOrder
ToJSONKeyFunction CodeRepositorySortOrder
-> ToJSONKeyFunction [CodeRepositorySortOrder]
-> ToJSONKey CodeRepositorySortOrder
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CodeRepositorySortOrder]
$ctoJSONKeyList :: ToJSONKeyFunction [CodeRepositorySortOrder]
toJSONKey :: ToJSONKeyFunction CodeRepositorySortOrder
$ctoJSONKey :: ToJSONKeyFunction CodeRepositorySortOrder
Core.ToJSONKey,
[Node] -> Either String CodeRepositorySortOrder
([Node] -> Either String CodeRepositorySortOrder)
-> FromXML CodeRepositorySortOrder
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CodeRepositorySortOrder
$cparseXML :: [Node] -> Either String CodeRepositorySortOrder
Core.FromXML,
CodeRepositorySortOrder -> XML
(CodeRepositorySortOrder -> XML) -> ToXML CodeRepositorySortOrder
forall a. (a -> XML) -> ToXML a
toXML :: CodeRepositorySortOrder -> XML
$ctoXML :: CodeRepositorySortOrder -> XML
Core.ToXML
)
pattern CodeRepositorySortOrder_Ascending :: CodeRepositorySortOrder
pattern $bCodeRepositorySortOrder_Ascending :: CodeRepositorySortOrder
$mCodeRepositorySortOrder_Ascending :: forall r.
CodeRepositorySortOrder -> (Void# -> r) -> (Void# -> r) -> r
CodeRepositorySortOrder_Ascending = CodeRepositorySortOrder' "Ascending"
pattern CodeRepositorySortOrder_Descending :: CodeRepositorySortOrder
pattern $bCodeRepositorySortOrder_Descending :: CodeRepositorySortOrder
$mCodeRepositorySortOrder_Descending :: forall r.
CodeRepositorySortOrder -> (Void# -> r) -> (Void# -> r) -> r
CodeRepositorySortOrder_Descending = CodeRepositorySortOrder' "Descending"
{-# COMPLETE
CodeRepositorySortOrder_Ascending,
CodeRepositorySortOrder_Descending,
CodeRepositorySortOrder'
#-}