{-# 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.AppType
-- 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.AppType
  ( AppType
      ( ..,
        AppType_JupyterServer,
        AppType_KernelGateway,
        AppType_RSessionGateway,
        AppType_RStudioServerPro,
        AppType_TensorBoard
      ),
  )
where

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

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

pattern AppType_JupyterServer :: AppType
pattern $bAppType_JupyterServer :: AppType
$mAppType_JupyterServer :: forall {r}. AppType -> ((# #) -> r) -> ((# #) -> r) -> r
AppType_JupyterServer = AppType' "JupyterServer"

pattern AppType_KernelGateway :: AppType
pattern $bAppType_KernelGateway :: AppType
$mAppType_KernelGateway :: forall {r}. AppType -> ((# #) -> r) -> ((# #) -> r) -> r
AppType_KernelGateway = AppType' "KernelGateway"

pattern AppType_RSessionGateway :: AppType
pattern $bAppType_RSessionGateway :: AppType
$mAppType_RSessionGateway :: forall {r}. AppType -> ((# #) -> r) -> ((# #) -> r) -> r
AppType_RSessionGateway = AppType' "RSessionGateway"

pattern AppType_RStudioServerPro :: AppType
pattern $bAppType_RStudioServerPro :: AppType
$mAppType_RStudioServerPro :: forall {r}. AppType -> ((# #) -> r) -> ((# #) -> r) -> r
AppType_RStudioServerPro = AppType' "RStudioServerPro"

pattern AppType_TensorBoard :: AppType
pattern $bAppType_TensorBoard :: AppType
$mAppType_TensorBoard :: forall {r}. AppType -> ((# #) -> r) -> ((# #) -> r) -> r
AppType_TensorBoard = AppType' "TensorBoard"

{-# COMPLETE
  AppType_JupyterServer,
  AppType_KernelGateway,
  AppType_RSessionGateway,
  AppType_RStudioServerPro,
  AppType_TensorBoard,
  AppType'
  #-}