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

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

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

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

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

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

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

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