{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Redshift.Types.ParameterApplyType
( ParameterApplyType
( ..,
ParameterApplyType_Dynamic,
ParameterApplyType_Static
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Internal
newtype ParameterApplyType = ParameterApplyType'
{ ParameterApplyType -> Text
fromParameterApplyType ::
Core.Text
}
deriving stock
( Int -> ParameterApplyType -> ShowS
[ParameterApplyType] -> ShowS
ParameterApplyType -> String
(Int -> ParameterApplyType -> ShowS)
-> (ParameterApplyType -> String)
-> ([ParameterApplyType] -> ShowS)
-> Show ParameterApplyType
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]
(Int -> ReadS ParameterApplyType)
-> ReadS [ParameterApplyType]
-> ReadPrec ParameterApplyType
-> ReadPrec [ParameterApplyType]
-> Read 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
(ParameterApplyType -> ParameterApplyType -> Bool)
-> (ParameterApplyType -> ParameterApplyType -> Bool)
-> Eq ParameterApplyType
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
Eq ParameterApplyType
-> (ParameterApplyType -> ParameterApplyType -> Ordering)
-> (ParameterApplyType -> ParameterApplyType -> Bool)
-> (ParameterApplyType -> ParameterApplyType -> Bool)
-> (ParameterApplyType -> ParameterApplyType -> Bool)
-> (ParameterApplyType -> ParameterApplyType -> Bool)
-> (ParameterApplyType -> ParameterApplyType -> ParameterApplyType)
-> (ParameterApplyType -> ParameterApplyType -> ParameterApplyType)
-> Ord 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
$cp1Ord :: Eq ParameterApplyType
Prelude.Ord,
(forall x. ParameterApplyType -> Rep ParameterApplyType x)
-> (forall x. Rep ParameterApplyType x -> ParameterApplyType)
-> Generic ParameterApplyType
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
( Int -> ParameterApplyType -> Int
ParameterApplyType -> Int
(Int -> ParameterApplyType -> Int)
-> (ParameterApplyType -> Int) -> Hashable ParameterApplyType
forall 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 -> ()
(ParameterApplyType -> ()) -> NFData ParameterApplyType
forall a. (a -> ()) -> NFData a
rnf :: ParameterApplyType -> ()
$crnf :: ParameterApplyType -> ()
Prelude.NFData,
Text -> Either String ParameterApplyType
(Text -> Either String ParameterApplyType)
-> FromText ParameterApplyType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ParameterApplyType
$cfromText :: Text -> Either String ParameterApplyType
Core.FromText,
ParameterApplyType -> Text
(ParameterApplyType -> Text) -> ToText ParameterApplyType
forall a. (a -> Text) -> ToText a
toText :: ParameterApplyType -> Text
$ctoText :: ParameterApplyType -> Text
Core.ToText,
ParameterApplyType -> ByteString
(ParameterApplyType -> ByteString)
-> ToByteString ParameterApplyType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ParameterApplyType -> ByteString
$ctoBS :: ParameterApplyType -> ByteString
Core.ToByteString,
ParameterApplyType -> ByteStringBuilder
(ParameterApplyType -> ByteStringBuilder)
-> ToLog ParameterApplyType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ParameterApplyType -> ByteStringBuilder
$cbuild :: ParameterApplyType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ParameterApplyType -> [Header]
(HeaderName -> ParameterApplyType -> [Header])
-> ToHeader ParameterApplyType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ParameterApplyType -> [Header]
$ctoHeader :: HeaderName -> ParameterApplyType -> [Header]
Core.ToHeader,
ParameterApplyType -> QueryString
(ParameterApplyType -> QueryString) -> ToQuery ParameterApplyType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ParameterApplyType -> QueryString
$ctoQuery :: ParameterApplyType -> QueryString
Core.ToQuery,
Value -> Parser [ParameterApplyType]
Value -> Parser ParameterApplyType
(Value -> Parser ParameterApplyType)
-> (Value -> Parser [ParameterApplyType])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ParameterApplyType]
FromJSONKeyFunction ParameterApplyType
FromJSONKeyFunction ParameterApplyType
-> FromJSONKeyFunction [ParameterApplyType]
-> FromJSONKey ParameterApplyType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ParameterApplyType]
$cfromJSONKeyList :: FromJSONKeyFunction [ParameterApplyType]
fromJSONKey :: FromJSONKeyFunction ParameterApplyType
$cfromJSONKey :: FromJSONKeyFunction ParameterApplyType
Core.FromJSONKey,
[ParameterApplyType] -> Encoding
[ParameterApplyType] -> Value
ParameterApplyType -> Encoding
ParameterApplyType -> Value
(ParameterApplyType -> Value)
-> (ParameterApplyType -> Encoding)
-> ([ParameterApplyType] -> Value)
-> ([ParameterApplyType] -> Encoding)
-> ToJSON ParameterApplyType
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
Core.ToJSON,
ToJSONKeyFunction [ParameterApplyType]
ToJSONKeyFunction ParameterApplyType
ToJSONKeyFunction ParameterApplyType
-> ToJSONKeyFunction [ParameterApplyType]
-> ToJSONKey ParameterApplyType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ParameterApplyType]
$ctoJSONKeyList :: ToJSONKeyFunction [ParameterApplyType]
toJSONKey :: ToJSONKeyFunction ParameterApplyType
$ctoJSONKey :: ToJSONKeyFunction ParameterApplyType
Core.ToJSONKey,
[Node] -> Either String ParameterApplyType
([Node] -> Either String ParameterApplyType)
-> FromXML ParameterApplyType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ParameterApplyType
$cparseXML :: [Node] -> Either String ParameterApplyType
Core.FromXML,
ParameterApplyType -> XML
(ParameterApplyType -> XML) -> ToXML ParameterApplyType
forall a. (a -> XML) -> ToXML a
toXML :: ParameterApplyType -> XML
$ctoXML :: ParameterApplyType -> XML
Core.ToXML
)
pattern ParameterApplyType_Dynamic :: ParameterApplyType
pattern $bParameterApplyType_Dynamic :: ParameterApplyType
$mParameterApplyType_Dynamic :: forall r. ParameterApplyType -> (Void# -> r) -> (Void# -> r) -> r
ParameterApplyType_Dynamic = ParameterApplyType' "dynamic"
pattern ParameterApplyType_Static :: ParameterApplyType
pattern $bParameterApplyType_Static :: ParameterApplyType
$mParameterApplyType_Static :: forall r. ParameterApplyType -> (Void# -> r) -> (Void# -> r) -> r
ParameterApplyType_Static = ParameterApplyType' "static"
{-# COMPLETE
ParameterApplyType_Dynamic,
ParameterApplyType_Static,
ParameterApplyType'
#-}