{-# 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.Budgets.Types.ExecutionType
-- 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.Budgets.Types.ExecutionType
  ( ExecutionType
      ( ..,
        ExecutionType_APPROVE_BUDGET_ACTION,
        ExecutionType_RESET_BUDGET_ACTION,
        ExecutionType_RETRY_BUDGET_ACTION,
        ExecutionType_REVERSE_BUDGET_ACTION
      ),
  )
where

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

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

pattern ExecutionType_APPROVE_BUDGET_ACTION :: ExecutionType
pattern $bExecutionType_APPROVE_BUDGET_ACTION :: ExecutionType
$mExecutionType_APPROVE_BUDGET_ACTION :: forall r. ExecutionType -> (Void# -> r) -> (Void# -> r) -> r
ExecutionType_APPROVE_BUDGET_ACTION = ExecutionType' "APPROVE_BUDGET_ACTION"

pattern ExecutionType_RESET_BUDGET_ACTION :: ExecutionType
pattern $bExecutionType_RESET_BUDGET_ACTION :: ExecutionType
$mExecutionType_RESET_BUDGET_ACTION :: forall r. ExecutionType -> (Void# -> r) -> (Void# -> r) -> r
ExecutionType_RESET_BUDGET_ACTION = ExecutionType' "RESET_BUDGET_ACTION"

pattern ExecutionType_RETRY_BUDGET_ACTION :: ExecutionType
pattern $bExecutionType_RETRY_BUDGET_ACTION :: ExecutionType
$mExecutionType_RETRY_BUDGET_ACTION :: forall r. ExecutionType -> (Void# -> r) -> (Void# -> r) -> r
ExecutionType_RETRY_BUDGET_ACTION = ExecutionType' "RETRY_BUDGET_ACTION"

pattern ExecutionType_REVERSE_BUDGET_ACTION :: ExecutionType
pattern $bExecutionType_REVERSE_BUDGET_ACTION :: ExecutionType
$mExecutionType_REVERSE_BUDGET_ACTION :: forall r. ExecutionType -> (Void# -> r) -> (Void# -> r) -> r
ExecutionType_REVERSE_BUDGET_ACTION = ExecutionType' "REVERSE_BUDGET_ACTION"

{-# COMPLETE
  ExecutionType_APPROVE_BUDGET_ACTION,
  ExecutionType_RESET_BUDGET_ACTION,
  ExecutionType_RETRY_BUDGET_ACTION,
  ExecutionType_REVERSE_BUDGET_ACTION,
  ExecutionType'
  #-}