{-# 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.LexModels.Types.ExportType
-- 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.LexModels.Types.ExportType
  ( ExportType
      ( ..,
        ExportType_ALEXA_SKILLS_KIT,
        ExportType_LEX
      ),
  )
where

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

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

pattern ExportType_ALEXA_SKILLS_KIT :: ExportType
pattern $bExportType_ALEXA_SKILLS_KIT :: ExportType
$mExportType_ALEXA_SKILLS_KIT :: forall r. ExportType -> (Void# -> r) -> (Void# -> r) -> r
ExportType_ALEXA_SKILLS_KIT = ExportType' "ALEXA_SKILLS_KIT"

pattern ExportType_LEX :: ExportType
pattern $bExportType_LEX :: ExportType
$mExportType_LEX :: forall r. ExportType -> (Void# -> r) -> (Void# -> r) -> r
ExportType_LEX = ExportType' "LEX"

{-# COMPLETE
  ExportType_ALEXA_SKILLS_KIT,
  ExportType_LEX,
  ExportType'
  #-}