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