{-# 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.PullRequestEventType
( PullRequestEventType
( ..,
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_CREATED,
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_DELETED,
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN,
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_UPDATED,
PullRequestEventType_PULL_REQUEST_APPROVAL_STATE_CHANGED,
PullRequestEventType_PULL_REQUEST_CREATED,
PullRequestEventType_PULL_REQUEST_MERGE_STATE_CHANGED,
PullRequestEventType_PULL_REQUEST_SOURCE_REFERENCE_UPDATED,
PullRequestEventType_PULL_REQUEST_STATUS_CHANGED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype PullRequestEventType = PullRequestEventType'
{ PullRequestEventType -> Text
fromPullRequestEventType ::
Core.Text
}
deriving stock
( Int -> PullRequestEventType -> ShowS
[PullRequestEventType] -> ShowS
PullRequestEventType -> String
(Int -> PullRequestEventType -> ShowS)
-> (PullRequestEventType -> String)
-> ([PullRequestEventType] -> ShowS)
-> Show PullRequestEventType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PullRequestEventType] -> ShowS
$cshowList :: [PullRequestEventType] -> ShowS
show :: PullRequestEventType -> String
$cshow :: PullRequestEventType -> String
showsPrec :: Int -> PullRequestEventType -> ShowS
$cshowsPrec :: Int -> PullRequestEventType -> ShowS
Prelude.Show,
ReadPrec [PullRequestEventType]
ReadPrec PullRequestEventType
Int -> ReadS PullRequestEventType
ReadS [PullRequestEventType]
(Int -> ReadS PullRequestEventType)
-> ReadS [PullRequestEventType]
-> ReadPrec PullRequestEventType
-> ReadPrec [PullRequestEventType]
-> Read PullRequestEventType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PullRequestEventType]
$creadListPrec :: ReadPrec [PullRequestEventType]
readPrec :: ReadPrec PullRequestEventType
$creadPrec :: ReadPrec PullRequestEventType
readList :: ReadS [PullRequestEventType]
$creadList :: ReadS [PullRequestEventType]
readsPrec :: Int -> ReadS PullRequestEventType
$creadsPrec :: Int -> ReadS PullRequestEventType
Prelude.Read,
PullRequestEventType -> PullRequestEventType -> Bool
(PullRequestEventType -> PullRequestEventType -> Bool)
-> (PullRequestEventType -> PullRequestEventType -> Bool)
-> Eq PullRequestEventType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PullRequestEventType -> PullRequestEventType -> Bool
$c/= :: PullRequestEventType -> PullRequestEventType -> Bool
== :: PullRequestEventType -> PullRequestEventType -> Bool
$c== :: PullRequestEventType -> PullRequestEventType -> Bool
Prelude.Eq,
Eq PullRequestEventType
Eq PullRequestEventType
-> (PullRequestEventType -> PullRequestEventType -> Ordering)
-> (PullRequestEventType -> PullRequestEventType -> Bool)
-> (PullRequestEventType -> PullRequestEventType -> Bool)
-> (PullRequestEventType -> PullRequestEventType -> Bool)
-> (PullRequestEventType -> PullRequestEventType -> Bool)
-> (PullRequestEventType
-> PullRequestEventType -> PullRequestEventType)
-> (PullRequestEventType
-> PullRequestEventType -> PullRequestEventType)
-> Ord PullRequestEventType
PullRequestEventType -> PullRequestEventType -> Bool
PullRequestEventType -> PullRequestEventType -> Ordering
PullRequestEventType
-> PullRequestEventType -> PullRequestEventType
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 :: PullRequestEventType
-> PullRequestEventType -> PullRequestEventType
$cmin :: PullRequestEventType
-> PullRequestEventType -> PullRequestEventType
max :: PullRequestEventType
-> PullRequestEventType -> PullRequestEventType
$cmax :: PullRequestEventType
-> PullRequestEventType -> PullRequestEventType
>= :: PullRequestEventType -> PullRequestEventType -> Bool
$c>= :: PullRequestEventType -> PullRequestEventType -> Bool
> :: PullRequestEventType -> PullRequestEventType -> Bool
$c> :: PullRequestEventType -> PullRequestEventType -> Bool
<= :: PullRequestEventType -> PullRequestEventType -> Bool
$c<= :: PullRequestEventType -> PullRequestEventType -> Bool
< :: PullRequestEventType -> PullRequestEventType -> Bool
$c< :: PullRequestEventType -> PullRequestEventType -> Bool
compare :: PullRequestEventType -> PullRequestEventType -> Ordering
$ccompare :: PullRequestEventType -> PullRequestEventType -> Ordering
$cp1Ord :: Eq PullRequestEventType
Prelude.Ord,
(forall x. PullRequestEventType -> Rep PullRequestEventType x)
-> (forall x. Rep PullRequestEventType x -> PullRequestEventType)
-> Generic PullRequestEventType
forall x. Rep PullRequestEventType x -> PullRequestEventType
forall x. PullRequestEventType -> Rep PullRequestEventType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PullRequestEventType x -> PullRequestEventType
$cfrom :: forall x. PullRequestEventType -> Rep PullRequestEventType x
Prelude.Generic
)
deriving newtype
( Int -> PullRequestEventType -> Int
PullRequestEventType -> Int
(Int -> PullRequestEventType -> Int)
-> (PullRequestEventType -> Int) -> Hashable PullRequestEventType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PullRequestEventType -> Int
$chash :: PullRequestEventType -> Int
hashWithSalt :: Int -> PullRequestEventType -> Int
$chashWithSalt :: Int -> PullRequestEventType -> Int
Prelude.Hashable,
PullRequestEventType -> ()
(PullRequestEventType -> ()) -> NFData PullRequestEventType
forall a. (a -> ()) -> NFData a
rnf :: PullRequestEventType -> ()
$crnf :: PullRequestEventType -> ()
Prelude.NFData,
Text -> Either String PullRequestEventType
(Text -> Either String PullRequestEventType)
-> FromText PullRequestEventType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PullRequestEventType
$cfromText :: Text -> Either String PullRequestEventType
Core.FromText,
PullRequestEventType -> Text
(PullRequestEventType -> Text) -> ToText PullRequestEventType
forall a. (a -> Text) -> ToText a
toText :: PullRequestEventType -> Text
$ctoText :: PullRequestEventType -> Text
Core.ToText,
PullRequestEventType -> ByteString
(PullRequestEventType -> ByteString)
-> ToByteString PullRequestEventType
forall a. (a -> ByteString) -> ToByteString a
toBS :: PullRequestEventType -> ByteString
$ctoBS :: PullRequestEventType -> ByteString
Core.ToByteString,
PullRequestEventType -> ByteStringBuilder
(PullRequestEventType -> ByteStringBuilder)
-> ToLog PullRequestEventType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PullRequestEventType -> ByteStringBuilder
$cbuild :: PullRequestEventType -> ByteStringBuilder
Core.ToLog,
HeaderName -> PullRequestEventType -> [Header]
(HeaderName -> PullRequestEventType -> [Header])
-> ToHeader PullRequestEventType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PullRequestEventType -> [Header]
$ctoHeader :: HeaderName -> PullRequestEventType -> [Header]
Core.ToHeader,
PullRequestEventType -> QueryString
(PullRequestEventType -> QueryString)
-> ToQuery PullRequestEventType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PullRequestEventType -> QueryString
$ctoQuery :: PullRequestEventType -> QueryString
Core.ToQuery,
Value -> Parser [PullRequestEventType]
Value -> Parser PullRequestEventType
(Value -> Parser PullRequestEventType)
-> (Value -> Parser [PullRequestEventType])
-> FromJSON PullRequestEventType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PullRequestEventType]
$cparseJSONList :: Value -> Parser [PullRequestEventType]
parseJSON :: Value -> Parser PullRequestEventType
$cparseJSON :: Value -> Parser PullRequestEventType
Core.FromJSON,
FromJSONKeyFunction [PullRequestEventType]
FromJSONKeyFunction PullRequestEventType
FromJSONKeyFunction PullRequestEventType
-> FromJSONKeyFunction [PullRequestEventType]
-> FromJSONKey PullRequestEventType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PullRequestEventType]
$cfromJSONKeyList :: FromJSONKeyFunction [PullRequestEventType]
fromJSONKey :: FromJSONKeyFunction PullRequestEventType
$cfromJSONKey :: FromJSONKeyFunction PullRequestEventType
Core.FromJSONKey,
[PullRequestEventType] -> Encoding
[PullRequestEventType] -> Value
PullRequestEventType -> Encoding
PullRequestEventType -> Value
(PullRequestEventType -> Value)
-> (PullRequestEventType -> Encoding)
-> ([PullRequestEventType] -> Value)
-> ([PullRequestEventType] -> Encoding)
-> ToJSON PullRequestEventType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PullRequestEventType] -> Encoding
$ctoEncodingList :: [PullRequestEventType] -> Encoding
toJSONList :: [PullRequestEventType] -> Value
$ctoJSONList :: [PullRequestEventType] -> Value
toEncoding :: PullRequestEventType -> Encoding
$ctoEncoding :: PullRequestEventType -> Encoding
toJSON :: PullRequestEventType -> Value
$ctoJSON :: PullRequestEventType -> Value
Core.ToJSON,
ToJSONKeyFunction [PullRequestEventType]
ToJSONKeyFunction PullRequestEventType
ToJSONKeyFunction PullRequestEventType
-> ToJSONKeyFunction [PullRequestEventType]
-> ToJSONKey PullRequestEventType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PullRequestEventType]
$ctoJSONKeyList :: ToJSONKeyFunction [PullRequestEventType]
toJSONKey :: ToJSONKeyFunction PullRequestEventType
$ctoJSONKey :: ToJSONKeyFunction PullRequestEventType
Core.ToJSONKey,
[Node] -> Either String PullRequestEventType
([Node] -> Either String PullRequestEventType)
-> FromXML PullRequestEventType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PullRequestEventType
$cparseXML :: [Node] -> Either String PullRequestEventType
Core.FromXML,
PullRequestEventType -> XML
(PullRequestEventType -> XML) -> ToXML PullRequestEventType
forall a. (a -> XML) -> ToXML a
toXML :: PullRequestEventType -> XML
$ctoXML :: PullRequestEventType -> XML
Core.ToXML
)
pattern PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_CREATED :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_APPROVAL_RULE_CREATED :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_APPROVAL_RULE_CREATED :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_CREATED = PullRequestEventType' "PULL_REQUEST_APPROVAL_RULE_CREATED"
pattern PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_DELETED :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_APPROVAL_RULE_DELETED :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_APPROVAL_RULE_DELETED :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_DELETED = PullRequestEventType' "PULL_REQUEST_APPROVAL_RULE_DELETED"
pattern PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN = PullRequestEventType' "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN"
pattern PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_UPDATED :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_APPROVAL_RULE_UPDATED :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_APPROVAL_RULE_UPDATED :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_UPDATED = PullRequestEventType' "PULL_REQUEST_APPROVAL_RULE_UPDATED"
pattern PullRequestEventType_PULL_REQUEST_APPROVAL_STATE_CHANGED :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_APPROVAL_STATE_CHANGED :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_APPROVAL_STATE_CHANGED :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_APPROVAL_STATE_CHANGED = PullRequestEventType' "PULL_REQUEST_APPROVAL_STATE_CHANGED"
pattern PullRequestEventType_PULL_REQUEST_CREATED :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_CREATED :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_CREATED :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_CREATED = PullRequestEventType' "PULL_REQUEST_CREATED"
pattern PullRequestEventType_PULL_REQUEST_MERGE_STATE_CHANGED :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_MERGE_STATE_CHANGED :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_MERGE_STATE_CHANGED :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_MERGE_STATE_CHANGED = PullRequestEventType' "PULL_REQUEST_MERGE_STATE_CHANGED"
pattern PullRequestEventType_PULL_REQUEST_SOURCE_REFERENCE_UPDATED :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_SOURCE_REFERENCE_UPDATED :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_SOURCE_REFERENCE_UPDATED :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_SOURCE_REFERENCE_UPDATED = PullRequestEventType' "PULL_REQUEST_SOURCE_REFERENCE_UPDATED"
pattern PullRequestEventType_PULL_REQUEST_STATUS_CHANGED :: PullRequestEventType
pattern $bPullRequestEventType_PULL_REQUEST_STATUS_CHANGED :: PullRequestEventType
$mPullRequestEventType_PULL_REQUEST_STATUS_CHANGED :: forall r. PullRequestEventType -> (Void# -> r) -> (Void# -> r) -> r
PullRequestEventType_PULL_REQUEST_STATUS_CHANGED = PullRequestEventType' "PULL_REQUEST_STATUS_CHANGED"
{-# COMPLETE
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_CREATED,
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_DELETED,
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN,
PullRequestEventType_PULL_REQUEST_APPROVAL_RULE_UPDATED,
PullRequestEventType_PULL_REQUEST_APPROVAL_STATE_CHANGED,
PullRequestEventType_PULL_REQUEST_CREATED,
PullRequestEventType_PULL_REQUEST_MERGE_STATE_CHANGED,
PullRequestEventType_PULL_REQUEST_SOURCE_REFERENCE_UPDATED,
PullRequestEventType_PULL_REQUEST_STATUS_CHANGED,
PullRequestEventType'
#-}