{-# 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.FulfillmentActivityType
-- 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.FulfillmentActivityType
  ( FulfillmentActivityType
      ( ..,
        FulfillmentActivityType_CodeHook,
        FulfillmentActivityType_ReturnIntent
      ),
  )
where

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

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

pattern FulfillmentActivityType_CodeHook :: FulfillmentActivityType
pattern $bFulfillmentActivityType_CodeHook :: FulfillmentActivityType
$mFulfillmentActivityType_CodeHook :: forall r.
FulfillmentActivityType -> (Void# -> r) -> (Void# -> r) -> r
FulfillmentActivityType_CodeHook = FulfillmentActivityType' "CodeHook"

pattern FulfillmentActivityType_ReturnIntent :: FulfillmentActivityType
pattern $bFulfillmentActivityType_ReturnIntent :: FulfillmentActivityType
$mFulfillmentActivityType_ReturnIntent :: forall r.
FulfillmentActivityType -> (Void# -> r) -> (Void# -> r) -> r
FulfillmentActivityType_ReturnIntent = FulfillmentActivityType' "ReturnIntent"

{-# COMPLETE
  FulfillmentActivityType_CodeHook,
  FulfillmentActivityType_ReturnIntent,
  FulfillmentActivityType'
  #-}