{-# 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.HubContentType
-- 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.HubContentType
  ( HubContentType
      ( ..,
        HubContentType_Model,
        HubContentType_Notebook
      ),
  )
where

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

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

pattern HubContentType_Model :: HubContentType
pattern $bHubContentType_Model :: HubContentType
$mHubContentType_Model :: forall {r}. HubContentType -> ((# #) -> r) -> ((# #) -> r) -> r
HubContentType_Model = HubContentType' "Model"

pattern HubContentType_Notebook :: HubContentType
pattern $bHubContentType_Notebook :: HubContentType
$mHubContentType_Notebook :: forall {r}. HubContentType -> ((# #) -> r) -> ((# #) -> r) -> r
HubContentType_Notebook = HubContentType' "Notebook"

{-# COMPLETE
  HubContentType_Model,
  HubContentType_Notebook,
  HubContentType'
  #-}