{-# 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.IoTEventsData.BatchAcknowledgeAlarm
(
BatchAcknowledgeAlarm (..),
newBatchAcknowledgeAlarm,
batchAcknowledgeAlarm_acknowledgeActionRequests,
BatchAcknowledgeAlarmResponse (..),
newBatchAcknowledgeAlarmResponse,
batchAcknowledgeAlarmResponse_errorEntries,
batchAcknowledgeAlarmResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTEventsData.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 BatchAcknowledgeAlarm = BatchAcknowledgeAlarm'
{
BatchAcknowledgeAlarm -> NonEmpty AcknowledgeAlarmActionRequest
acknowledgeActionRequests :: Prelude.NonEmpty AcknowledgeAlarmActionRequest
}
deriving (BatchAcknowledgeAlarm -> BatchAcknowledgeAlarm -> Bool
(BatchAcknowledgeAlarm -> BatchAcknowledgeAlarm -> Bool)
-> (BatchAcknowledgeAlarm -> BatchAcknowledgeAlarm -> Bool)
-> Eq BatchAcknowledgeAlarm
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAcknowledgeAlarm -> BatchAcknowledgeAlarm -> Bool
$c/= :: BatchAcknowledgeAlarm -> BatchAcknowledgeAlarm -> Bool
== :: BatchAcknowledgeAlarm -> BatchAcknowledgeAlarm -> Bool
$c== :: BatchAcknowledgeAlarm -> BatchAcknowledgeAlarm -> Bool
Prelude.Eq, ReadPrec [BatchAcknowledgeAlarm]
ReadPrec BatchAcknowledgeAlarm
Int -> ReadS BatchAcknowledgeAlarm
ReadS [BatchAcknowledgeAlarm]
(Int -> ReadS BatchAcknowledgeAlarm)
-> ReadS [BatchAcknowledgeAlarm]
-> ReadPrec BatchAcknowledgeAlarm
-> ReadPrec [BatchAcknowledgeAlarm]
-> Read BatchAcknowledgeAlarm
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAcknowledgeAlarm]
$creadListPrec :: ReadPrec [BatchAcknowledgeAlarm]
readPrec :: ReadPrec BatchAcknowledgeAlarm
$creadPrec :: ReadPrec BatchAcknowledgeAlarm
readList :: ReadS [BatchAcknowledgeAlarm]
$creadList :: ReadS [BatchAcknowledgeAlarm]
readsPrec :: Int -> ReadS BatchAcknowledgeAlarm
$creadsPrec :: Int -> ReadS BatchAcknowledgeAlarm
Prelude.Read, Int -> BatchAcknowledgeAlarm -> ShowS
[BatchAcknowledgeAlarm] -> ShowS
BatchAcknowledgeAlarm -> String
(Int -> BatchAcknowledgeAlarm -> ShowS)
-> (BatchAcknowledgeAlarm -> String)
-> ([BatchAcknowledgeAlarm] -> ShowS)
-> Show BatchAcknowledgeAlarm
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAcknowledgeAlarm] -> ShowS
$cshowList :: [BatchAcknowledgeAlarm] -> ShowS
show :: BatchAcknowledgeAlarm -> String
$cshow :: BatchAcknowledgeAlarm -> String
showsPrec :: Int -> BatchAcknowledgeAlarm -> ShowS
$cshowsPrec :: Int -> BatchAcknowledgeAlarm -> ShowS
Prelude.Show, (forall x. BatchAcknowledgeAlarm -> Rep BatchAcknowledgeAlarm x)
-> (forall x. Rep BatchAcknowledgeAlarm x -> BatchAcknowledgeAlarm)
-> Generic BatchAcknowledgeAlarm
forall x. Rep BatchAcknowledgeAlarm x -> BatchAcknowledgeAlarm
forall x. BatchAcknowledgeAlarm -> Rep BatchAcknowledgeAlarm x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchAcknowledgeAlarm x -> BatchAcknowledgeAlarm
$cfrom :: forall x. BatchAcknowledgeAlarm -> Rep BatchAcknowledgeAlarm x
Prelude.Generic)
newBatchAcknowledgeAlarm ::
Prelude.NonEmpty AcknowledgeAlarmActionRequest ->
BatchAcknowledgeAlarm
newBatchAcknowledgeAlarm :: NonEmpty AcknowledgeAlarmActionRequest -> BatchAcknowledgeAlarm
newBatchAcknowledgeAlarm NonEmpty AcknowledgeAlarmActionRequest
pAcknowledgeActionRequests_ =
BatchAcknowledgeAlarm' :: NonEmpty AcknowledgeAlarmActionRequest -> BatchAcknowledgeAlarm
BatchAcknowledgeAlarm'
{ $sel:acknowledgeActionRequests:BatchAcknowledgeAlarm' :: NonEmpty AcknowledgeAlarmActionRequest
acknowledgeActionRequests =
Tagged
(NonEmpty AcknowledgeAlarmActionRequest)
(Identity (NonEmpty AcknowledgeAlarmActionRequest))
-> Tagged
(NonEmpty AcknowledgeAlarmActionRequest)
(Identity (NonEmpty AcknowledgeAlarmActionRequest))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged
(NonEmpty AcknowledgeAlarmActionRequest)
(Identity (NonEmpty AcknowledgeAlarmActionRequest))
-> Tagged
(NonEmpty AcknowledgeAlarmActionRequest)
(Identity (NonEmpty AcknowledgeAlarmActionRequest)))
-> NonEmpty AcknowledgeAlarmActionRequest
-> NonEmpty AcknowledgeAlarmActionRequest
forall t b. AReview t b -> b -> t
Lens.# NonEmpty AcknowledgeAlarmActionRequest
pAcknowledgeActionRequests_
}
batchAcknowledgeAlarm_acknowledgeActionRequests :: Lens.Lens' BatchAcknowledgeAlarm (Prelude.NonEmpty AcknowledgeAlarmActionRequest)
batchAcknowledgeAlarm_acknowledgeActionRequests :: (NonEmpty AcknowledgeAlarmActionRequest
-> f (NonEmpty AcknowledgeAlarmActionRequest))
-> BatchAcknowledgeAlarm -> f BatchAcknowledgeAlarm
batchAcknowledgeAlarm_acknowledgeActionRequests = (BatchAcknowledgeAlarm -> NonEmpty AcknowledgeAlarmActionRequest)
-> (BatchAcknowledgeAlarm
-> NonEmpty AcknowledgeAlarmActionRequest -> BatchAcknowledgeAlarm)
-> Lens
BatchAcknowledgeAlarm
BatchAcknowledgeAlarm
(NonEmpty AcknowledgeAlarmActionRequest)
(NonEmpty AcknowledgeAlarmActionRequest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAcknowledgeAlarm' {NonEmpty AcknowledgeAlarmActionRequest
acknowledgeActionRequests :: NonEmpty AcknowledgeAlarmActionRequest
$sel:acknowledgeActionRequests:BatchAcknowledgeAlarm' :: BatchAcknowledgeAlarm -> NonEmpty AcknowledgeAlarmActionRequest
acknowledgeActionRequests} -> NonEmpty AcknowledgeAlarmActionRequest
acknowledgeActionRequests) (\s :: BatchAcknowledgeAlarm
s@BatchAcknowledgeAlarm' {} NonEmpty AcknowledgeAlarmActionRequest
a -> BatchAcknowledgeAlarm
s {$sel:acknowledgeActionRequests:BatchAcknowledgeAlarm' :: NonEmpty AcknowledgeAlarmActionRequest
acknowledgeActionRequests = NonEmpty AcknowledgeAlarmActionRequest
a} :: BatchAcknowledgeAlarm) ((NonEmpty AcknowledgeAlarmActionRequest
-> f (NonEmpty AcknowledgeAlarmActionRequest))
-> BatchAcknowledgeAlarm -> f BatchAcknowledgeAlarm)
-> ((NonEmpty AcknowledgeAlarmActionRequest
-> f (NonEmpty AcknowledgeAlarmActionRequest))
-> NonEmpty AcknowledgeAlarmActionRequest
-> f (NonEmpty AcknowledgeAlarmActionRequest))
-> (NonEmpty AcknowledgeAlarmActionRequest
-> f (NonEmpty AcknowledgeAlarmActionRequest))
-> BatchAcknowledgeAlarm
-> f BatchAcknowledgeAlarm
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty AcknowledgeAlarmActionRequest
-> f (NonEmpty AcknowledgeAlarmActionRequest))
-> NonEmpty AcknowledgeAlarmActionRequest
-> f (NonEmpty AcknowledgeAlarmActionRequest)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest BatchAcknowledgeAlarm where
type
AWSResponse BatchAcknowledgeAlarm =
BatchAcknowledgeAlarmResponse
request :: BatchAcknowledgeAlarm -> Request BatchAcknowledgeAlarm
request = Service -> BatchAcknowledgeAlarm -> Request BatchAcknowledgeAlarm
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchAcknowledgeAlarm
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchAcknowledgeAlarm)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse BatchAcknowledgeAlarm))
-> Logger
-> Service
-> Proxy BatchAcknowledgeAlarm
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchAcknowledgeAlarm)))
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 [BatchAlarmActionErrorEntry]
-> Int -> BatchAcknowledgeAlarmResponse
BatchAcknowledgeAlarmResponse'
(Maybe [BatchAlarmActionErrorEntry]
-> Int -> BatchAcknowledgeAlarmResponse)
-> Either String (Maybe [BatchAlarmActionErrorEntry])
-> Either String (Int -> BatchAcknowledgeAlarmResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Key
-> Either String (Maybe (Maybe [BatchAlarmActionErrorEntry]))
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"errorEntries" Either String (Maybe (Maybe [BatchAlarmActionErrorEntry]))
-> Maybe [BatchAlarmActionErrorEntry]
-> Either String (Maybe [BatchAlarmActionErrorEntry])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BatchAlarmActionErrorEntry]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> BatchAcknowledgeAlarmResponse)
-> Either String Int -> Either String BatchAcknowledgeAlarmResponse
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 BatchAcknowledgeAlarm
instance Prelude.NFData BatchAcknowledgeAlarm
instance Core.ToHeaders BatchAcknowledgeAlarm where
toHeaders :: BatchAcknowledgeAlarm -> ResponseHeaders
toHeaders = ResponseHeaders -> BatchAcknowledgeAlarm -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON BatchAcknowledgeAlarm where
toJSON :: BatchAcknowledgeAlarm -> Value
toJSON BatchAcknowledgeAlarm' {NonEmpty AcknowledgeAlarmActionRequest
acknowledgeActionRequests :: NonEmpty AcknowledgeAlarmActionRequest
$sel:acknowledgeActionRequests:BatchAcknowledgeAlarm' :: BatchAcknowledgeAlarm -> NonEmpty AcknowledgeAlarmActionRequest
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Key
"acknowledgeActionRequests"
Key -> NonEmpty AcknowledgeAlarmActionRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Core..= NonEmpty AcknowledgeAlarmActionRequest
acknowledgeActionRequests
)
]
)
instance Core.ToPath BatchAcknowledgeAlarm where
toPath :: BatchAcknowledgeAlarm -> ByteString
toPath = ByteString -> BatchAcknowledgeAlarm -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/alarms/acknowledge"
instance Core.ToQuery BatchAcknowledgeAlarm where
toQuery :: BatchAcknowledgeAlarm -> QueryString
toQuery = QueryString -> BatchAcknowledgeAlarm -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchAcknowledgeAlarmResponse = BatchAcknowledgeAlarmResponse'
{
BatchAcknowledgeAlarmResponse -> Maybe [BatchAlarmActionErrorEntry]
errorEntries :: Prelude.Maybe [BatchAlarmActionErrorEntry],
BatchAcknowledgeAlarmResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchAcknowledgeAlarmResponse
-> BatchAcknowledgeAlarmResponse -> Bool
(BatchAcknowledgeAlarmResponse
-> BatchAcknowledgeAlarmResponse -> Bool)
-> (BatchAcknowledgeAlarmResponse
-> BatchAcknowledgeAlarmResponse -> Bool)
-> Eq BatchAcknowledgeAlarmResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAcknowledgeAlarmResponse
-> BatchAcknowledgeAlarmResponse -> Bool
$c/= :: BatchAcknowledgeAlarmResponse
-> BatchAcknowledgeAlarmResponse -> Bool
== :: BatchAcknowledgeAlarmResponse
-> BatchAcknowledgeAlarmResponse -> Bool
$c== :: BatchAcknowledgeAlarmResponse
-> BatchAcknowledgeAlarmResponse -> Bool
Prelude.Eq, ReadPrec [BatchAcknowledgeAlarmResponse]
ReadPrec BatchAcknowledgeAlarmResponse
Int -> ReadS BatchAcknowledgeAlarmResponse
ReadS [BatchAcknowledgeAlarmResponse]
(Int -> ReadS BatchAcknowledgeAlarmResponse)
-> ReadS [BatchAcknowledgeAlarmResponse]
-> ReadPrec BatchAcknowledgeAlarmResponse
-> ReadPrec [BatchAcknowledgeAlarmResponse]
-> Read BatchAcknowledgeAlarmResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAcknowledgeAlarmResponse]
$creadListPrec :: ReadPrec [BatchAcknowledgeAlarmResponse]
readPrec :: ReadPrec BatchAcknowledgeAlarmResponse
$creadPrec :: ReadPrec BatchAcknowledgeAlarmResponse
readList :: ReadS [BatchAcknowledgeAlarmResponse]
$creadList :: ReadS [BatchAcknowledgeAlarmResponse]
readsPrec :: Int -> ReadS BatchAcknowledgeAlarmResponse
$creadsPrec :: Int -> ReadS BatchAcknowledgeAlarmResponse
Prelude.Read, Int -> BatchAcknowledgeAlarmResponse -> ShowS
[BatchAcknowledgeAlarmResponse] -> ShowS
BatchAcknowledgeAlarmResponse -> String
(Int -> BatchAcknowledgeAlarmResponse -> ShowS)
-> (BatchAcknowledgeAlarmResponse -> String)
-> ([BatchAcknowledgeAlarmResponse] -> ShowS)
-> Show BatchAcknowledgeAlarmResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAcknowledgeAlarmResponse] -> ShowS
$cshowList :: [BatchAcknowledgeAlarmResponse] -> ShowS
show :: BatchAcknowledgeAlarmResponse -> String
$cshow :: BatchAcknowledgeAlarmResponse -> String
showsPrec :: Int -> BatchAcknowledgeAlarmResponse -> ShowS
$cshowsPrec :: Int -> BatchAcknowledgeAlarmResponse -> ShowS
Prelude.Show, (forall x.
BatchAcknowledgeAlarmResponse
-> Rep BatchAcknowledgeAlarmResponse x)
-> (forall x.
Rep BatchAcknowledgeAlarmResponse x
-> BatchAcknowledgeAlarmResponse)
-> Generic BatchAcknowledgeAlarmResponse
forall x.
Rep BatchAcknowledgeAlarmResponse x
-> BatchAcknowledgeAlarmResponse
forall x.
BatchAcknowledgeAlarmResponse
-> Rep BatchAcknowledgeAlarmResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAcknowledgeAlarmResponse x
-> BatchAcknowledgeAlarmResponse
$cfrom :: forall x.
BatchAcknowledgeAlarmResponse
-> Rep BatchAcknowledgeAlarmResponse x
Prelude.Generic)
newBatchAcknowledgeAlarmResponse ::
Prelude.Int ->
BatchAcknowledgeAlarmResponse
newBatchAcknowledgeAlarmResponse :: Int -> BatchAcknowledgeAlarmResponse
newBatchAcknowledgeAlarmResponse Int
pHttpStatus_ =
BatchAcknowledgeAlarmResponse' :: Maybe [BatchAlarmActionErrorEntry]
-> Int -> BatchAcknowledgeAlarmResponse
BatchAcknowledgeAlarmResponse'
{ $sel:errorEntries:BatchAcknowledgeAlarmResponse' :: Maybe [BatchAlarmActionErrorEntry]
errorEntries =
Maybe [BatchAlarmActionErrorEntry]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchAcknowledgeAlarmResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchAcknowledgeAlarmResponse_errorEntries :: Lens.Lens' BatchAcknowledgeAlarmResponse (Prelude.Maybe [BatchAlarmActionErrorEntry])
batchAcknowledgeAlarmResponse_errorEntries :: (Maybe [BatchAlarmActionErrorEntry]
-> f (Maybe [BatchAlarmActionErrorEntry]))
-> BatchAcknowledgeAlarmResponse -> f BatchAcknowledgeAlarmResponse
batchAcknowledgeAlarmResponse_errorEntries = (BatchAcknowledgeAlarmResponse
-> Maybe [BatchAlarmActionErrorEntry])
-> (BatchAcknowledgeAlarmResponse
-> Maybe [BatchAlarmActionErrorEntry]
-> BatchAcknowledgeAlarmResponse)
-> Lens
BatchAcknowledgeAlarmResponse
BatchAcknowledgeAlarmResponse
(Maybe [BatchAlarmActionErrorEntry])
(Maybe [BatchAlarmActionErrorEntry])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAcknowledgeAlarmResponse' {Maybe [BatchAlarmActionErrorEntry]
errorEntries :: Maybe [BatchAlarmActionErrorEntry]
$sel:errorEntries:BatchAcknowledgeAlarmResponse' :: BatchAcknowledgeAlarmResponse -> Maybe [BatchAlarmActionErrorEntry]
errorEntries} -> Maybe [BatchAlarmActionErrorEntry]
errorEntries) (\s :: BatchAcknowledgeAlarmResponse
s@BatchAcknowledgeAlarmResponse' {} Maybe [BatchAlarmActionErrorEntry]
a -> BatchAcknowledgeAlarmResponse
s {$sel:errorEntries:BatchAcknowledgeAlarmResponse' :: Maybe [BatchAlarmActionErrorEntry]
errorEntries = Maybe [BatchAlarmActionErrorEntry]
a} :: BatchAcknowledgeAlarmResponse) ((Maybe [BatchAlarmActionErrorEntry]
-> f (Maybe [BatchAlarmActionErrorEntry]))
-> BatchAcknowledgeAlarmResponse
-> f BatchAcknowledgeAlarmResponse)
-> ((Maybe [BatchAlarmActionErrorEntry]
-> f (Maybe [BatchAlarmActionErrorEntry]))
-> Maybe [BatchAlarmActionErrorEntry]
-> f (Maybe [BatchAlarmActionErrorEntry]))
-> (Maybe [BatchAlarmActionErrorEntry]
-> f (Maybe [BatchAlarmActionErrorEntry]))
-> BatchAcknowledgeAlarmResponse
-> f BatchAcknowledgeAlarmResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[BatchAlarmActionErrorEntry]
[BatchAlarmActionErrorEntry]
[BatchAlarmActionErrorEntry]
[BatchAlarmActionErrorEntry]
-> Iso
(Maybe [BatchAlarmActionErrorEntry])
(Maybe [BatchAlarmActionErrorEntry])
(Maybe [BatchAlarmActionErrorEntry])
(Maybe [BatchAlarmActionErrorEntry])
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
[BatchAlarmActionErrorEntry]
[BatchAlarmActionErrorEntry]
[BatchAlarmActionErrorEntry]
[BatchAlarmActionErrorEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchAcknowledgeAlarmResponse_httpStatus :: Lens.Lens' BatchAcknowledgeAlarmResponse Prelude.Int
batchAcknowledgeAlarmResponse_httpStatus :: (Int -> f Int)
-> BatchAcknowledgeAlarmResponse -> f BatchAcknowledgeAlarmResponse
batchAcknowledgeAlarmResponse_httpStatus = (BatchAcknowledgeAlarmResponse -> Int)
-> (BatchAcknowledgeAlarmResponse
-> Int -> BatchAcknowledgeAlarmResponse)
-> Lens
BatchAcknowledgeAlarmResponse BatchAcknowledgeAlarmResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAcknowledgeAlarmResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchAcknowledgeAlarmResponse' :: BatchAcknowledgeAlarmResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchAcknowledgeAlarmResponse
s@BatchAcknowledgeAlarmResponse' {} Int
a -> BatchAcknowledgeAlarmResponse
s {$sel:httpStatus:BatchAcknowledgeAlarmResponse' :: Int
httpStatus = Int
a} :: BatchAcknowledgeAlarmResponse)
instance Prelude.NFData BatchAcknowledgeAlarmResponse