{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype WorkflowExecutionTimeoutType = WorkflowExecutionTimeoutType'
  { WorkflowExecutionTimeoutType -> Text
fromWorkflowExecutionTimeoutType ::
      Data.Text
  }
  deriving stock
    ( Int -> WorkflowExecutionTimeoutType -> ShowS
[WorkflowExecutionTimeoutType] -> ShowS
WorkflowExecutionTimeoutType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq WorkflowExecutionTimeoutType
Int -> WorkflowExecutionTimeoutType -> Int
WorkflowExecutionTimeoutType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: WorkflowExecutionTimeoutType -> ()
$crnf :: WorkflowExecutionTimeoutType -> ()
Prelude.NFData,
      Text -> Either String WorkflowExecutionTimeoutType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WorkflowExecutionTimeoutType
$cfromText :: Text -> Either String WorkflowExecutionTimeoutType
Data.FromText,
      WorkflowExecutionTimeoutType -> Text
forall a. (a -> Text) -> ToText a
toText :: WorkflowExecutionTimeoutType -> Text
$ctoText :: WorkflowExecutionTimeoutType -> Text
Data.ToText,
      WorkflowExecutionTimeoutType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: WorkflowExecutionTimeoutType -> ByteString
$ctoBS :: WorkflowExecutionTimeoutType -> ByteString
Data.ToByteString,
      WorkflowExecutionTimeoutType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WorkflowExecutionTimeoutType -> ByteStringBuilder
$cbuild :: WorkflowExecutionTimeoutType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> WorkflowExecutionTimeoutType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WorkflowExecutionTimeoutType -> [Header]
$ctoHeader :: HeaderName -> WorkflowExecutionTimeoutType -> [Header]
Data.ToHeader,
      WorkflowExecutionTimeoutType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WorkflowExecutionTimeoutType -> QueryString
$ctoQuery :: WorkflowExecutionTimeoutType -> QueryString
Data.ToQuery,
      Value -> Parser [WorkflowExecutionTimeoutType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [WorkflowExecutionTimeoutType]
FromJSONKeyFunction WorkflowExecutionTimeoutType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WorkflowExecutionTimeoutType]
$cfromJSONKeyList :: FromJSONKeyFunction [WorkflowExecutionTimeoutType]
fromJSONKey :: FromJSONKeyFunction WorkflowExecutionTimeoutType
$cfromJSONKey :: FromJSONKeyFunction WorkflowExecutionTimeoutType
Data.FromJSONKey,
      [WorkflowExecutionTimeoutType] -> Encoding
[WorkflowExecutionTimeoutType] -> Value
WorkflowExecutionTimeoutType -> Encoding
WorkflowExecutionTimeoutType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [WorkflowExecutionTimeoutType]
ToJSONKeyFunction WorkflowExecutionTimeoutType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WorkflowExecutionTimeoutType]
$ctoJSONKeyList :: ToJSONKeyFunction [WorkflowExecutionTimeoutType]
toJSONKey :: ToJSONKeyFunction WorkflowExecutionTimeoutType
$ctoJSONKey :: ToJSONKeyFunction WorkflowExecutionTimeoutType
Data.ToJSONKey,
      [Node] -> Either String WorkflowExecutionTimeoutType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WorkflowExecutionTimeoutType
$cparseXML :: [Node] -> Either String WorkflowExecutionTimeoutType
Data.FromXML,
      WorkflowExecutionTimeoutType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: WorkflowExecutionTimeoutType -> XML
$ctoXML :: WorkflowExecutionTimeoutType -> XML
Data.ToXML
    )

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

{-# COMPLETE
  WorkflowExecutionTimeoutType_START_TO_CLOSE,
  WorkflowExecutionTimeoutType'
  #-}