{-# 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.ProcessBehavior
-- 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.LexModels.Types.ProcessBehavior
  ( ProcessBehavior
      ( ..,
        ProcessBehavior_BUILD,
        ProcessBehavior_SAVE
      ),
  )
where

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

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

pattern ProcessBehavior_BUILD :: ProcessBehavior
pattern $bProcessBehavior_BUILD :: ProcessBehavior
$mProcessBehavior_BUILD :: forall {r}. ProcessBehavior -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessBehavior_BUILD = ProcessBehavior' "BUILD"

pattern ProcessBehavior_SAVE :: ProcessBehavior
pattern $bProcessBehavior_SAVE :: ProcessBehavior
$mProcessBehavior_SAVE :: forall {r}. ProcessBehavior -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessBehavior_SAVE = ProcessBehavior' "SAVE"

{-# COMPLETE
  ProcessBehavior_BUILD,
  ProcessBehavior_SAVE,
  ProcessBehavior'
  #-}