{-# 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.ApplicationCodeConfigurationUpdate where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.KinesisAnalyticsV2.Types.CodeContentType
import Amazonka.KinesisAnalyticsV2.Types.CodeContentUpdate
import qualified Amazonka.Prelude as Prelude
data ApplicationCodeConfigurationUpdate = ApplicationCodeConfigurationUpdate'
{
ApplicationCodeConfigurationUpdate -> Maybe CodeContentType
codeContentTypeUpdate :: Prelude.Maybe CodeContentType,
ApplicationCodeConfigurationUpdate -> Maybe CodeContentUpdate
codeContentUpdate :: Prelude.Maybe CodeContentUpdate
}
deriving (ApplicationCodeConfigurationUpdate
-> ApplicationCodeConfigurationUpdate -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApplicationCodeConfigurationUpdate
-> ApplicationCodeConfigurationUpdate -> Bool
$c/= :: ApplicationCodeConfigurationUpdate
-> ApplicationCodeConfigurationUpdate -> Bool
== :: ApplicationCodeConfigurationUpdate
-> ApplicationCodeConfigurationUpdate -> Bool
$c== :: ApplicationCodeConfigurationUpdate
-> ApplicationCodeConfigurationUpdate -> Bool
Prelude.Eq, ReadPrec [ApplicationCodeConfigurationUpdate]
ReadPrec ApplicationCodeConfigurationUpdate
Int -> ReadS ApplicationCodeConfigurationUpdate
ReadS [ApplicationCodeConfigurationUpdate]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApplicationCodeConfigurationUpdate]
$creadListPrec :: ReadPrec [ApplicationCodeConfigurationUpdate]
readPrec :: ReadPrec ApplicationCodeConfigurationUpdate
$creadPrec :: ReadPrec ApplicationCodeConfigurationUpdate
readList :: ReadS [ApplicationCodeConfigurationUpdate]
$creadList :: ReadS [ApplicationCodeConfigurationUpdate]
readsPrec :: Int -> ReadS ApplicationCodeConfigurationUpdate
$creadsPrec :: Int -> ReadS ApplicationCodeConfigurationUpdate
Prelude.Read, Int -> ApplicationCodeConfigurationUpdate -> ShowS
[ApplicationCodeConfigurationUpdate] -> ShowS
ApplicationCodeConfigurationUpdate -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApplicationCodeConfigurationUpdate] -> ShowS
$cshowList :: [ApplicationCodeConfigurationUpdate] -> ShowS
show :: ApplicationCodeConfigurationUpdate -> String
$cshow :: ApplicationCodeConfigurationUpdate -> String
showsPrec :: Int -> ApplicationCodeConfigurationUpdate -> ShowS
$cshowsPrec :: Int -> ApplicationCodeConfigurationUpdate -> ShowS
Prelude.Show, forall x.
Rep ApplicationCodeConfigurationUpdate x
-> ApplicationCodeConfigurationUpdate
forall x.
ApplicationCodeConfigurationUpdate
-> Rep ApplicationCodeConfigurationUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ApplicationCodeConfigurationUpdate x
-> ApplicationCodeConfigurationUpdate
$cfrom :: forall x.
ApplicationCodeConfigurationUpdate
-> Rep ApplicationCodeConfigurationUpdate x
Prelude.Generic)
newApplicationCodeConfigurationUpdate ::
ApplicationCodeConfigurationUpdate
newApplicationCodeConfigurationUpdate :: ApplicationCodeConfigurationUpdate
newApplicationCodeConfigurationUpdate =
ApplicationCodeConfigurationUpdate'
{ $sel:codeContentTypeUpdate:ApplicationCodeConfigurationUpdate' :: Maybe CodeContentType
codeContentTypeUpdate =
forall a. Maybe a
Prelude.Nothing,
$sel:codeContentUpdate:ApplicationCodeConfigurationUpdate' :: Maybe CodeContentUpdate
codeContentUpdate = forall a. Maybe a
Prelude.Nothing
}
applicationCodeConfigurationUpdate_codeContentTypeUpdate :: Lens.Lens' ApplicationCodeConfigurationUpdate (Prelude.Maybe CodeContentType)
applicationCodeConfigurationUpdate_codeContentTypeUpdate :: Lens' ApplicationCodeConfigurationUpdate (Maybe CodeContentType)
applicationCodeConfigurationUpdate_codeContentTypeUpdate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationCodeConfigurationUpdate' {Maybe CodeContentType
codeContentTypeUpdate :: Maybe CodeContentType
$sel:codeContentTypeUpdate:ApplicationCodeConfigurationUpdate' :: ApplicationCodeConfigurationUpdate -> Maybe CodeContentType
codeContentTypeUpdate} -> Maybe CodeContentType
codeContentTypeUpdate) (\s :: ApplicationCodeConfigurationUpdate
s@ApplicationCodeConfigurationUpdate' {} Maybe CodeContentType
a -> ApplicationCodeConfigurationUpdate
s {$sel:codeContentTypeUpdate:ApplicationCodeConfigurationUpdate' :: Maybe CodeContentType
codeContentTypeUpdate = Maybe CodeContentType
a} :: ApplicationCodeConfigurationUpdate)
applicationCodeConfigurationUpdate_codeContentUpdate :: Lens.Lens' ApplicationCodeConfigurationUpdate (Prelude.Maybe CodeContentUpdate)
applicationCodeConfigurationUpdate_codeContentUpdate :: Lens' ApplicationCodeConfigurationUpdate (Maybe CodeContentUpdate)
applicationCodeConfigurationUpdate_codeContentUpdate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationCodeConfigurationUpdate' {Maybe CodeContentUpdate
codeContentUpdate :: Maybe CodeContentUpdate
$sel:codeContentUpdate:ApplicationCodeConfigurationUpdate' :: ApplicationCodeConfigurationUpdate -> Maybe CodeContentUpdate
codeContentUpdate} -> Maybe CodeContentUpdate
codeContentUpdate) (\s :: ApplicationCodeConfigurationUpdate
s@ApplicationCodeConfigurationUpdate' {} Maybe CodeContentUpdate
a -> ApplicationCodeConfigurationUpdate
s {$sel:codeContentUpdate:ApplicationCodeConfigurationUpdate' :: Maybe CodeContentUpdate
codeContentUpdate = Maybe CodeContentUpdate
a} :: ApplicationCodeConfigurationUpdate)
instance
Prelude.Hashable
ApplicationCodeConfigurationUpdate
where
hashWithSalt :: Int -> ApplicationCodeConfigurationUpdate -> Int
hashWithSalt
Int
_salt
ApplicationCodeConfigurationUpdate' {Maybe CodeContentType
Maybe CodeContentUpdate
codeContentUpdate :: Maybe CodeContentUpdate
codeContentTypeUpdate :: Maybe CodeContentType
$sel:codeContentUpdate:ApplicationCodeConfigurationUpdate' :: ApplicationCodeConfigurationUpdate -> Maybe CodeContentUpdate
$sel:codeContentTypeUpdate:ApplicationCodeConfigurationUpdate' :: ApplicationCodeConfigurationUpdate -> Maybe CodeContentType
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CodeContentType
codeContentTypeUpdate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CodeContentUpdate
codeContentUpdate
instance
Prelude.NFData
ApplicationCodeConfigurationUpdate
where
rnf :: ApplicationCodeConfigurationUpdate -> ()
rnf ApplicationCodeConfigurationUpdate' {Maybe CodeContentType
Maybe CodeContentUpdate
codeContentUpdate :: Maybe CodeContentUpdate
codeContentTypeUpdate :: Maybe CodeContentType
$sel:codeContentUpdate:ApplicationCodeConfigurationUpdate' :: ApplicationCodeConfigurationUpdate -> Maybe CodeContentUpdate
$sel:codeContentTypeUpdate:ApplicationCodeConfigurationUpdate' :: ApplicationCodeConfigurationUpdate -> Maybe CodeContentType
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe CodeContentType
codeContentTypeUpdate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CodeContentUpdate
codeContentUpdate
instance
Data.ToJSON
ApplicationCodeConfigurationUpdate
where
toJSON :: ApplicationCodeConfigurationUpdate -> Value
toJSON ApplicationCodeConfigurationUpdate' {Maybe CodeContentType
Maybe CodeContentUpdate
codeContentUpdate :: Maybe CodeContentUpdate
codeContentTypeUpdate :: Maybe CodeContentType
$sel:codeContentUpdate:ApplicationCodeConfigurationUpdate' :: ApplicationCodeConfigurationUpdate -> Maybe CodeContentUpdate
$sel:codeContentTypeUpdate:ApplicationCodeConfigurationUpdate' :: ApplicationCodeConfigurationUpdate -> Maybe CodeContentType
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"CodeContentTypeUpdate" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeContentType
codeContentTypeUpdate,
(Key
"CodeContentUpdate" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeContentUpdate
codeContentUpdate
]
)