{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.KinesisAnalyticsV2.AddApplicationOutput
(
AddApplicationOutput (..),
newAddApplicationOutput,
addApplicationOutput_applicationName,
addApplicationOutput_currentApplicationVersionId,
addApplicationOutput_output,
AddApplicationOutputResponse (..),
newAddApplicationOutputResponse,
addApplicationOutputResponse_applicationARN,
addApplicationOutputResponse_outputDescriptions,
addApplicationOutputResponse_applicationVersionId,
addApplicationOutputResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data AddApplicationOutput = AddApplicationOutput'
{
AddApplicationOutput -> Text
applicationName :: Prelude.Text,
AddApplicationOutput -> Natural
currentApplicationVersionId :: Prelude.Natural,
AddApplicationOutput -> Output
output :: Output
}
deriving (AddApplicationOutput -> AddApplicationOutput -> Bool
(AddApplicationOutput -> AddApplicationOutput -> Bool)
-> (AddApplicationOutput -> AddApplicationOutput -> Bool)
-> Eq AddApplicationOutput
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AddApplicationOutput -> AddApplicationOutput -> Bool
$c/= :: AddApplicationOutput -> AddApplicationOutput -> Bool
== :: AddApplicationOutput -> AddApplicationOutput -> Bool
$c== :: AddApplicationOutput -> AddApplicationOutput -> Bool
Prelude.Eq, ReadPrec [AddApplicationOutput]
ReadPrec AddApplicationOutput
Int -> ReadS AddApplicationOutput
ReadS [AddApplicationOutput]
(Int -> ReadS AddApplicationOutput)
-> ReadS [AddApplicationOutput]
-> ReadPrec AddApplicationOutput
-> ReadPrec [AddApplicationOutput]
-> Read AddApplicationOutput
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AddApplicationOutput]
$creadListPrec :: ReadPrec [AddApplicationOutput]
readPrec :: ReadPrec AddApplicationOutput
$creadPrec :: ReadPrec AddApplicationOutput
readList :: ReadS [AddApplicationOutput]
$creadList :: ReadS [AddApplicationOutput]
readsPrec :: Int -> ReadS AddApplicationOutput
$creadsPrec :: Int -> ReadS AddApplicationOutput
Prelude.Read, Int -> AddApplicationOutput -> ShowS
[AddApplicationOutput] -> ShowS
AddApplicationOutput -> String
(Int -> AddApplicationOutput -> ShowS)
-> (AddApplicationOutput -> String)
-> ([AddApplicationOutput] -> ShowS)
-> Show AddApplicationOutput
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AddApplicationOutput] -> ShowS
$cshowList :: [AddApplicationOutput] -> ShowS
show :: AddApplicationOutput -> String
$cshow :: AddApplicationOutput -> String
showsPrec :: Int -> AddApplicationOutput -> ShowS
$cshowsPrec :: Int -> AddApplicationOutput -> ShowS
Prelude.Show, (forall x. AddApplicationOutput -> Rep AddApplicationOutput x)
-> (forall x. Rep AddApplicationOutput x -> AddApplicationOutput)
-> Generic AddApplicationOutput
forall x. Rep AddApplicationOutput x -> AddApplicationOutput
forall x. AddApplicationOutput -> Rep AddApplicationOutput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AddApplicationOutput x -> AddApplicationOutput
$cfrom :: forall x. AddApplicationOutput -> Rep AddApplicationOutput x
Prelude.Generic)
newAddApplicationOutput ::
Prelude.Text ->
Prelude.Natural ->
Output ->
AddApplicationOutput
newAddApplicationOutput :: Text -> Natural -> Output -> AddApplicationOutput
newAddApplicationOutput
Text
pApplicationName_
Natural
pCurrentApplicationVersionId_
Output
pOutput_ =
AddApplicationOutput' :: Text -> Natural -> Output -> AddApplicationOutput
AddApplicationOutput'
{ $sel:applicationName:AddApplicationOutput' :: Text
applicationName =
Text
pApplicationName_,
$sel:currentApplicationVersionId:AddApplicationOutput' :: Natural
currentApplicationVersionId =
Natural
pCurrentApplicationVersionId_,
$sel:output:AddApplicationOutput' :: Output
output = Output
pOutput_
}
addApplicationOutput_applicationName :: Lens.Lens' AddApplicationOutput Prelude.Text
addApplicationOutput_applicationName :: (Text -> f Text) -> AddApplicationOutput -> f AddApplicationOutput
addApplicationOutput_applicationName = (AddApplicationOutput -> Text)
-> (AddApplicationOutput -> Text -> AddApplicationOutput)
-> Lens AddApplicationOutput AddApplicationOutput Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddApplicationOutput' {Text
applicationName :: Text
$sel:applicationName:AddApplicationOutput' :: AddApplicationOutput -> Text
applicationName} -> Text
applicationName) (\s :: AddApplicationOutput
s@AddApplicationOutput' {} Text
a -> AddApplicationOutput
s {$sel:applicationName:AddApplicationOutput' :: Text
applicationName = Text
a} :: AddApplicationOutput)
addApplicationOutput_currentApplicationVersionId :: Lens.Lens' AddApplicationOutput Prelude.Natural
addApplicationOutput_currentApplicationVersionId :: (Natural -> f Natural)
-> AddApplicationOutput -> f AddApplicationOutput
addApplicationOutput_currentApplicationVersionId = (AddApplicationOutput -> Natural)
-> (AddApplicationOutput -> Natural -> AddApplicationOutput)
-> Lens AddApplicationOutput AddApplicationOutput Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddApplicationOutput' {Natural
currentApplicationVersionId :: Natural
$sel:currentApplicationVersionId:AddApplicationOutput' :: AddApplicationOutput -> Natural
currentApplicationVersionId} -> Natural
currentApplicationVersionId) (\s :: AddApplicationOutput
s@AddApplicationOutput' {} Natural
a -> AddApplicationOutput
s {$sel:currentApplicationVersionId:AddApplicationOutput' :: Natural
currentApplicationVersionId = Natural
a} :: AddApplicationOutput)
addApplicationOutput_output :: Lens.Lens' AddApplicationOutput Output
addApplicationOutput_output :: (Output -> f Output)
-> AddApplicationOutput -> f AddApplicationOutput
addApplicationOutput_output = (AddApplicationOutput -> Output)
-> (AddApplicationOutput -> Output -> AddApplicationOutput)
-> Lens AddApplicationOutput AddApplicationOutput Output Output
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddApplicationOutput' {Output
output :: Output
$sel:output:AddApplicationOutput' :: AddApplicationOutput -> Output
output} -> Output
output) (\s :: AddApplicationOutput
s@AddApplicationOutput' {} Output
a -> AddApplicationOutput
s {$sel:output:AddApplicationOutput' :: Output
output = Output
a} :: AddApplicationOutput)
instance Core.AWSRequest AddApplicationOutput where
type
AWSResponse AddApplicationOutput =
AddApplicationOutputResponse
request :: AddApplicationOutput -> Request AddApplicationOutput
request = Service -> AddApplicationOutput -> Request AddApplicationOutput
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy AddApplicationOutput
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse AddApplicationOutput)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse AddApplicationOutput))
-> Logger
-> Service
-> Proxy AddApplicationOutput
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse AddApplicationOutput)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [OutputDescription]
-> Maybe Natural
-> Int
-> AddApplicationOutputResponse
AddApplicationOutputResponse'
(Maybe Text
-> Maybe [OutputDescription]
-> Maybe Natural
-> Int
-> AddApplicationOutputResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [OutputDescription]
-> Maybe Natural -> Int -> AddApplicationOutputResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ApplicationARN")
Either
String
(Maybe [OutputDescription]
-> Maybe Natural -> Int -> AddApplicationOutputResponse)
-> Either String (Maybe [OutputDescription])
-> Either
String (Maybe Natural -> Int -> AddApplicationOutputResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [OutputDescription]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OutputDescriptions"
Either String (Maybe (Maybe [OutputDescription]))
-> Maybe [OutputDescription]
-> Either String (Maybe [OutputDescription])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [OutputDescription]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Natural -> Int -> AddApplicationOutputResponse)
-> Either String (Maybe Natural)
-> Either String (Int -> AddApplicationOutputResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ApplicationVersionId")
Either String (Int -> AddApplicationOutputResponse)
-> Either String Int -> Either String AddApplicationOutputResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable AddApplicationOutput
instance Prelude.NFData AddApplicationOutput
instance Core.ToHeaders AddApplicationOutput where
toHeaders :: AddApplicationOutput -> ResponseHeaders
toHeaders =
ResponseHeaders -> AddApplicationOutput -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"KinesisAnalytics_20180523.AddApplicationOutput" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON AddApplicationOutput where
toJSON :: AddApplicationOutput -> Value
toJSON AddApplicationOutput' {Natural
Text
Output
output :: Output
currentApplicationVersionId :: Natural
applicationName :: Text
$sel:output:AddApplicationOutput' :: AddApplicationOutput -> Output
$sel:currentApplicationVersionId:AddApplicationOutput' :: AddApplicationOutput -> Natural
$sel:applicationName:AddApplicationOutput' :: AddApplicationOutput -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ApplicationName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
applicationName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"CurrentApplicationVersionId"
Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
currentApplicationVersionId
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Output" Text -> Output -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Output
output)
]
)
instance Core.ToPath AddApplicationOutput where
toPath :: AddApplicationOutput -> ByteString
toPath = ByteString -> AddApplicationOutput -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery AddApplicationOutput where
toQuery :: AddApplicationOutput -> QueryString
toQuery = QueryString -> AddApplicationOutput -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data AddApplicationOutputResponse = AddApplicationOutputResponse'
{
AddApplicationOutputResponse -> Maybe Text
applicationARN :: Prelude.Maybe Prelude.Text,
AddApplicationOutputResponse -> Maybe [OutputDescription]
outputDescriptions :: Prelude.Maybe [OutputDescription],
AddApplicationOutputResponse -> Maybe Natural
applicationVersionId :: Prelude.Maybe Prelude.Natural,
AddApplicationOutputResponse -> Int
httpStatus :: Prelude.Int
}
deriving (AddApplicationOutputResponse
-> AddApplicationOutputResponse -> Bool
(AddApplicationOutputResponse
-> AddApplicationOutputResponse -> Bool)
-> (AddApplicationOutputResponse
-> AddApplicationOutputResponse -> Bool)
-> Eq AddApplicationOutputResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AddApplicationOutputResponse
-> AddApplicationOutputResponse -> Bool
$c/= :: AddApplicationOutputResponse
-> AddApplicationOutputResponse -> Bool
== :: AddApplicationOutputResponse
-> AddApplicationOutputResponse -> Bool
$c== :: AddApplicationOutputResponse
-> AddApplicationOutputResponse -> Bool
Prelude.Eq, ReadPrec [AddApplicationOutputResponse]
ReadPrec AddApplicationOutputResponse
Int -> ReadS AddApplicationOutputResponse
ReadS [AddApplicationOutputResponse]
(Int -> ReadS AddApplicationOutputResponse)
-> ReadS [AddApplicationOutputResponse]
-> ReadPrec AddApplicationOutputResponse
-> ReadPrec [AddApplicationOutputResponse]
-> Read AddApplicationOutputResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AddApplicationOutputResponse]
$creadListPrec :: ReadPrec [AddApplicationOutputResponse]
readPrec :: ReadPrec AddApplicationOutputResponse
$creadPrec :: ReadPrec AddApplicationOutputResponse
readList :: ReadS [AddApplicationOutputResponse]
$creadList :: ReadS [AddApplicationOutputResponse]
readsPrec :: Int -> ReadS AddApplicationOutputResponse
$creadsPrec :: Int -> ReadS AddApplicationOutputResponse
Prelude.Read, Int -> AddApplicationOutputResponse -> ShowS
[AddApplicationOutputResponse] -> ShowS
AddApplicationOutputResponse -> String
(Int -> AddApplicationOutputResponse -> ShowS)
-> (AddApplicationOutputResponse -> String)
-> ([AddApplicationOutputResponse] -> ShowS)
-> Show AddApplicationOutputResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AddApplicationOutputResponse] -> ShowS
$cshowList :: [AddApplicationOutputResponse] -> ShowS
show :: AddApplicationOutputResponse -> String
$cshow :: AddApplicationOutputResponse -> String
showsPrec :: Int -> AddApplicationOutputResponse -> ShowS
$cshowsPrec :: Int -> AddApplicationOutputResponse -> ShowS
Prelude.Show, (forall x.
AddApplicationOutputResponse -> Rep AddApplicationOutputResponse x)
-> (forall x.
Rep AddApplicationOutputResponse x -> AddApplicationOutputResponse)
-> Generic AddApplicationOutputResponse
forall x.
Rep AddApplicationOutputResponse x -> AddApplicationOutputResponse
forall x.
AddApplicationOutputResponse -> Rep AddApplicationOutputResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AddApplicationOutputResponse x -> AddApplicationOutputResponse
$cfrom :: forall x.
AddApplicationOutputResponse -> Rep AddApplicationOutputResponse x
Prelude.Generic)
newAddApplicationOutputResponse ::
Prelude.Int ->
AddApplicationOutputResponse
newAddApplicationOutputResponse :: Int -> AddApplicationOutputResponse
newAddApplicationOutputResponse Int
pHttpStatus_ =
AddApplicationOutputResponse' :: Maybe Text
-> Maybe [OutputDescription]
-> Maybe Natural
-> Int
-> AddApplicationOutputResponse
AddApplicationOutputResponse'
{ $sel:applicationARN:AddApplicationOutputResponse' :: Maybe Text
applicationARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:outputDescriptions:AddApplicationOutputResponse' :: Maybe [OutputDescription]
outputDescriptions = Maybe [OutputDescription]
forall a. Maybe a
Prelude.Nothing,
$sel:applicationVersionId:AddApplicationOutputResponse' :: Maybe Natural
applicationVersionId = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AddApplicationOutputResponse' :: Int
httpStatus = Int
pHttpStatus_
}
addApplicationOutputResponse_applicationARN :: Lens.Lens' AddApplicationOutputResponse (Prelude.Maybe Prelude.Text)
addApplicationOutputResponse_applicationARN :: (Maybe Text -> f (Maybe Text))
-> AddApplicationOutputResponse -> f AddApplicationOutputResponse
addApplicationOutputResponse_applicationARN = (AddApplicationOutputResponse -> Maybe Text)
-> (AddApplicationOutputResponse
-> Maybe Text -> AddApplicationOutputResponse)
-> Lens
AddApplicationOutputResponse
AddApplicationOutputResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddApplicationOutputResponse' {Maybe Text
applicationARN :: Maybe Text
$sel:applicationARN:AddApplicationOutputResponse' :: AddApplicationOutputResponse -> Maybe Text
applicationARN} -> Maybe Text
applicationARN) (\s :: AddApplicationOutputResponse
s@AddApplicationOutputResponse' {} Maybe Text
a -> AddApplicationOutputResponse
s {$sel:applicationARN:AddApplicationOutputResponse' :: Maybe Text
applicationARN = Maybe Text
a} :: AddApplicationOutputResponse)
addApplicationOutputResponse_outputDescriptions :: Lens.Lens' AddApplicationOutputResponse (Prelude.Maybe [OutputDescription])
addApplicationOutputResponse_outputDescriptions :: (Maybe [OutputDescription] -> f (Maybe [OutputDescription]))
-> AddApplicationOutputResponse -> f AddApplicationOutputResponse
addApplicationOutputResponse_outputDescriptions = (AddApplicationOutputResponse -> Maybe [OutputDescription])
-> (AddApplicationOutputResponse
-> Maybe [OutputDescription] -> AddApplicationOutputResponse)
-> Lens
AddApplicationOutputResponse
AddApplicationOutputResponse
(Maybe [OutputDescription])
(Maybe [OutputDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddApplicationOutputResponse' {Maybe [OutputDescription]
outputDescriptions :: Maybe [OutputDescription]
$sel:outputDescriptions:AddApplicationOutputResponse' :: AddApplicationOutputResponse -> Maybe [OutputDescription]
outputDescriptions} -> Maybe [OutputDescription]
outputDescriptions) (\s :: AddApplicationOutputResponse
s@AddApplicationOutputResponse' {} Maybe [OutputDescription]
a -> AddApplicationOutputResponse
s {$sel:outputDescriptions:AddApplicationOutputResponse' :: Maybe [OutputDescription]
outputDescriptions = Maybe [OutputDescription]
a} :: AddApplicationOutputResponse) ((Maybe [OutputDescription] -> f (Maybe [OutputDescription]))
-> AddApplicationOutputResponse -> f AddApplicationOutputResponse)
-> ((Maybe [OutputDescription] -> f (Maybe [OutputDescription]))
-> Maybe [OutputDescription] -> f (Maybe [OutputDescription]))
-> (Maybe [OutputDescription] -> f (Maybe [OutputDescription]))
-> AddApplicationOutputResponse
-> f AddApplicationOutputResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OutputDescription]
[OutputDescription]
[OutputDescription]
[OutputDescription]
-> Iso
(Maybe [OutputDescription])
(Maybe [OutputDescription])
(Maybe [OutputDescription])
(Maybe [OutputDescription])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[OutputDescription]
[OutputDescription]
[OutputDescription]
[OutputDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
addApplicationOutputResponse_applicationVersionId :: Lens.Lens' AddApplicationOutputResponse (Prelude.Maybe Prelude.Natural)
addApplicationOutputResponse_applicationVersionId :: (Maybe Natural -> f (Maybe Natural))
-> AddApplicationOutputResponse -> f AddApplicationOutputResponse
addApplicationOutputResponse_applicationVersionId = (AddApplicationOutputResponse -> Maybe Natural)
-> (AddApplicationOutputResponse
-> Maybe Natural -> AddApplicationOutputResponse)
-> Lens
AddApplicationOutputResponse
AddApplicationOutputResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddApplicationOutputResponse' {Maybe Natural
applicationVersionId :: Maybe Natural
$sel:applicationVersionId:AddApplicationOutputResponse' :: AddApplicationOutputResponse -> Maybe Natural
applicationVersionId} -> Maybe Natural
applicationVersionId) (\s :: AddApplicationOutputResponse
s@AddApplicationOutputResponse' {} Maybe Natural
a -> AddApplicationOutputResponse
s {$sel:applicationVersionId:AddApplicationOutputResponse' :: Maybe Natural
applicationVersionId = Maybe Natural
a} :: AddApplicationOutputResponse)
addApplicationOutputResponse_httpStatus :: Lens.Lens' AddApplicationOutputResponse Prelude.Int
addApplicationOutputResponse_httpStatus :: (Int -> f Int)
-> AddApplicationOutputResponse -> f AddApplicationOutputResponse
addApplicationOutputResponse_httpStatus = (AddApplicationOutputResponse -> Int)
-> (AddApplicationOutputResponse
-> Int -> AddApplicationOutputResponse)
-> Lens
AddApplicationOutputResponse AddApplicationOutputResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddApplicationOutputResponse' {Int
httpStatus :: Int
$sel:httpStatus:AddApplicationOutputResponse' :: AddApplicationOutputResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AddApplicationOutputResponse
s@AddApplicationOutputResponse' {} Int
a -> AddApplicationOutputResponse
s {$sel:httpStatus:AddApplicationOutputResponse' :: Int
httpStatus = Int
a} :: AddApplicationOutputResponse)
instance Prelude.NFData AddApplicationOutputResponse