{-# 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.WorkflowExecutionTimeoutType
-- 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.WorkflowExecutionTimeoutType
  ( WorkflowExecutionTimeoutType
      ( ..,
        WorkflowExecutionTimeoutType_START_TO_CLOSE
      ),
  )
where

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

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

pattern WorkflowExecutionTimeoutType_START_TO_CLOSE :: WorkflowExecutionTimeoutType
pattern $bWorkflowExecutionTimeoutType_START_TO_CLOSE :: WorkflowExecutionTimeoutType
$mWorkflowExecutionTimeoutType_START_TO_CLOSE :: forall r.
WorkflowExecutionTimeoutType -> (Void# -> r) -> (Void# -> r) -> r
WorkflowExecutionTimeoutType_START_TO_CLOSE = WorkflowExecutionTimeoutType' "START_TO_CLOSE"

{-# COMPLETE
  WorkflowExecutionTimeoutType_START_TO_CLOSE,
  WorkflowExecutionTimeoutType'
  #-}