{-# 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.ImageSortOrder
-- 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.ImageSortOrder
  ( ImageSortOrder
      ( ..,
        ImageSortOrder_ASCENDING,
        ImageSortOrder_DESCENDING
      ),
  )
where

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

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

pattern ImageSortOrder_ASCENDING :: ImageSortOrder
pattern $bImageSortOrder_ASCENDING :: ImageSortOrder
$mImageSortOrder_ASCENDING :: forall r. ImageSortOrder -> (Void# -> r) -> (Void# -> r) -> r
ImageSortOrder_ASCENDING = ImageSortOrder' "ASCENDING"

pattern ImageSortOrder_DESCENDING :: ImageSortOrder
pattern $bImageSortOrder_DESCENDING :: ImageSortOrder
$mImageSortOrder_DESCENDING :: forall r. ImageSortOrder -> (Void# -> r) -> (Void# -> r) -> r
ImageSortOrder_DESCENDING = ImageSortOrder' "DESCENDING"

{-# COMPLETE
  ImageSortOrder_ASCENDING,
  ImageSortOrder_DESCENDING,
  ImageSortOrder'
  #-}