{-# 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.ConnectorState
( ConnectorState
( ..,
ConnectorState_CREATING,
ConnectorState_DELETING,
ConnectorState_FAILED,
ConnectorState_RUNNING,
ConnectorState_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ConnectorState = ConnectorState'
{ ConnectorState -> Text
fromConnectorState ::
Core.Text
}
deriving stock
( Int -> ConnectorState -> ShowS
[ConnectorState] -> ShowS
ConnectorState -> String
(Int -> ConnectorState -> ShowS)
-> (ConnectorState -> String)
-> ([ConnectorState] -> ShowS)
-> Show ConnectorState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConnectorState] -> ShowS
$cshowList :: [ConnectorState] -> ShowS
show :: ConnectorState -> String
$cshow :: ConnectorState -> String
showsPrec :: Int -> ConnectorState -> ShowS
$cshowsPrec :: Int -> ConnectorState -> ShowS
Prelude.Show,
ReadPrec [ConnectorState]
ReadPrec ConnectorState
Int -> ReadS ConnectorState
ReadS [ConnectorState]
(Int -> ReadS ConnectorState)
-> ReadS [ConnectorState]
-> ReadPrec ConnectorState
-> ReadPrec [ConnectorState]
-> Read ConnectorState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConnectorState]
$creadListPrec :: ReadPrec [ConnectorState]
readPrec :: ReadPrec ConnectorState
$creadPrec :: ReadPrec ConnectorState
readList :: ReadS [ConnectorState]
$creadList :: ReadS [ConnectorState]
readsPrec :: Int -> ReadS ConnectorState
$creadsPrec :: Int -> ReadS ConnectorState
Prelude.Read,
ConnectorState -> ConnectorState -> Bool
(ConnectorState -> ConnectorState -> Bool)
-> (ConnectorState -> ConnectorState -> Bool) -> Eq ConnectorState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConnectorState -> ConnectorState -> Bool
$c/= :: ConnectorState -> ConnectorState -> Bool
== :: ConnectorState -> ConnectorState -> Bool
$c== :: ConnectorState -> ConnectorState -> Bool
Prelude.Eq,
Eq ConnectorState
Eq ConnectorState
-> (ConnectorState -> ConnectorState -> Ordering)
-> (ConnectorState -> ConnectorState -> Bool)
-> (ConnectorState -> ConnectorState -> Bool)
-> (ConnectorState -> ConnectorState -> Bool)
-> (ConnectorState -> ConnectorState -> Bool)
-> (ConnectorState -> ConnectorState -> ConnectorState)
-> (ConnectorState -> ConnectorState -> ConnectorState)
-> Ord ConnectorState
ConnectorState -> ConnectorState -> Bool
ConnectorState -> ConnectorState -> Ordering
ConnectorState -> ConnectorState -> ConnectorState
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 :: ConnectorState -> ConnectorState -> ConnectorState
$cmin :: ConnectorState -> ConnectorState -> ConnectorState
max :: ConnectorState -> ConnectorState -> ConnectorState
$cmax :: ConnectorState -> ConnectorState -> ConnectorState
>= :: ConnectorState -> ConnectorState -> Bool
$c>= :: ConnectorState -> ConnectorState -> Bool
> :: ConnectorState -> ConnectorState -> Bool
$c> :: ConnectorState -> ConnectorState -> Bool
<= :: ConnectorState -> ConnectorState -> Bool
$c<= :: ConnectorState -> ConnectorState -> Bool
< :: ConnectorState -> ConnectorState -> Bool
$c< :: ConnectorState -> ConnectorState -> Bool
compare :: ConnectorState -> ConnectorState -> Ordering
$ccompare :: ConnectorState -> ConnectorState -> Ordering
$cp1Ord :: Eq ConnectorState
Prelude.Ord,
(forall x. ConnectorState -> Rep ConnectorState x)
-> (forall x. Rep ConnectorState x -> ConnectorState)
-> Generic ConnectorState
forall x. Rep ConnectorState x -> ConnectorState
forall x. ConnectorState -> Rep ConnectorState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ConnectorState x -> ConnectorState
$cfrom :: forall x. ConnectorState -> Rep ConnectorState x
Prelude.Generic
)
deriving newtype
( Int -> ConnectorState -> Int
ConnectorState -> Int
(Int -> ConnectorState -> Int)
-> (ConnectorState -> Int) -> Hashable ConnectorState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ConnectorState -> Int
$chash :: ConnectorState -> Int
hashWithSalt :: Int -> ConnectorState -> Int
$chashWithSalt :: Int -> ConnectorState -> Int
Prelude.Hashable,
ConnectorState -> ()
(ConnectorState -> ()) -> NFData ConnectorState
forall a. (a -> ()) -> NFData a
rnf :: ConnectorState -> ()
$crnf :: ConnectorState -> ()
Prelude.NFData,
Text -> Either String ConnectorState
(Text -> Either String ConnectorState) -> FromText ConnectorState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConnectorState
$cfromText :: Text -> Either String ConnectorState
Core.FromText,
ConnectorState -> Text
(ConnectorState -> Text) -> ToText ConnectorState
forall a. (a -> Text) -> ToText a
toText :: ConnectorState -> Text
$ctoText :: ConnectorState -> Text
Core.ToText,
ConnectorState -> ByteString
(ConnectorState -> ByteString) -> ToByteString ConnectorState
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConnectorState -> ByteString
$ctoBS :: ConnectorState -> ByteString
Core.ToByteString,
ConnectorState -> ByteStringBuilder
(ConnectorState -> ByteStringBuilder) -> ToLog ConnectorState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConnectorState -> ByteStringBuilder
$cbuild :: ConnectorState -> ByteStringBuilder
Core.ToLog,
HeaderName -> ConnectorState -> [Header]
(HeaderName -> ConnectorState -> [Header])
-> ToHeader ConnectorState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConnectorState -> [Header]
$ctoHeader :: HeaderName -> ConnectorState -> [Header]
Core.ToHeader,
ConnectorState -> QueryString
(ConnectorState -> QueryString) -> ToQuery ConnectorState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConnectorState -> QueryString
$ctoQuery :: ConnectorState -> QueryString
Core.ToQuery,
Value -> Parser [ConnectorState]
Value -> Parser ConnectorState
(Value -> Parser ConnectorState)
-> (Value -> Parser [ConnectorState]) -> FromJSON ConnectorState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ConnectorState]
$cparseJSONList :: Value -> Parser [ConnectorState]
parseJSON :: Value -> Parser ConnectorState
$cparseJSON :: Value -> Parser ConnectorState
Core.FromJSON,
FromJSONKeyFunction [ConnectorState]
FromJSONKeyFunction ConnectorState
FromJSONKeyFunction ConnectorState
-> FromJSONKeyFunction [ConnectorState]
-> FromJSONKey ConnectorState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConnectorState]
$cfromJSONKeyList :: FromJSONKeyFunction [ConnectorState]
fromJSONKey :: FromJSONKeyFunction ConnectorState
$cfromJSONKey :: FromJSONKeyFunction ConnectorState
Core.FromJSONKey,
[ConnectorState] -> Encoding
[ConnectorState] -> Value
ConnectorState -> Encoding
ConnectorState -> Value
(ConnectorState -> Value)
-> (ConnectorState -> Encoding)
-> ([ConnectorState] -> Value)
-> ([ConnectorState] -> Encoding)
-> ToJSON ConnectorState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ConnectorState] -> Encoding
$ctoEncodingList :: [ConnectorState] -> Encoding
toJSONList :: [ConnectorState] -> Value
$ctoJSONList :: [ConnectorState] -> Value
toEncoding :: ConnectorState -> Encoding
$ctoEncoding :: ConnectorState -> Encoding
toJSON :: ConnectorState -> Value
$ctoJSON :: ConnectorState -> Value
Core.ToJSON,
ToJSONKeyFunction [ConnectorState]
ToJSONKeyFunction ConnectorState
ToJSONKeyFunction ConnectorState
-> ToJSONKeyFunction [ConnectorState] -> ToJSONKey ConnectorState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConnectorState]
$ctoJSONKeyList :: ToJSONKeyFunction [ConnectorState]
toJSONKey :: ToJSONKeyFunction ConnectorState
$ctoJSONKey :: ToJSONKeyFunction ConnectorState
Core.ToJSONKey,
[Node] -> Either String ConnectorState
([Node] -> Either String ConnectorState) -> FromXML ConnectorState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConnectorState
$cparseXML :: [Node] -> Either String ConnectorState
Core.FromXML,
ConnectorState -> XML
(ConnectorState -> XML) -> ToXML ConnectorState
forall a. (a -> XML) -> ToXML a
toXML :: ConnectorState -> XML
$ctoXML :: ConnectorState -> XML
Core.ToXML
)
pattern ConnectorState_CREATING :: ConnectorState
pattern $bConnectorState_CREATING :: ConnectorState
$mConnectorState_CREATING :: forall r. ConnectorState -> (Void# -> r) -> (Void# -> r) -> r
ConnectorState_CREATING = ConnectorState' "CREATING"
pattern ConnectorState_DELETING :: ConnectorState
pattern $bConnectorState_DELETING :: ConnectorState
$mConnectorState_DELETING :: forall r. ConnectorState -> (Void# -> r) -> (Void# -> r) -> r
ConnectorState_DELETING = ConnectorState' "DELETING"
pattern ConnectorState_FAILED :: ConnectorState
pattern $bConnectorState_FAILED :: ConnectorState
$mConnectorState_FAILED :: forall r. ConnectorState -> (Void# -> r) -> (Void# -> r) -> r
ConnectorState_FAILED = ConnectorState' "FAILED"
pattern ConnectorState_RUNNING :: ConnectorState
pattern $bConnectorState_RUNNING :: ConnectorState
$mConnectorState_RUNNING :: forall r. ConnectorState -> (Void# -> r) -> (Void# -> r) -> r
ConnectorState_RUNNING = ConnectorState' "RUNNING"
pattern ConnectorState_UPDATING :: ConnectorState
pattern $bConnectorState_UPDATING :: ConnectorState
$mConnectorState_UPDATING :: forall r. ConnectorState -> (Void# -> r) -> (Void# -> r) -> r
ConnectorState_UPDATING = ConnectorState' "UPDATING"
{-# COMPLETE
ConnectorState_CREATING,
ConnectorState_DELETING,
ConnectorState_FAILED,
ConnectorState_RUNNING,
ConnectorState_UPDATING,
ConnectorState'
#-}