{-# 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.Kafka.Types.ClusterType
-- 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.Kafka.Types.ClusterType
  ( ClusterType
      ( ..,
        ClusterType_PROVISIONED,
        ClusterType_SERVERLESS
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | The type of cluster.
newtype ClusterType = ClusterType'
  { ClusterType -> Text
fromClusterType ::
      Data.Text
  }
  deriving stock
    ( Int -> ClusterType -> ShowS
[ClusterType] -> ShowS
ClusterType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClusterType] -> ShowS
$cshowList :: [ClusterType] -> ShowS
show :: ClusterType -> String
$cshow :: ClusterType -> String
showsPrec :: Int -> ClusterType -> ShowS
$cshowsPrec :: Int -> ClusterType -> ShowS
Prelude.Show,
      ReadPrec [ClusterType]
ReadPrec ClusterType
Int -> ReadS ClusterType
ReadS [ClusterType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClusterType]
$creadListPrec :: ReadPrec [ClusterType]
readPrec :: ReadPrec ClusterType
$creadPrec :: ReadPrec ClusterType
readList :: ReadS [ClusterType]
$creadList :: ReadS [ClusterType]
readsPrec :: Int -> ReadS ClusterType
$creadsPrec :: Int -> ReadS ClusterType
Prelude.Read,
      ClusterType -> ClusterType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClusterType -> ClusterType -> Bool
$c/= :: ClusterType -> ClusterType -> Bool
== :: ClusterType -> ClusterType -> Bool
$c== :: ClusterType -> ClusterType -> Bool
Prelude.Eq,
      Eq ClusterType
ClusterType -> ClusterType -> Bool
ClusterType -> ClusterType -> Ordering
ClusterType -> ClusterType -> ClusterType
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 :: ClusterType -> ClusterType -> ClusterType
$cmin :: ClusterType -> ClusterType -> ClusterType
max :: ClusterType -> ClusterType -> ClusterType
$cmax :: ClusterType -> ClusterType -> ClusterType
>= :: ClusterType -> ClusterType -> Bool
$c>= :: ClusterType -> ClusterType -> Bool
> :: ClusterType -> ClusterType -> Bool
$c> :: ClusterType -> ClusterType -> Bool
<= :: ClusterType -> ClusterType -> Bool
$c<= :: ClusterType -> ClusterType -> Bool
< :: ClusterType -> ClusterType -> Bool
$c< :: ClusterType -> ClusterType -> Bool
compare :: ClusterType -> ClusterType -> Ordering
$ccompare :: ClusterType -> ClusterType -> Ordering
Prelude.Ord,
      forall x. Rep ClusterType x -> ClusterType
forall x. ClusterType -> Rep ClusterType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ClusterType x -> ClusterType
$cfrom :: forall x. ClusterType -> Rep ClusterType x
Prelude.Generic
    )
  deriving newtype
    ( Eq ClusterType
Int -> ClusterType -> Int
ClusterType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ClusterType -> Int
$chash :: ClusterType -> Int
hashWithSalt :: Int -> ClusterType -> Int
$chashWithSalt :: Int -> ClusterType -> Int
Prelude.Hashable,
      ClusterType -> ()
forall a. (a -> ()) -> NFData a
rnf :: ClusterType -> ()
$crnf :: ClusterType -> ()
Prelude.NFData,
      Text -> Either String ClusterType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ClusterType
$cfromText :: Text -> Either String ClusterType
Data.FromText,
      ClusterType -> Text
forall a. (a -> Text) -> ToText a
toText :: ClusterType -> Text
$ctoText :: ClusterType -> Text
Data.ToText,
      ClusterType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ClusterType -> ByteString
$ctoBS :: ClusterType -> ByteString
Data.ToByteString,
      ClusterType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ClusterType -> ByteStringBuilder
$cbuild :: ClusterType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ClusterType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ClusterType -> [Header]
$ctoHeader :: HeaderName -> ClusterType -> [Header]
Data.ToHeader,
      ClusterType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ClusterType -> QueryString
$ctoQuery :: ClusterType -> QueryString
Data.ToQuery,
      Value -> Parser [ClusterType]
Value -> Parser ClusterType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ClusterType]
$cparseJSONList :: Value -> Parser [ClusterType]
parseJSON :: Value -> Parser ClusterType
$cparseJSON :: Value -> Parser ClusterType
Data.FromJSON,
      FromJSONKeyFunction [ClusterType]
FromJSONKeyFunction ClusterType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ClusterType]
$cfromJSONKeyList :: FromJSONKeyFunction [ClusterType]
fromJSONKey :: FromJSONKeyFunction ClusterType
$cfromJSONKey :: FromJSONKeyFunction ClusterType
Data.FromJSONKey,
      [ClusterType] -> Encoding
[ClusterType] -> Value
ClusterType -> Encoding
ClusterType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ClusterType] -> Encoding
$ctoEncodingList :: [ClusterType] -> Encoding
toJSONList :: [ClusterType] -> Value
$ctoJSONList :: [ClusterType] -> Value
toEncoding :: ClusterType -> Encoding
$ctoEncoding :: ClusterType -> Encoding
toJSON :: ClusterType -> Value
$ctoJSON :: ClusterType -> Value
Data.ToJSON,
      ToJSONKeyFunction [ClusterType]
ToJSONKeyFunction ClusterType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ClusterType]
$ctoJSONKeyList :: ToJSONKeyFunction [ClusterType]
toJSONKey :: ToJSONKeyFunction ClusterType
$ctoJSONKey :: ToJSONKeyFunction ClusterType
Data.ToJSONKey,
      [Node] -> Either String ClusterType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ClusterType
$cparseXML :: [Node] -> Either String ClusterType
Data.FromXML,
      ClusterType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ClusterType -> XML
$ctoXML :: ClusterType -> XML
Data.ToXML
    )

pattern ClusterType_PROVISIONED :: ClusterType
pattern $bClusterType_PROVISIONED :: ClusterType
$mClusterType_PROVISIONED :: forall {r}. ClusterType -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterType_PROVISIONED = ClusterType' "PROVISIONED"

pattern ClusterType_SERVERLESS :: ClusterType
pattern $bClusterType_SERVERLESS :: ClusterType
$mClusterType_SERVERLESS :: forall {r}. ClusterType -> ((# #) -> r) -> ((# #) -> r) -> r
ClusterType_SERVERLESS = ClusterType' "SERVERLESS"

{-# COMPLETE
  ClusterType_PROVISIONED,
  ClusterType_SERVERLESS,
  ClusterType'
  #-}