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