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