{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Budgets.Types.ApprovalModel
( ApprovalModel
( ..,
ApprovalModel_AUTOMATIC,
ApprovalModel_MANUAL
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ApprovalModel = ApprovalModel'
{ ApprovalModel -> Text
fromApprovalModel ::
Core.Text
}
deriving stock
( Int -> ApprovalModel -> ShowS
[ApprovalModel] -> ShowS
ApprovalModel -> String
(Int -> ApprovalModel -> ShowS)
-> (ApprovalModel -> String)
-> ([ApprovalModel] -> ShowS)
-> Show ApprovalModel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApprovalModel] -> ShowS
$cshowList :: [ApprovalModel] -> ShowS
show :: ApprovalModel -> String
$cshow :: ApprovalModel -> String
showsPrec :: Int -> ApprovalModel -> ShowS
$cshowsPrec :: Int -> ApprovalModel -> ShowS
Prelude.Show,
ReadPrec [ApprovalModel]
ReadPrec ApprovalModel
Int -> ReadS ApprovalModel
ReadS [ApprovalModel]
(Int -> ReadS ApprovalModel)
-> ReadS [ApprovalModel]
-> ReadPrec ApprovalModel
-> ReadPrec [ApprovalModel]
-> Read ApprovalModel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApprovalModel]
$creadListPrec :: ReadPrec [ApprovalModel]
readPrec :: ReadPrec ApprovalModel
$creadPrec :: ReadPrec ApprovalModel
readList :: ReadS [ApprovalModel]
$creadList :: ReadS [ApprovalModel]
readsPrec :: Int -> ReadS ApprovalModel
$creadsPrec :: Int -> ReadS ApprovalModel
Prelude.Read,
ApprovalModel -> ApprovalModel -> Bool
(ApprovalModel -> ApprovalModel -> Bool)
-> (ApprovalModel -> ApprovalModel -> Bool) -> Eq ApprovalModel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApprovalModel -> ApprovalModel -> Bool
$c/= :: ApprovalModel -> ApprovalModel -> Bool
== :: ApprovalModel -> ApprovalModel -> Bool
$c== :: ApprovalModel -> ApprovalModel -> Bool
Prelude.Eq,
Eq ApprovalModel
Eq ApprovalModel
-> (ApprovalModel -> ApprovalModel -> Ordering)
-> (ApprovalModel -> ApprovalModel -> Bool)
-> (ApprovalModel -> ApprovalModel -> Bool)
-> (ApprovalModel -> ApprovalModel -> Bool)
-> (ApprovalModel -> ApprovalModel -> Bool)
-> (ApprovalModel -> ApprovalModel -> ApprovalModel)
-> (ApprovalModel -> ApprovalModel -> ApprovalModel)
-> Ord ApprovalModel
ApprovalModel -> ApprovalModel -> Bool
ApprovalModel -> ApprovalModel -> Ordering
ApprovalModel -> ApprovalModel -> ApprovalModel
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 :: ApprovalModel -> ApprovalModel -> ApprovalModel
$cmin :: ApprovalModel -> ApprovalModel -> ApprovalModel
max :: ApprovalModel -> ApprovalModel -> ApprovalModel
$cmax :: ApprovalModel -> ApprovalModel -> ApprovalModel
>= :: ApprovalModel -> ApprovalModel -> Bool
$c>= :: ApprovalModel -> ApprovalModel -> Bool
> :: ApprovalModel -> ApprovalModel -> Bool
$c> :: ApprovalModel -> ApprovalModel -> Bool
<= :: ApprovalModel -> ApprovalModel -> Bool
$c<= :: ApprovalModel -> ApprovalModel -> Bool
< :: ApprovalModel -> ApprovalModel -> Bool
$c< :: ApprovalModel -> ApprovalModel -> Bool
compare :: ApprovalModel -> ApprovalModel -> Ordering
$ccompare :: ApprovalModel -> ApprovalModel -> Ordering
$cp1Ord :: Eq ApprovalModel
Prelude.Ord,
(forall x. ApprovalModel -> Rep ApprovalModel x)
-> (forall x. Rep ApprovalModel x -> ApprovalModel)
-> Generic ApprovalModel
forall x. Rep ApprovalModel x -> ApprovalModel
forall x. ApprovalModel -> Rep ApprovalModel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ApprovalModel x -> ApprovalModel
$cfrom :: forall x. ApprovalModel -> Rep ApprovalModel x
Prelude.Generic
)
deriving newtype
( Int -> ApprovalModel -> Int
ApprovalModel -> Int
(Int -> ApprovalModel -> Int)
-> (ApprovalModel -> Int) -> Hashable ApprovalModel
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ApprovalModel -> Int
$chash :: ApprovalModel -> Int
hashWithSalt :: Int -> ApprovalModel -> Int
$chashWithSalt :: Int -> ApprovalModel -> Int
Prelude.Hashable,
ApprovalModel -> ()
(ApprovalModel -> ()) -> NFData ApprovalModel
forall a. (a -> ()) -> NFData a
rnf :: ApprovalModel -> ()
$crnf :: ApprovalModel -> ()
Prelude.NFData,
Text -> Either String ApprovalModel
(Text -> Either String ApprovalModel) -> FromText ApprovalModel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ApprovalModel
$cfromText :: Text -> Either String ApprovalModel
Core.FromText,
ApprovalModel -> Text
(ApprovalModel -> Text) -> ToText ApprovalModel
forall a. (a -> Text) -> ToText a
toText :: ApprovalModel -> Text
$ctoText :: ApprovalModel -> Text
Core.ToText,
ApprovalModel -> ByteString
(ApprovalModel -> ByteString) -> ToByteString ApprovalModel
forall a. (a -> ByteString) -> ToByteString a
toBS :: ApprovalModel -> ByteString
$ctoBS :: ApprovalModel -> ByteString
Core.ToByteString,
ApprovalModel -> ByteStringBuilder
(ApprovalModel -> ByteStringBuilder) -> ToLog ApprovalModel
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ApprovalModel -> ByteStringBuilder
$cbuild :: ApprovalModel -> ByteStringBuilder
Core.ToLog,
HeaderName -> ApprovalModel -> [Header]
(HeaderName -> ApprovalModel -> [Header]) -> ToHeader ApprovalModel
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ApprovalModel -> [Header]
$ctoHeader :: HeaderName -> ApprovalModel -> [Header]
Core.ToHeader,
ApprovalModel -> QueryString
(ApprovalModel -> QueryString) -> ToQuery ApprovalModel
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ApprovalModel -> QueryString
$ctoQuery :: ApprovalModel -> QueryString
Core.ToQuery,
Value -> Parser [ApprovalModel]
Value -> Parser ApprovalModel
(Value -> Parser ApprovalModel)
-> (Value -> Parser [ApprovalModel]) -> FromJSON ApprovalModel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ApprovalModel]
$cparseJSONList :: Value -> Parser [ApprovalModel]
parseJSON :: Value -> Parser ApprovalModel
$cparseJSON :: Value -> Parser ApprovalModel
Core.FromJSON,
FromJSONKeyFunction [ApprovalModel]
FromJSONKeyFunction ApprovalModel
FromJSONKeyFunction ApprovalModel
-> FromJSONKeyFunction [ApprovalModel] -> FromJSONKey ApprovalModel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ApprovalModel]
$cfromJSONKeyList :: FromJSONKeyFunction [ApprovalModel]
fromJSONKey :: FromJSONKeyFunction ApprovalModel
$cfromJSONKey :: FromJSONKeyFunction ApprovalModel
Core.FromJSONKey,
[ApprovalModel] -> Encoding
[ApprovalModel] -> Value
ApprovalModel -> Encoding
ApprovalModel -> Value
(ApprovalModel -> Value)
-> (ApprovalModel -> Encoding)
-> ([ApprovalModel] -> Value)
-> ([ApprovalModel] -> Encoding)
-> ToJSON ApprovalModel
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ApprovalModel] -> Encoding
$ctoEncodingList :: [ApprovalModel] -> Encoding
toJSONList :: [ApprovalModel] -> Value
$ctoJSONList :: [ApprovalModel] -> Value
toEncoding :: ApprovalModel -> Encoding
$ctoEncoding :: ApprovalModel -> Encoding
toJSON :: ApprovalModel -> Value
$ctoJSON :: ApprovalModel -> Value
Core.ToJSON,
ToJSONKeyFunction [ApprovalModel]
ToJSONKeyFunction ApprovalModel
ToJSONKeyFunction ApprovalModel
-> ToJSONKeyFunction [ApprovalModel] -> ToJSONKey ApprovalModel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ApprovalModel]
$ctoJSONKeyList :: ToJSONKeyFunction [ApprovalModel]
toJSONKey :: ToJSONKeyFunction ApprovalModel
$ctoJSONKey :: ToJSONKeyFunction ApprovalModel
Core.ToJSONKey,
[Node] -> Either String ApprovalModel
([Node] -> Either String ApprovalModel) -> FromXML ApprovalModel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ApprovalModel
$cparseXML :: [Node] -> Either String ApprovalModel
Core.FromXML,
ApprovalModel -> XML
(ApprovalModel -> XML) -> ToXML ApprovalModel
forall a. (a -> XML) -> ToXML a
toXML :: ApprovalModel -> XML
$ctoXML :: ApprovalModel -> XML
Core.ToXML
)
pattern ApprovalModel_AUTOMATIC :: ApprovalModel
pattern $bApprovalModel_AUTOMATIC :: ApprovalModel
$mApprovalModel_AUTOMATIC :: forall r. ApprovalModel -> (Void# -> r) -> (Void# -> r) -> r
ApprovalModel_AUTOMATIC = ApprovalModel' "AUTOMATIC"
pattern ApprovalModel_MANUAL :: ApprovalModel
pattern $bApprovalModel_MANUAL :: ApprovalModel
$mApprovalModel_MANUAL :: forall r. ApprovalModel -> (Void# -> r) -> (Void# -> r) -> r
ApprovalModel_MANUAL = ApprovalModel' "MANUAL"
{-# COMPLETE
ApprovalModel_AUTOMATIC,
ApprovalModel_MANUAL,
ApprovalModel'
#-}