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

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

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

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

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

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

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