{-# 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.OrderKey
-- 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.OrderKey
  ( OrderKey
      ( ..,
        OrderKey_Ascending,
        OrderKey_Descending
      ),
  )
where

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

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

pattern OrderKey_Ascending :: OrderKey
pattern $bOrderKey_Ascending :: OrderKey
$mOrderKey_Ascending :: forall r. OrderKey -> (Void# -> r) -> (Void# -> r) -> r
OrderKey_Ascending = OrderKey' "Ascending"

pattern OrderKey_Descending :: OrderKey
pattern $bOrderKey_Descending :: OrderKey
$mOrderKey_Descending :: forall r. OrderKey -> (Void# -> r) -> (Void# -> r) -> r
OrderKey_Descending = OrderKey' "Descending"

{-# COMPLETE
  OrderKey_Ascending,
  OrderKey_Descending,
  OrderKey'
  #-}