{-# 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.ImageSortBy
-- 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.ImageSortBy
  ( ImageSortBy
      ( ..,
        ImageSortBy_CREATION_TIME,
        ImageSortBy_IMAGE_NAME,
        ImageSortBy_LAST_MODIFIED_TIME
      ),
  )
where

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

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

pattern ImageSortBy_CREATION_TIME :: ImageSortBy
pattern $bImageSortBy_CREATION_TIME :: ImageSortBy
$mImageSortBy_CREATION_TIME :: forall r. ImageSortBy -> (Void# -> r) -> (Void# -> r) -> r
ImageSortBy_CREATION_TIME = ImageSortBy' "CREATION_TIME"

pattern ImageSortBy_IMAGE_NAME :: ImageSortBy
pattern $bImageSortBy_IMAGE_NAME :: ImageSortBy
$mImageSortBy_IMAGE_NAME :: forall r. ImageSortBy -> (Void# -> r) -> (Void# -> r) -> r
ImageSortBy_IMAGE_NAME = ImageSortBy' "IMAGE_NAME"

pattern ImageSortBy_LAST_MODIFIED_TIME :: ImageSortBy
pattern $bImageSortBy_LAST_MODIFIED_TIME :: ImageSortBy
$mImageSortBy_LAST_MODIFIED_TIME :: forall r. ImageSortBy -> (Void# -> r) -> (Void# -> r) -> r
ImageSortBy_LAST_MODIFIED_TIME = ImageSortBy' "LAST_MODIFIED_TIME"

{-# COMPLETE
  ImageSortBy_CREATION_TIME,
  ImageSortBy_IMAGE_NAME,
  ImageSortBy_LAST_MODIFIED_TIME,
  ImageSortBy'
  #-}