{-# 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.Athena.Types.NotebookType
-- 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.Athena.Types.NotebookType
  ( NotebookType
      ( ..,
        NotebookType_IPYNB
      ),
  )
where

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

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

pattern NotebookType_IPYNB :: NotebookType
pattern $bNotebookType_IPYNB :: NotebookType
$mNotebookType_IPYNB :: forall {r}. NotebookType -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookType_IPYNB = NotebookType' "IPYNB"

{-# COMPLETE
  NotebookType_IPYNB,
  NotebookType'
  #-}