{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.KinesisAnalyticsV2.Types.ApplicationMode
( ApplicationMode
( ..,
ApplicationMode_INTERACTIVE,
ApplicationMode_STREAMING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ApplicationMode = ApplicationMode'
{ ApplicationMode -> Text
fromApplicationMode ::
Data.Text
}
deriving stock
( Int -> ApplicationMode -> ShowS
[ApplicationMode] -> ShowS
ApplicationMode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApplicationMode] -> ShowS
$cshowList :: [ApplicationMode] -> ShowS
show :: ApplicationMode -> String
$cshow :: ApplicationMode -> String
showsPrec :: Int -> ApplicationMode -> ShowS
$cshowsPrec :: Int -> ApplicationMode -> ShowS
Prelude.Show,
ReadPrec [ApplicationMode]
ReadPrec ApplicationMode
Int -> ReadS ApplicationMode
ReadS [ApplicationMode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApplicationMode]
$creadListPrec :: ReadPrec [ApplicationMode]
readPrec :: ReadPrec ApplicationMode
$creadPrec :: ReadPrec ApplicationMode
readList :: ReadS [ApplicationMode]
$creadList :: ReadS [ApplicationMode]
readsPrec :: Int -> ReadS ApplicationMode
$creadsPrec :: Int -> ReadS ApplicationMode
Prelude.Read,
ApplicationMode -> ApplicationMode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApplicationMode -> ApplicationMode -> Bool
$c/= :: ApplicationMode -> ApplicationMode -> Bool
== :: ApplicationMode -> ApplicationMode -> Bool
$c== :: ApplicationMode -> ApplicationMode -> Bool
Prelude.Eq,
Eq ApplicationMode
ApplicationMode -> ApplicationMode -> Bool
ApplicationMode -> ApplicationMode -> Ordering
ApplicationMode -> ApplicationMode -> ApplicationMode
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 :: ApplicationMode -> ApplicationMode -> ApplicationMode
$cmin :: ApplicationMode -> ApplicationMode -> ApplicationMode
max :: ApplicationMode -> ApplicationMode -> ApplicationMode
$cmax :: ApplicationMode -> ApplicationMode -> ApplicationMode
>= :: ApplicationMode -> ApplicationMode -> Bool
$c>= :: ApplicationMode -> ApplicationMode -> Bool
> :: ApplicationMode -> ApplicationMode -> Bool
$c> :: ApplicationMode -> ApplicationMode -> Bool
<= :: ApplicationMode -> ApplicationMode -> Bool
$c<= :: ApplicationMode -> ApplicationMode -> Bool
< :: ApplicationMode -> ApplicationMode -> Bool
$c< :: ApplicationMode -> ApplicationMode -> Bool
compare :: ApplicationMode -> ApplicationMode -> Ordering
$ccompare :: ApplicationMode -> ApplicationMode -> Ordering
Prelude.Ord,
forall x. Rep ApplicationMode x -> ApplicationMode
forall x. ApplicationMode -> Rep ApplicationMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ApplicationMode x -> ApplicationMode
$cfrom :: forall x. ApplicationMode -> Rep ApplicationMode x
Prelude.Generic
)
deriving newtype
( Eq ApplicationMode
Int -> ApplicationMode -> Int
ApplicationMode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ApplicationMode -> Int
$chash :: ApplicationMode -> Int
hashWithSalt :: Int -> ApplicationMode -> Int
$chashWithSalt :: Int -> ApplicationMode -> Int
Prelude.Hashable,
ApplicationMode -> ()
forall a. (a -> ()) -> NFData a
rnf :: ApplicationMode -> ()
$crnf :: ApplicationMode -> ()
Prelude.NFData,
Text -> Either String ApplicationMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ApplicationMode
$cfromText :: Text -> Either String ApplicationMode
Data.FromText,
ApplicationMode -> Text
forall a. (a -> Text) -> ToText a
toText :: ApplicationMode -> Text
$ctoText :: ApplicationMode -> Text
Data.ToText,
ApplicationMode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ApplicationMode -> ByteString
$ctoBS :: ApplicationMode -> ByteString
Data.ToByteString,
ApplicationMode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ApplicationMode -> ByteStringBuilder
$cbuild :: ApplicationMode -> ByteStringBuilder
Data.ToLog,
HeaderName -> ApplicationMode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ApplicationMode -> [Header]
$ctoHeader :: HeaderName -> ApplicationMode -> [Header]
Data.ToHeader,
ApplicationMode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ApplicationMode -> QueryString
$ctoQuery :: ApplicationMode -> QueryString
Data.ToQuery,
Value -> Parser [ApplicationMode]
Value -> Parser ApplicationMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ApplicationMode]
$cparseJSONList :: Value -> Parser [ApplicationMode]
parseJSON :: Value -> Parser ApplicationMode
$cparseJSON :: Value -> Parser ApplicationMode
Data.FromJSON,
FromJSONKeyFunction [ApplicationMode]
FromJSONKeyFunction ApplicationMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ApplicationMode]
$cfromJSONKeyList :: FromJSONKeyFunction [ApplicationMode]
fromJSONKey :: FromJSONKeyFunction ApplicationMode
$cfromJSONKey :: FromJSONKeyFunction ApplicationMode
Data.FromJSONKey,
[ApplicationMode] -> Encoding
[ApplicationMode] -> Value
ApplicationMode -> Encoding
ApplicationMode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ApplicationMode] -> Encoding
$ctoEncodingList :: [ApplicationMode] -> Encoding
toJSONList :: [ApplicationMode] -> Value
$ctoJSONList :: [ApplicationMode] -> Value
toEncoding :: ApplicationMode -> Encoding
$ctoEncoding :: ApplicationMode -> Encoding
toJSON :: ApplicationMode -> Value
$ctoJSON :: ApplicationMode -> Value
Data.ToJSON,
ToJSONKeyFunction [ApplicationMode]
ToJSONKeyFunction ApplicationMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ApplicationMode]
$ctoJSONKeyList :: ToJSONKeyFunction [ApplicationMode]
toJSONKey :: ToJSONKeyFunction ApplicationMode
$ctoJSONKey :: ToJSONKeyFunction ApplicationMode
Data.ToJSONKey,
[Node] -> Either String ApplicationMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ApplicationMode
$cparseXML :: [Node] -> Either String ApplicationMode
Data.FromXML,
ApplicationMode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ApplicationMode -> XML
$ctoXML :: ApplicationMode -> XML
Data.ToXML
)
pattern ApplicationMode_INTERACTIVE :: ApplicationMode
pattern $bApplicationMode_INTERACTIVE :: ApplicationMode
$mApplicationMode_INTERACTIVE :: forall {r}. ApplicationMode -> ((# #) -> r) -> ((# #) -> r) -> r
ApplicationMode_INTERACTIVE = ApplicationMode' "INTERACTIVE"
pattern ApplicationMode_STREAMING :: ApplicationMode
pattern $bApplicationMode_STREAMING :: ApplicationMode
$mApplicationMode_STREAMING :: forall {r}. ApplicationMode -> ((# #) -> r) -> ((# #) -> r) -> r
ApplicationMode_STREAMING = ApplicationMode' "STREAMING"
{-# COMPLETE
ApplicationMode_INTERACTIVE,
ApplicationMode_STREAMING,
ApplicationMode'
#-}