{-# 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.ActivityTaskTimeoutType
-- 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.ActivityTaskTimeoutType
  ( ActivityTaskTimeoutType
      ( ..,
        ActivityTaskTimeoutType_HEARTBEAT,
        ActivityTaskTimeoutType_SCHEDULE_TO_CLOSE,
        ActivityTaskTimeoutType_SCHEDULE_TO_START,
        ActivityTaskTimeoutType_START_TO_CLOSE
      ),
  )
where

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

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

pattern ActivityTaskTimeoutType_HEARTBEAT :: ActivityTaskTimeoutType
pattern $bActivityTaskTimeoutType_HEARTBEAT :: ActivityTaskTimeoutType
$mActivityTaskTimeoutType_HEARTBEAT :: forall r.
ActivityTaskTimeoutType -> (Void# -> r) -> (Void# -> r) -> r
ActivityTaskTimeoutType_HEARTBEAT = ActivityTaskTimeoutType' "HEARTBEAT"

pattern ActivityTaskTimeoutType_SCHEDULE_TO_CLOSE :: ActivityTaskTimeoutType
pattern $bActivityTaskTimeoutType_SCHEDULE_TO_CLOSE :: ActivityTaskTimeoutType
$mActivityTaskTimeoutType_SCHEDULE_TO_CLOSE :: forall r.
ActivityTaskTimeoutType -> (Void# -> r) -> (Void# -> r) -> r
ActivityTaskTimeoutType_SCHEDULE_TO_CLOSE = ActivityTaskTimeoutType' "SCHEDULE_TO_CLOSE"

pattern ActivityTaskTimeoutType_SCHEDULE_TO_START :: ActivityTaskTimeoutType
pattern $bActivityTaskTimeoutType_SCHEDULE_TO_START :: ActivityTaskTimeoutType
$mActivityTaskTimeoutType_SCHEDULE_TO_START :: forall r.
ActivityTaskTimeoutType -> (Void# -> r) -> (Void# -> r) -> r
ActivityTaskTimeoutType_SCHEDULE_TO_START = ActivityTaskTimeoutType' "SCHEDULE_TO_START"

pattern ActivityTaskTimeoutType_START_TO_CLOSE :: ActivityTaskTimeoutType
pattern $bActivityTaskTimeoutType_START_TO_CLOSE :: ActivityTaskTimeoutType
$mActivityTaskTimeoutType_START_TO_CLOSE :: forall r.
ActivityTaskTimeoutType -> (Void# -> r) -> (Void# -> r) -> r
ActivityTaskTimeoutType_START_TO_CLOSE = ActivityTaskTimeoutType' "START_TO_CLOSE"

{-# COMPLETE
  ActivityTaskTimeoutType_HEARTBEAT,
  ActivityTaskTimeoutType_SCHEDULE_TO_CLOSE,
  ActivityTaskTimeoutType_SCHEDULE_TO_START,
  ActivityTaskTimeoutType_START_TO_CLOSE,
  ActivityTaskTimeoutType'
  #-}