{-# 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.RobOMaker.Types.ExitBehavior
-- 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.RobOMaker.Types.ExitBehavior
  ( ExitBehavior
      ( ..,
        ExitBehavior_FAIL,
        ExitBehavior_RESTART
      ),
  )
where

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

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

pattern ExitBehavior_FAIL :: ExitBehavior
pattern $bExitBehavior_FAIL :: ExitBehavior
$mExitBehavior_FAIL :: forall r. ExitBehavior -> (Void# -> r) -> (Void# -> r) -> r
ExitBehavior_FAIL = ExitBehavior' "FAIL"

pattern ExitBehavior_RESTART :: ExitBehavior
pattern $bExitBehavior_RESTART :: ExitBehavior
$mExitBehavior_RESTART :: forall r. ExitBehavior -> (Void# -> r) -> (Void# -> r) -> r
ExitBehavior_RESTART = ExitBehavior' "RESTART"

{-# COMPLETE
  ExitBehavior_FAIL,
  ExitBehavior_RESTART,
  ExitBehavior'
  #-}