{-# 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.LexRuntime.Types.DialogState
-- 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.LexRuntime.Types.DialogState
  ( DialogState
      ( ..,
        DialogState_ConfirmIntent,
        DialogState_ElicitIntent,
        DialogState_ElicitSlot,
        DialogState_Failed,
        DialogState_Fulfilled,
        DialogState_ReadyForFulfillment
      ),
  )
where

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

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

pattern DialogState_ConfirmIntent :: DialogState
pattern $bDialogState_ConfirmIntent :: DialogState
$mDialogState_ConfirmIntent :: forall r. DialogState -> (Void# -> r) -> (Void# -> r) -> r
DialogState_ConfirmIntent = DialogState' "ConfirmIntent"

pattern DialogState_ElicitIntent :: DialogState
pattern $bDialogState_ElicitIntent :: DialogState
$mDialogState_ElicitIntent :: forall r. DialogState -> (Void# -> r) -> (Void# -> r) -> r
DialogState_ElicitIntent = DialogState' "ElicitIntent"

pattern DialogState_ElicitSlot :: DialogState
pattern $bDialogState_ElicitSlot :: DialogState
$mDialogState_ElicitSlot :: forall r. DialogState -> (Void# -> r) -> (Void# -> r) -> r
DialogState_ElicitSlot = DialogState' "ElicitSlot"

pattern DialogState_Failed :: DialogState
pattern $bDialogState_Failed :: DialogState
$mDialogState_Failed :: forall r. DialogState -> (Void# -> r) -> (Void# -> r) -> r
DialogState_Failed = DialogState' "Failed"

pattern DialogState_Fulfilled :: DialogState
pattern $bDialogState_Fulfilled :: DialogState
$mDialogState_Fulfilled :: forall r. DialogState -> (Void# -> r) -> (Void# -> r) -> r
DialogState_Fulfilled = DialogState' "Fulfilled"

pattern DialogState_ReadyForFulfillment :: DialogState
pattern $bDialogState_ReadyForFulfillment :: DialogState
$mDialogState_ReadyForFulfillment :: forall r. DialogState -> (Void# -> r) -> (Void# -> r) -> r
DialogState_ReadyForFulfillment = DialogState' "ReadyForFulfillment"

{-# COMPLETE
  DialogState_ConfirmIntent,
  DialogState_ElicitIntent,
  DialogState_ElicitSlot,
  DialogState_Failed,
  DialogState_Fulfilled,
  DialogState_ReadyForFulfillment,
  DialogState'
  #-}