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