{-# 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.SearchSortOrder
-- 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.SearchSortOrder
  ( SearchSortOrder
      ( ..,
        SearchSortOrder_Ascending,
        SearchSortOrder_Descending
      ),
  )
where

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

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

pattern SearchSortOrder_Ascending :: SearchSortOrder
pattern $bSearchSortOrder_Ascending :: SearchSortOrder
$mSearchSortOrder_Ascending :: forall r. SearchSortOrder -> (Void# -> r) -> (Void# -> r) -> r
SearchSortOrder_Ascending = SearchSortOrder' "Ascending"

pattern SearchSortOrder_Descending :: SearchSortOrder
pattern $bSearchSortOrder_Descending :: SearchSortOrder
$mSearchSortOrder_Descending :: forall r. SearchSortOrder -> (Void# -> r) -> (Void# -> r) -> r
SearchSortOrder_Descending = SearchSortOrder' "Descending"

{-# COMPLETE
  SearchSortOrder_Ascending,
  SearchSortOrder_Descending,
  SearchSortOrder'
  #-}