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