{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTEventsData.BatchAcknowledgeAlarm
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Acknowledges one or more alarms. The alarms change to the @ACKNOWLEDGED@
-- state after you acknowledge them.
module Amazonka.IoTEventsData.BatchAcknowledgeAlarm
  ( -- * Creating a Request
    BatchAcknowledgeAlarm (..),
    newBatchAcknowledgeAlarm,

    -- * Request Lenses
    batchAcknowledgeAlarm_acknowledgeActionRequests,

    -- * Destructuring the Response
    BatchAcknowledgeAlarmResponse (..),
    newBatchAcknowledgeAlarmResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newBatchAcknowledgeAlarm' smart constructor.
data BatchAcknowledgeAlarm = BatchAcknowledgeAlarm'
  { -- | The list of acknowledge action requests. You can specify up to 10
    -- requests per operation.
    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)

-- |
-- Create a value of 'BatchAcknowledgeAlarm' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'acknowledgeActionRequests', 'batchAcknowledgeAlarm_acknowledgeActionRequests' - The list of acknowledge action requests. You can specify up to 10
-- requests per operation.
newBatchAcknowledgeAlarm ::
  -- | 'acknowledgeActionRequests'
  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_
    }

-- | The list of acknowledge action requests. You can specify up to 10
-- requests per operation.
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

-- | /See:/ 'newBatchAcknowledgeAlarmResponse' smart constructor.
data BatchAcknowledgeAlarmResponse = BatchAcknowledgeAlarmResponse'
  { -- | A list of errors associated with the request, or @null@ if there are no
    -- errors. Each error entry contains an entry ID that helps you identify
    -- the entry that failed.
    BatchAcknowledgeAlarmResponse -> Maybe [BatchAlarmActionErrorEntry]
errorEntries :: Prelude.Maybe [BatchAlarmActionErrorEntry],
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'BatchAcknowledgeAlarmResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'errorEntries', 'batchAcknowledgeAlarmResponse_errorEntries' - A list of errors associated with the request, or @null@ if there are no
-- errors. Each error entry contains an entry ID that helps you identify
-- the entry that failed.
--
-- 'httpStatus', 'batchAcknowledgeAlarmResponse_httpStatus' - The response's http status code.
newBatchAcknowledgeAlarmResponse ::
  -- | 'httpStatus'
  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_
    }

-- | A list of errors associated with the request, or @null@ if there are no
-- errors. Each error entry contains an entry ID that helps you identify
-- the entry that failed.
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

-- | The response's http status code.
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