{-# 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-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.FeatureGroupSortOrder
  ( FeatureGroupSortOrder
      ( ..,
        FeatureGroupSortOrder_Ascending,
        FeatureGroupSortOrder_Descending
      ),
  )
where

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

newtype FeatureGroupSortOrder = FeatureGroupSortOrder'
  { FeatureGroupSortOrder -> Text
fromFeatureGroupSortOrder ::
      Core.Text
  }
  deriving stock
    ( Int -> FeatureGroupSortOrder -> ShowS
[FeatureGroupSortOrder] -> ShowS
FeatureGroupSortOrder -> String
(Int -> FeatureGroupSortOrder -> ShowS)
-> (FeatureGroupSortOrder -> String)
-> ([FeatureGroupSortOrder] -> ShowS)
-> Show FeatureGroupSortOrder
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]
(Int -> ReadS FeatureGroupSortOrder)
-> ReadS [FeatureGroupSortOrder]
-> ReadPrec FeatureGroupSortOrder
-> ReadPrec [FeatureGroupSortOrder]
-> Read 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
(FeatureGroupSortOrder -> FeatureGroupSortOrder -> Bool)
-> (FeatureGroupSortOrder -> FeatureGroupSortOrder -> Bool)
-> Eq FeatureGroupSortOrder
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
Eq FeatureGroupSortOrder
-> (FeatureGroupSortOrder -> FeatureGroupSortOrder -> Ordering)
-> (FeatureGroupSortOrder -> FeatureGroupSortOrder -> Bool)
-> (FeatureGroupSortOrder -> FeatureGroupSortOrder -> Bool)
-> (FeatureGroupSortOrder -> FeatureGroupSortOrder -> Bool)
-> (FeatureGroupSortOrder -> FeatureGroupSortOrder -> Bool)
-> (FeatureGroupSortOrder
    -> FeatureGroupSortOrder -> FeatureGroupSortOrder)
-> (FeatureGroupSortOrder
    -> FeatureGroupSortOrder -> FeatureGroupSortOrder)
-> Ord 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
$cp1Ord :: Eq FeatureGroupSortOrder
Prelude.Ord,
      (forall x. FeatureGroupSortOrder -> Rep FeatureGroupSortOrder x)
-> (forall x. Rep FeatureGroupSortOrder x -> FeatureGroupSortOrder)
-> Generic FeatureGroupSortOrder
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
    ( Int -> FeatureGroupSortOrder -> Int
FeatureGroupSortOrder -> Int
(Int -> FeatureGroupSortOrder -> Int)
-> (FeatureGroupSortOrder -> Int) -> Hashable FeatureGroupSortOrder
forall 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 -> ()
(FeatureGroupSortOrder -> ()) -> NFData FeatureGroupSortOrder
forall a. (a -> ()) -> NFData a
rnf :: FeatureGroupSortOrder -> ()
$crnf :: FeatureGroupSortOrder -> ()
Prelude.NFData,
      Text -> Either String FeatureGroupSortOrder
(Text -> Either String FeatureGroupSortOrder)
-> FromText FeatureGroupSortOrder
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FeatureGroupSortOrder
$cfromText :: Text -> Either String FeatureGroupSortOrder
Core.FromText,
      FeatureGroupSortOrder -> Text
(FeatureGroupSortOrder -> Text) -> ToText FeatureGroupSortOrder
forall a. (a -> Text) -> ToText a
toText :: FeatureGroupSortOrder -> Text
$ctoText :: FeatureGroupSortOrder -> Text
Core.ToText,
      FeatureGroupSortOrder -> ByteString
(FeatureGroupSortOrder -> ByteString)
-> ToByteString FeatureGroupSortOrder
forall a. (a -> ByteString) -> ToByteString a
toBS :: FeatureGroupSortOrder -> ByteString
$ctoBS :: FeatureGroupSortOrder -> ByteString
Core.ToByteString,
      FeatureGroupSortOrder -> ByteStringBuilder
(FeatureGroupSortOrder -> ByteStringBuilder)
-> ToLog FeatureGroupSortOrder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FeatureGroupSortOrder -> ByteStringBuilder
$cbuild :: FeatureGroupSortOrder -> ByteStringBuilder
Core.ToLog,
      HeaderName -> FeatureGroupSortOrder -> [Header]
(HeaderName -> FeatureGroupSortOrder -> [Header])
-> ToHeader FeatureGroupSortOrder
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FeatureGroupSortOrder -> [Header]
$ctoHeader :: HeaderName -> FeatureGroupSortOrder -> [Header]
Core.ToHeader,
      FeatureGroupSortOrder -> QueryString
(FeatureGroupSortOrder -> QueryString)
-> ToQuery FeatureGroupSortOrder
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FeatureGroupSortOrder -> QueryString
$ctoQuery :: FeatureGroupSortOrder -> QueryString
Core.ToQuery,
      Value -> Parser [FeatureGroupSortOrder]
Value -> Parser FeatureGroupSortOrder
(Value -> Parser FeatureGroupSortOrder)
-> (Value -> Parser [FeatureGroupSortOrder])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [FeatureGroupSortOrder]
FromJSONKeyFunction FeatureGroupSortOrder
FromJSONKeyFunction FeatureGroupSortOrder
-> FromJSONKeyFunction [FeatureGroupSortOrder]
-> FromJSONKey FeatureGroupSortOrder
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FeatureGroupSortOrder]
$cfromJSONKeyList :: FromJSONKeyFunction [FeatureGroupSortOrder]
fromJSONKey :: FromJSONKeyFunction FeatureGroupSortOrder
$cfromJSONKey :: FromJSONKeyFunction FeatureGroupSortOrder
Core.FromJSONKey,
      [FeatureGroupSortOrder] -> Encoding
[FeatureGroupSortOrder] -> Value
FeatureGroupSortOrder -> Encoding
FeatureGroupSortOrder -> Value
(FeatureGroupSortOrder -> Value)
-> (FeatureGroupSortOrder -> Encoding)
-> ([FeatureGroupSortOrder] -> Value)
-> ([FeatureGroupSortOrder] -> Encoding)
-> ToJSON FeatureGroupSortOrder
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
Core.ToJSON,
      ToJSONKeyFunction [FeatureGroupSortOrder]
ToJSONKeyFunction FeatureGroupSortOrder
ToJSONKeyFunction FeatureGroupSortOrder
-> ToJSONKeyFunction [FeatureGroupSortOrder]
-> ToJSONKey FeatureGroupSortOrder
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FeatureGroupSortOrder]
$ctoJSONKeyList :: ToJSONKeyFunction [FeatureGroupSortOrder]
toJSONKey :: ToJSONKeyFunction FeatureGroupSortOrder
$ctoJSONKey :: ToJSONKeyFunction FeatureGroupSortOrder
Core.ToJSONKey,
      [Node] -> Either String FeatureGroupSortOrder
([Node] -> Either String FeatureGroupSortOrder)
-> FromXML FeatureGroupSortOrder
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FeatureGroupSortOrder
$cparseXML :: [Node] -> Either String FeatureGroupSortOrder
Core.FromXML,
      FeatureGroupSortOrder -> XML
(FeatureGroupSortOrder -> XML) -> ToXML FeatureGroupSortOrder
forall a. (a -> XML) -> ToXML a
toXML :: FeatureGroupSortOrder -> XML
$ctoXML :: FeatureGroupSortOrder -> XML
Core.ToXML
    )

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

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

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