{-# 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.HubContentSortBy
-- 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.HubContentSortBy
  ( HubContentSortBy
      ( ..,
        HubContentSortBy_CreationTime,
        HubContentSortBy_HubContentName,
        HubContentSortBy_HubContentStatus
      ),
  )
where

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

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

pattern HubContentSortBy_CreationTime :: HubContentSortBy
pattern $bHubContentSortBy_CreationTime :: HubContentSortBy
$mHubContentSortBy_CreationTime :: forall {r}. HubContentSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
HubContentSortBy_CreationTime = HubContentSortBy' "CreationTime"

pattern HubContentSortBy_HubContentName :: HubContentSortBy
pattern $bHubContentSortBy_HubContentName :: HubContentSortBy
$mHubContentSortBy_HubContentName :: forall {r}. HubContentSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
HubContentSortBy_HubContentName = HubContentSortBy' "HubContentName"

pattern HubContentSortBy_HubContentStatus :: HubContentSortBy
pattern $bHubContentSortBy_HubContentStatus :: HubContentSortBy
$mHubContentSortBy_HubContentStatus :: forall {r}. HubContentSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
HubContentSortBy_HubContentStatus = HubContentSortBy' "HubContentStatus"

{-# COMPLETE
  HubContentSortBy_CreationTime,
  HubContentSortBy_HubContentName,
  HubContentSortBy_HubContentStatus,
  HubContentSortBy'
  #-}