{-# 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.ImageVersionSortOrder
-- 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.ImageVersionSortOrder
  ( ImageVersionSortOrder
      ( ..,
        ImageVersionSortOrder_ASCENDING,
        ImageVersionSortOrder_DESCENDING
      ),
  )
where

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

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

pattern ImageVersionSortOrder_ASCENDING :: ImageVersionSortOrder
pattern $bImageVersionSortOrder_ASCENDING :: ImageVersionSortOrder
$mImageVersionSortOrder_ASCENDING :: forall r.
ImageVersionSortOrder -> (Void# -> r) -> (Void# -> r) -> r
ImageVersionSortOrder_ASCENDING = ImageVersionSortOrder' "ASCENDING"

pattern ImageVersionSortOrder_DESCENDING :: ImageVersionSortOrder
pattern $bImageVersionSortOrder_DESCENDING :: ImageVersionSortOrder
$mImageVersionSortOrder_DESCENDING :: forall r.
ImageVersionSortOrder -> (Void# -> r) -> (Void# -> r) -> r
ImageVersionSortOrder_DESCENDING = ImageVersionSortOrder' "DESCENDING"

{-# COMPLETE
  ImageVersionSortOrder_ASCENDING,
  ImageVersionSortOrder_DESCENDING,
  ImageVersionSortOrder'
  #-}