{-# 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.FeatureGroupSortBy
-- 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.FeatureGroupSortBy
  ( FeatureGroupSortBy
      ( ..,
        FeatureGroupSortBy_CreationTime,
        FeatureGroupSortBy_FeatureGroupStatus,
        FeatureGroupSortBy_Name,
        FeatureGroupSortBy_OfflineStoreStatus
      ),
  )
where

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

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

pattern FeatureGroupSortBy_CreationTime :: FeatureGroupSortBy
pattern $bFeatureGroupSortBy_CreationTime :: FeatureGroupSortBy
$mFeatureGroupSortBy_CreationTime :: forall {r}. FeatureGroupSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
FeatureGroupSortBy_CreationTime = FeatureGroupSortBy' "CreationTime"

pattern FeatureGroupSortBy_FeatureGroupStatus :: FeatureGroupSortBy
pattern $bFeatureGroupSortBy_FeatureGroupStatus :: FeatureGroupSortBy
$mFeatureGroupSortBy_FeatureGroupStatus :: forall {r}. FeatureGroupSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
FeatureGroupSortBy_FeatureGroupStatus = FeatureGroupSortBy' "FeatureGroupStatus"

pattern FeatureGroupSortBy_Name :: FeatureGroupSortBy
pattern $bFeatureGroupSortBy_Name :: FeatureGroupSortBy
$mFeatureGroupSortBy_Name :: forall {r}. FeatureGroupSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
FeatureGroupSortBy_Name = FeatureGroupSortBy' "Name"

pattern FeatureGroupSortBy_OfflineStoreStatus :: FeatureGroupSortBy
pattern $bFeatureGroupSortBy_OfflineStoreStatus :: FeatureGroupSortBy
$mFeatureGroupSortBy_OfflineStoreStatus :: forall {r}. FeatureGroupSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
FeatureGroupSortBy_OfflineStoreStatus = FeatureGroupSortBy' "OfflineStoreStatus"

{-# COMPLETE
  FeatureGroupSortBy_CreationTime,
  FeatureGroupSortBy_FeatureGroupStatus,
  FeatureGroupSortBy_Name,
  FeatureGroupSortBy_OfflineStoreStatus,
  FeatureGroupSortBy'
  #-}