{-# 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.FeatureGroupSortOrder
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.FeatureGroupSortOrder
  ( FeatureGroupSortOrder
      ( ..,
        FeatureGroupSortOrder_Ascending,
        FeatureGroupSortOrder_Descending
      ),
  )
where

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

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

pattern FeatureGroupSortOrder_Ascending :: FeatureGroupSortOrder
pattern $bFeatureGroupSortOrder_Ascending :: FeatureGroupSortOrder
$mFeatureGroupSortOrder_Ascending :: forall {r}.
FeatureGroupSortOrder -> ((# #) -> r) -> ((# #) -> r) -> r
FeatureGroupSortOrder_Ascending = FeatureGroupSortOrder' "Ascending"

pattern FeatureGroupSortOrder_Descending :: FeatureGroupSortOrder
pattern $bFeatureGroupSortOrder_Descending :: FeatureGroupSortOrder
$mFeatureGroupSortOrder_Descending :: forall {r}.
FeatureGroupSortOrder -> ((# #) -> r) -> ((# #) -> r) -> r
FeatureGroupSortOrder_Descending = FeatureGroupSortOrder' "Descending"

{-# COMPLETE
  FeatureGroupSortOrder_Ascending,
  FeatureGroupSortOrder_Descending,
  FeatureGroupSortOrder'
  #-}