{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.KinesisAnalyticsV2.Types.FlinkApplicationConfigurationUpdate where
import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.Types.CheckpointConfigurationUpdate
import Amazonka.KinesisAnalyticsV2.Types.MonitoringConfigurationUpdate
import Amazonka.KinesisAnalyticsV2.Types.ParallelismConfigurationUpdate
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data FlinkApplicationConfigurationUpdate = FlinkApplicationConfigurationUpdate'
{
FlinkApplicationConfigurationUpdate
-> Maybe CheckpointConfigurationUpdate
checkpointConfigurationUpdate :: Prelude.Maybe CheckpointConfigurationUpdate,
FlinkApplicationConfigurationUpdate
-> Maybe ParallelismConfigurationUpdate
parallelismConfigurationUpdate :: Prelude.Maybe ParallelismConfigurationUpdate,
FlinkApplicationConfigurationUpdate
-> Maybe MonitoringConfigurationUpdate
monitoringConfigurationUpdate :: Prelude.Maybe MonitoringConfigurationUpdate
}
deriving (FlinkApplicationConfigurationUpdate
-> FlinkApplicationConfigurationUpdate -> Bool
(FlinkApplicationConfigurationUpdate
-> FlinkApplicationConfigurationUpdate -> Bool)
-> (FlinkApplicationConfigurationUpdate
-> FlinkApplicationConfigurationUpdate -> Bool)
-> Eq FlinkApplicationConfigurationUpdate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FlinkApplicationConfigurationUpdate
-> FlinkApplicationConfigurationUpdate -> Bool
$c/= :: FlinkApplicationConfigurationUpdate
-> FlinkApplicationConfigurationUpdate -> Bool
== :: FlinkApplicationConfigurationUpdate
-> FlinkApplicationConfigurationUpdate -> Bool
$c== :: FlinkApplicationConfigurationUpdate
-> FlinkApplicationConfigurationUpdate -> Bool
Prelude.Eq, ReadPrec [FlinkApplicationConfigurationUpdate]
ReadPrec FlinkApplicationConfigurationUpdate
Int -> ReadS FlinkApplicationConfigurationUpdate
ReadS [FlinkApplicationConfigurationUpdate]
(Int -> ReadS FlinkApplicationConfigurationUpdate)
-> ReadS [FlinkApplicationConfigurationUpdate]
-> ReadPrec FlinkApplicationConfigurationUpdate
-> ReadPrec [FlinkApplicationConfigurationUpdate]
-> Read FlinkApplicationConfigurationUpdate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FlinkApplicationConfigurationUpdate]
$creadListPrec :: ReadPrec [FlinkApplicationConfigurationUpdate]
readPrec :: ReadPrec FlinkApplicationConfigurationUpdate
$creadPrec :: ReadPrec FlinkApplicationConfigurationUpdate
readList :: ReadS [FlinkApplicationConfigurationUpdate]
$creadList :: ReadS [FlinkApplicationConfigurationUpdate]
readsPrec :: Int -> ReadS FlinkApplicationConfigurationUpdate
$creadsPrec :: Int -> ReadS FlinkApplicationConfigurationUpdate
Prelude.Read, Int -> FlinkApplicationConfigurationUpdate -> ShowS
[FlinkApplicationConfigurationUpdate] -> ShowS
FlinkApplicationConfigurationUpdate -> String
(Int -> FlinkApplicationConfigurationUpdate -> ShowS)
-> (FlinkApplicationConfigurationUpdate -> String)
-> ([FlinkApplicationConfigurationUpdate] -> ShowS)
-> Show FlinkApplicationConfigurationUpdate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FlinkApplicationConfigurationUpdate] -> ShowS
$cshowList :: [FlinkApplicationConfigurationUpdate] -> ShowS
show :: FlinkApplicationConfigurationUpdate -> String
$cshow :: FlinkApplicationConfigurationUpdate -> String
showsPrec :: Int -> FlinkApplicationConfigurationUpdate -> ShowS
$cshowsPrec :: Int -> FlinkApplicationConfigurationUpdate -> ShowS
Prelude.Show, (forall x.
FlinkApplicationConfigurationUpdate
-> Rep FlinkApplicationConfigurationUpdate x)
-> (forall x.
Rep FlinkApplicationConfigurationUpdate x
-> FlinkApplicationConfigurationUpdate)
-> Generic FlinkApplicationConfigurationUpdate
forall x.
Rep FlinkApplicationConfigurationUpdate x
-> FlinkApplicationConfigurationUpdate
forall x.
FlinkApplicationConfigurationUpdate
-> Rep FlinkApplicationConfigurationUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FlinkApplicationConfigurationUpdate x
-> FlinkApplicationConfigurationUpdate
$cfrom :: forall x.
FlinkApplicationConfigurationUpdate
-> Rep FlinkApplicationConfigurationUpdate x
Prelude.Generic)
newFlinkApplicationConfigurationUpdate ::
FlinkApplicationConfigurationUpdate
newFlinkApplicationConfigurationUpdate :: FlinkApplicationConfigurationUpdate
newFlinkApplicationConfigurationUpdate =
FlinkApplicationConfigurationUpdate' :: Maybe CheckpointConfigurationUpdate
-> Maybe ParallelismConfigurationUpdate
-> Maybe MonitoringConfigurationUpdate
-> FlinkApplicationConfigurationUpdate
FlinkApplicationConfigurationUpdate'
{ $sel:checkpointConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: Maybe CheckpointConfigurationUpdate
checkpointConfigurationUpdate =
Maybe CheckpointConfigurationUpdate
forall a. Maybe a
Prelude.Nothing,
$sel:parallelismConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: Maybe ParallelismConfigurationUpdate
parallelismConfigurationUpdate =
Maybe ParallelismConfigurationUpdate
forall a. Maybe a
Prelude.Nothing,
$sel:monitoringConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: Maybe MonitoringConfigurationUpdate
monitoringConfigurationUpdate =
Maybe MonitoringConfigurationUpdate
forall a. Maybe a
Prelude.Nothing
}
flinkApplicationConfigurationUpdate_checkpointConfigurationUpdate :: Lens.Lens' FlinkApplicationConfigurationUpdate (Prelude.Maybe CheckpointConfigurationUpdate)
flinkApplicationConfigurationUpdate_checkpointConfigurationUpdate :: (Maybe CheckpointConfigurationUpdate
-> f (Maybe CheckpointConfigurationUpdate))
-> FlinkApplicationConfigurationUpdate
-> f FlinkApplicationConfigurationUpdate
flinkApplicationConfigurationUpdate_checkpointConfigurationUpdate = (FlinkApplicationConfigurationUpdate
-> Maybe CheckpointConfigurationUpdate)
-> (FlinkApplicationConfigurationUpdate
-> Maybe CheckpointConfigurationUpdate
-> FlinkApplicationConfigurationUpdate)
-> Lens
FlinkApplicationConfigurationUpdate
FlinkApplicationConfigurationUpdate
(Maybe CheckpointConfigurationUpdate)
(Maybe CheckpointConfigurationUpdate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FlinkApplicationConfigurationUpdate' {Maybe CheckpointConfigurationUpdate
checkpointConfigurationUpdate :: Maybe CheckpointConfigurationUpdate
$sel:checkpointConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: FlinkApplicationConfigurationUpdate
-> Maybe CheckpointConfigurationUpdate
checkpointConfigurationUpdate} -> Maybe CheckpointConfigurationUpdate
checkpointConfigurationUpdate) (\s :: FlinkApplicationConfigurationUpdate
s@FlinkApplicationConfigurationUpdate' {} Maybe CheckpointConfigurationUpdate
a -> FlinkApplicationConfigurationUpdate
s {$sel:checkpointConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: Maybe CheckpointConfigurationUpdate
checkpointConfigurationUpdate = Maybe CheckpointConfigurationUpdate
a} :: FlinkApplicationConfigurationUpdate)
flinkApplicationConfigurationUpdate_parallelismConfigurationUpdate :: Lens.Lens' FlinkApplicationConfigurationUpdate (Prelude.Maybe ParallelismConfigurationUpdate)
flinkApplicationConfigurationUpdate_parallelismConfigurationUpdate :: (Maybe ParallelismConfigurationUpdate
-> f (Maybe ParallelismConfigurationUpdate))
-> FlinkApplicationConfigurationUpdate
-> f FlinkApplicationConfigurationUpdate
flinkApplicationConfigurationUpdate_parallelismConfigurationUpdate = (FlinkApplicationConfigurationUpdate
-> Maybe ParallelismConfigurationUpdate)
-> (FlinkApplicationConfigurationUpdate
-> Maybe ParallelismConfigurationUpdate
-> FlinkApplicationConfigurationUpdate)
-> Lens
FlinkApplicationConfigurationUpdate
FlinkApplicationConfigurationUpdate
(Maybe ParallelismConfigurationUpdate)
(Maybe ParallelismConfigurationUpdate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FlinkApplicationConfigurationUpdate' {Maybe ParallelismConfigurationUpdate
parallelismConfigurationUpdate :: Maybe ParallelismConfigurationUpdate
$sel:parallelismConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: FlinkApplicationConfigurationUpdate
-> Maybe ParallelismConfigurationUpdate
parallelismConfigurationUpdate} -> Maybe ParallelismConfigurationUpdate
parallelismConfigurationUpdate) (\s :: FlinkApplicationConfigurationUpdate
s@FlinkApplicationConfigurationUpdate' {} Maybe ParallelismConfigurationUpdate
a -> FlinkApplicationConfigurationUpdate
s {$sel:parallelismConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: Maybe ParallelismConfigurationUpdate
parallelismConfigurationUpdate = Maybe ParallelismConfigurationUpdate
a} :: FlinkApplicationConfigurationUpdate)
flinkApplicationConfigurationUpdate_monitoringConfigurationUpdate :: Lens.Lens' FlinkApplicationConfigurationUpdate (Prelude.Maybe MonitoringConfigurationUpdate)
flinkApplicationConfigurationUpdate_monitoringConfigurationUpdate :: (Maybe MonitoringConfigurationUpdate
-> f (Maybe MonitoringConfigurationUpdate))
-> FlinkApplicationConfigurationUpdate
-> f FlinkApplicationConfigurationUpdate
flinkApplicationConfigurationUpdate_monitoringConfigurationUpdate = (FlinkApplicationConfigurationUpdate
-> Maybe MonitoringConfigurationUpdate)
-> (FlinkApplicationConfigurationUpdate
-> Maybe MonitoringConfigurationUpdate
-> FlinkApplicationConfigurationUpdate)
-> Lens
FlinkApplicationConfigurationUpdate
FlinkApplicationConfigurationUpdate
(Maybe MonitoringConfigurationUpdate)
(Maybe MonitoringConfigurationUpdate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FlinkApplicationConfigurationUpdate' {Maybe MonitoringConfigurationUpdate
monitoringConfigurationUpdate :: Maybe MonitoringConfigurationUpdate
$sel:monitoringConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: FlinkApplicationConfigurationUpdate
-> Maybe MonitoringConfigurationUpdate
monitoringConfigurationUpdate} -> Maybe MonitoringConfigurationUpdate
monitoringConfigurationUpdate) (\s :: FlinkApplicationConfigurationUpdate
s@FlinkApplicationConfigurationUpdate' {} Maybe MonitoringConfigurationUpdate
a -> FlinkApplicationConfigurationUpdate
s {$sel:monitoringConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: Maybe MonitoringConfigurationUpdate
monitoringConfigurationUpdate = Maybe MonitoringConfigurationUpdate
a} :: FlinkApplicationConfigurationUpdate)
instance
Prelude.Hashable
FlinkApplicationConfigurationUpdate
instance
Prelude.NFData
FlinkApplicationConfigurationUpdate
instance
Core.ToJSON
FlinkApplicationConfigurationUpdate
where
toJSON :: FlinkApplicationConfigurationUpdate -> Value
toJSON FlinkApplicationConfigurationUpdate' {Maybe CheckpointConfigurationUpdate
Maybe MonitoringConfigurationUpdate
Maybe ParallelismConfigurationUpdate
monitoringConfigurationUpdate :: Maybe MonitoringConfigurationUpdate
parallelismConfigurationUpdate :: Maybe ParallelismConfigurationUpdate
checkpointConfigurationUpdate :: Maybe CheckpointConfigurationUpdate
$sel:monitoringConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: FlinkApplicationConfigurationUpdate
-> Maybe MonitoringConfigurationUpdate
$sel:parallelismConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: FlinkApplicationConfigurationUpdate
-> Maybe ParallelismConfigurationUpdate
$sel:checkpointConfigurationUpdate:FlinkApplicationConfigurationUpdate' :: FlinkApplicationConfigurationUpdate
-> Maybe CheckpointConfigurationUpdate
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"CheckpointConfigurationUpdate" Text -> CheckpointConfigurationUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CheckpointConfigurationUpdate -> Pair)
-> Maybe CheckpointConfigurationUpdate -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CheckpointConfigurationUpdate
checkpointConfigurationUpdate,
(Text
"ParallelismConfigurationUpdate" Text -> ParallelismConfigurationUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ParallelismConfigurationUpdate -> Pair)
-> Maybe ParallelismConfigurationUpdate -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ParallelismConfigurationUpdate
parallelismConfigurationUpdate,
(Text
"MonitoringConfigurationUpdate" Text -> MonitoringConfigurationUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(MonitoringConfigurationUpdate -> Pair)
-> Maybe MonitoringConfigurationUpdate -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MonitoringConfigurationUpdate
monitoringConfigurationUpdate
]
)