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

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

newtype ProcessBehavior = ProcessBehavior'
  { ProcessBehavior -> Text
fromProcessBehavior ::
      Core.Text
  }
  deriving stock
    ( Int -> ProcessBehavior -> ShowS
[ProcessBehavior] -> ShowS
ProcessBehavior -> String
(Int -> ProcessBehavior -> ShowS)
-> (ProcessBehavior -> String)
-> ([ProcessBehavior] -> ShowS)
-> Show ProcessBehavior
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]
(Int -> ReadS ProcessBehavior)
-> ReadS [ProcessBehavior]
-> ReadPrec ProcessBehavior
-> ReadPrec [ProcessBehavior]
-> Read 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
(ProcessBehavior -> ProcessBehavior -> Bool)
-> (ProcessBehavior -> ProcessBehavior -> Bool)
-> Eq ProcessBehavior
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
Eq ProcessBehavior
-> (ProcessBehavior -> ProcessBehavior -> Ordering)
-> (ProcessBehavior -> ProcessBehavior -> Bool)
-> (ProcessBehavior -> ProcessBehavior -> Bool)
-> (ProcessBehavior -> ProcessBehavior -> Bool)
-> (ProcessBehavior -> ProcessBehavior -> Bool)
-> (ProcessBehavior -> ProcessBehavior -> ProcessBehavior)
-> (ProcessBehavior -> ProcessBehavior -> ProcessBehavior)
-> Ord 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
$cp1Ord :: Eq ProcessBehavior
Prelude.Ord,
      (forall x. ProcessBehavior -> Rep ProcessBehavior x)
-> (forall x. Rep ProcessBehavior x -> ProcessBehavior)
-> Generic ProcessBehavior
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
    ( Int -> ProcessBehavior -> Int
ProcessBehavior -> Int
(Int -> ProcessBehavior -> Int)
-> (ProcessBehavior -> Int) -> Hashable ProcessBehavior
forall 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 -> ()
(ProcessBehavior -> ()) -> NFData ProcessBehavior
forall a. (a -> ()) -> NFData a
rnf :: ProcessBehavior -> ()
$crnf :: ProcessBehavior -> ()
Prelude.NFData,
      Text -> Either String ProcessBehavior
(Text -> Either String ProcessBehavior) -> FromText ProcessBehavior
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ProcessBehavior
$cfromText :: Text -> Either String ProcessBehavior
Core.FromText,
      ProcessBehavior -> Text
(ProcessBehavior -> Text) -> ToText ProcessBehavior
forall a. (a -> Text) -> ToText a
toText :: ProcessBehavior -> Text
$ctoText :: ProcessBehavior -> Text
Core.ToText,
      ProcessBehavior -> ByteString
(ProcessBehavior -> ByteString) -> ToByteString ProcessBehavior
forall a. (a -> ByteString) -> ToByteString a
toBS :: ProcessBehavior -> ByteString
$ctoBS :: ProcessBehavior -> ByteString
Core.ToByteString,
      ProcessBehavior -> ByteStringBuilder
(ProcessBehavior -> ByteStringBuilder) -> ToLog ProcessBehavior
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ProcessBehavior -> ByteStringBuilder
$cbuild :: ProcessBehavior -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ProcessBehavior -> [Header]
(HeaderName -> ProcessBehavior -> [Header])
-> ToHeader ProcessBehavior
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ProcessBehavior -> [Header]
$ctoHeader :: HeaderName -> ProcessBehavior -> [Header]
Core.ToHeader,
      ProcessBehavior -> QueryString
(ProcessBehavior -> QueryString) -> ToQuery ProcessBehavior
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ProcessBehavior -> QueryString
$ctoQuery :: ProcessBehavior -> QueryString
Core.ToQuery,
      Value -> Parser [ProcessBehavior]
Value -> Parser ProcessBehavior
(Value -> Parser ProcessBehavior)
-> (Value -> Parser [ProcessBehavior]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ProcessBehavior]
FromJSONKeyFunction ProcessBehavior
FromJSONKeyFunction ProcessBehavior
-> FromJSONKeyFunction [ProcessBehavior]
-> FromJSONKey ProcessBehavior
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ProcessBehavior]
$cfromJSONKeyList :: FromJSONKeyFunction [ProcessBehavior]
fromJSONKey :: FromJSONKeyFunction ProcessBehavior
$cfromJSONKey :: FromJSONKeyFunction ProcessBehavior
Core.FromJSONKey,
      [ProcessBehavior] -> Encoding
[ProcessBehavior] -> Value
ProcessBehavior -> Encoding
ProcessBehavior -> Value
(ProcessBehavior -> Value)
-> (ProcessBehavior -> Encoding)
-> ([ProcessBehavior] -> Value)
-> ([ProcessBehavior] -> Encoding)
-> ToJSON ProcessBehavior
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
Core.ToJSON,
      ToJSONKeyFunction [ProcessBehavior]
ToJSONKeyFunction ProcessBehavior
ToJSONKeyFunction ProcessBehavior
-> ToJSONKeyFunction [ProcessBehavior] -> ToJSONKey ProcessBehavior
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ProcessBehavior]
$ctoJSONKeyList :: ToJSONKeyFunction [ProcessBehavior]
toJSONKey :: ToJSONKeyFunction ProcessBehavior
$ctoJSONKey :: ToJSONKeyFunction ProcessBehavior
Core.ToJSONKey,
      [Node] -> Either String ProcessBehavior
([Node] -> Either String ProcessBehavior)
-> FromXML ProcessBehavior
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ProcessBehavior
$cparseXML :: [Node] -> Either String ProcessBehavior
Core.FromXML,
      ProcessBehavior -> XML
(ProcessBehavior -> XML) -> ToXML ProcessBehavior
forall a. (a -> XML) -> ToXML a
toXML :: ProcessBehavior -> XML
$ctoXML :: ProcessBehavior -> XML
Core.ToXML
    )

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

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

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