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