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