{-# 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.SWF.Types.CancelTimerFailedCause
-- 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.SWF.Types.CancelTimerFailedCause
  ( CancelTimerFailedCause
      ( ..,
        CancelTimerFailedCause_OPERATION_NOT_PERMITTED,
        CancelTimerFailedCause_TIMER_ID_UNKNOWN
      ),
  )
where

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

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

pattern CancelTimerFailedCause_OPERATION_NOT_PERMITTED :: CancelTimerFailedCause
pattern $bCancelTimerFailedCause_OPERATION_NOT_PERMITTED :: CancelTimerFailedCause
$mCancelTimerFailedCause_OPERATION_NOT_PERMITTED :: forall r.
CancelTimerFailedCause -> (Void# -> r) -> (Void# -> r) -> r
CancelTimerFailedCause_OPERATION_NOT_PERMITTED = CancelTimerFailedCause' "OPERATION_NOT_PERMITTED"

pattern CancelTimerFailedCause_TIMER_ID_UNKNOWN :: CancelTimerFailedCause
pattern $bCancelTimerFailedCause_TIMER_ID_UNKNOWN :: CancelTimerFailedCause
$mCancelTimerFailedCause_TIMER_ID_UNKNOWN :: forall r.
CancelTimerFailedCause -> (Void# -> r) -> (Void# -> r) -> r
CancelTimerFailedCause_TIMER_ID_UNKNOWN = CancelTimerFailedCause' "TIMER_ID_UNKNOWN"

{-# COMPLETE
  CancelTimerFailedCause_OPERATION_NOT_PERMITTED,
  CancelTimerFailedCause_TIMER_ID_UNKNOWN,
  CancelTimerFailedCause'
  #-}