{-# 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.DecisionTaskTimeoutType
-- 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.DecisionTaskTimeoutType
  ( DecisionTaskTimeoutType
      ( ..,
        DecisionTaskTimeoutType_START_TO_CLOSE
      ),
  )
where

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

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

pattern DecisionTaskTimeoutType_START_TO_CLOSE :: DecisionTaskTimeoutType
pattern $bDecisionTaskTimeoutType_START_TO_CLOSE :: DecisionTaskTimeoutType
$mDecisionTaskTimeoutType_START_TO_CLOSE :: forall r.
DecisionTaskTimeoutType -> (Void# -> r) -> (Void# -> r) -> r
DecisionTaskTimeoutType_START_TO_CLOSE = DecisionTaskTimeoutType' "START_TO_CLOSE"

{-# COMPLETE
  DecisionTaskTimeoutType_START_TO_CLOSE,
  DecisionTaskTimeoutType'
  #-}