{-# 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.KinesisAnalyticsV2.Types.ConfigurationType
-- 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.KinesisAnalyticsV2.Types.ConfigurationType
  ( ConfigurationType
      ( ..,
        ConfigurationType_CUSTOM,
        ConfigurationType_DEFAULT
      ),
  )
where

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

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

pattern ConfigurationType_CUSTOM :: ConfigurationType
pattern $bConfigurationType_CUSTOM :: ConfigurationType
$mConfigurationType_CUSTOM :: forall {r}. ConfigurationType -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigurationType_CUSTOM = ConfigurationType' "CUSTOM"

pattern ConfigurationType_DEFAULT :: ConfigurationType
pattern $bConfigurationType_DEFAULT :: ConfigurationType
$mConfigurationType_DEFAULT :: forall {r}. ConfigurationType -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigurationType_DEFAULT = ConfigurationType' "DEFAULT"

{-# COMPLETE
  ConfigurationType_CUSTOM,
  ConfigurationType_DEFAULT,
  ConfigurationType'
  #-}