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