{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.KafkaConnect.Types.CustomPluginState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype CustomPluginState = CustomPluginState'
  { CustomPluginState -> Text
fromCustomPluginState ::
      Data.Text
  }
  deriving stock
    ( Int -> CustomPluginState -> ShowS
[CustomPluginState] -> ShowS
CustomPluginState -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq CustomPluginState
Int -> CustomPluginState -> Int
CustomPluginState -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: CustomPluginState -> ()
$crnf :: CustomPluginState -> ()
Prelude.NFData,
      Text -> Either String CustomPluginState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CustomPluginState
$cfromText :: Text -> Either String CustomPluginState
Data.FromText,
      CustomPluginState -> Text
forall a. (a -> Text) -> ToText a
toText :: CustomPluginState -> Text
$ctoText :: CustomPluginState -> Text
Data.ToText,
      CustomPluginState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CustomPluginState -> ByteString
$ctoBS :: CustomPluginState -> ByteString
Data.ToByteString,
      CustomPluginState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CustomPluginState -> ByteStringBuilder
$cbuild :: CustomPluginState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CustomPluginState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CustomPluginState -> [Header]
$ctoHeader :: HeaderName -> CustomPluginState -> [Header]
Data.ToHeader,
      CustomPluginState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CustomPluginState -> QueryString
$ctoQuery :: CustomPluginState -> QueryString
Data.ToQuery,
      Value -> Parser [CustomPluginState]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [CustomPluginState]
FromJSONKeyFunction CustomPluginState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CustomPluginState]
$cfromJSONKeyList :: FromJSONKeyFunction [CustomPluginState]
fromJSONKey :: FromJSONKeyFunction CustomPluginState
$cfromJSONKey :: FromJSONKeyFunction CustomPluginState
Data.FromJSONKey,
      [CustomPluginState] -> Encoding
[CustomPluginState] -> Value
CustomPluginState -> Encoding
CustomPluginState -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [CustomPluginState]
ToJSONKeyFunction CustomPluginState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CustomPluginState]
$ctoJSONKeyList :: ToJSONKeyFunction [CustomPluginState]
toJSONKey :: ToJSONKeyFunction CustomPluginState
$ctoJSONKey :: ToJSONKeyFunction CustomPluginState
Data.ToJSONKey,
      [Node] -> Either String CustomPluginState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CustomPluginState
$cparseXML :: [Node] -> Either String CustomPluginState
Data.FromXML,
      CustomPluginState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CustomPluginState -> XML
$ctoXML :: CustomPluginState -> XML
Data.ToXML
    )

pattern CustomPluginState_ACTIVE :: CustomPluginState
pattern $bCustomPluginState_ACTIVE :: CustomPluginState
$mCustomPluginState_ACTIVE :: forall {r}. CustomPluginState -> ((# #) -> r) -> ((# #) -> r) -> r
CustomPluginState_ACTIVE = CustomPluginState' "ACTIVE"

pattern CustomPluginState_CREATE_FAILED :: CustomPluginState
pattern $bCustomPluginState_CREATE_FAILED :: CustomPluginState
$mCustomPluginState_CREATE_FAILED :: forall {r}. CustomPluginState -> ((# #) -> r) -> ((# #) -> r) -> r
CustomPluginState_CREATE_FAILED = CustomPluginState' "CREATE_FAILED"

pattern CustomPluginState_CREATING :: CustomPluginState
pattern $bCustomPluginState_CREATING :: CustomPluginState
$mCustomPluginState_CREATING :: forall {r}. CustomPluginState -> ((# #) -> r) -> ((# #) -> r) -> r
CustomPluginState_CREATING = CustomPluginState' "CREATING"

pattern CustomPluginState_DELETING :: CustomPluginState
pattern $bCustomPluginState_DELETING :: CustomPluginState
$mCustomPluginState_DELETING :: forall {r}. CustomPluginState -> ((# #) -> r) -> ((# #) -> r) -> r
CustomPluginState_DELETING = CustomPluginState' "DELETING"

pattern CustomPluginState_UPDATE_FAILED :: CustomPluginState
pattern $bCustomPluginState_UPDATE_FAILED :: CustomPluginState
$mCustomPluginState_UPDATE_FAILED :: forall {r}. CustomPluginState -> ((# #) -> r) -> ((# #) -> r) -> r
CustomPluginState_UPDATE_FAILED = CustomPluginState' "UPDATE_FAILED"

pattern CustomPluginState_UPDATING :: CustomPluginState
pattern $bCustomPluginState_UPDATING :: CustomPluginState
$mCustomPluginState_UPDATING :: forall {r}. CustomPluginState -> ((# #) -> r) -> ((# #) -> r) -> r
CustomPluginState_UPDATING = CustomPluginState' "UPDATING"

{-# COMPLETE
  CustomPluginState_ACTIVE,
  CustomPluginState_CREATE_FAILED,
  CustomPluginState_CREATING,
  CustomPluginState_DELETING,
  CustomPluginState_UPDATE_FAILED,
  CustomPluginState_UPDATING,
  CustomPluginState'
  #-}