{-# 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.ChimeSDKMessaging.Types.FallbackAction
-- 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.ChimeSDKMessaging.Types.FallbackAction
  ( FallbackAction
      ( ..,
        FallbackAction_ABORT,
        FallbackAction_CONTINUE
      ),
  )
where

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

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

pattern FallbackAction_ABORT :: FallbackAction
pattern $bFallbackAction_ABORT :: FallbackAction
$mFallbackAction_ABORT :: forall r. FallbackAction -> (Void# -> r) -> (Void# -> r) -> r
FallbackAction_ABORT = FallbackAction' "ABORT"

pattern FallbackAction_CONTINUE :: FallbackAction
pattern $bFallbackAction_CONTINUE :: FallbackAction
$mFallbackAction_CONTINUE :: forall r. FallbackAction -> (Void# -> r) -> (Void# -> r) -> r
FallbackAction_CONTINUE = FallbackAction' "CONTINUE"

{-# COMPLETE
  FallbackAction_ABORT,
  FallbackAction_CONTINUE,
  FallbackAction'
  #-}