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