{-# 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.Redshift.Types.ParameterApplyType
-- 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.Redshift.Types.ParameterApplyType
  ( ParameterApplyType
      ( ..,
        ParameterApplyType_Dynamic,
        ParameterApplyType_Static
      ),
  )
where

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

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

pattern ParameterApplyType_Dynamic :: ParameterApplyType
pattern $bParameterApplyType_Dynamic :: ParameterApplyType
$mParameterApplyType_Dynamic :: forall {r}. ParameterApplyType -> ((# #) -> r) -> ((# #) -> r) -> r
ParameterApplyType_Dynamic = ParameterApplyType' "dynamic"

pattern ParameterApplyType_Static :: ParameterApplyType
pattern $bParameterApplyType_Static :: ParameterApplyType
$mParameterApplyType_Static :: forall {r}. ParameterApplyType -> ((# #) -> r) -> ((# #) -> r) -> r
ParameterApplyType_Static = ParameterApplyType' "static"

{-# COMPLETE
  ParameterApplyType_Dynamic,
  ParameterApplyType_Static,
  ParameterApplyType'
  #-}