{-# 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.WellArchitected.ListNotifications
-- 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)
--
-- List lens notifications.
module Amazonka.WellArchitected.ListNotifications
  ( -- * Creating a Request
    ListNotifications (..),
    newListNotifications,

    -- * Request Lenses
    listNotifications_nextToken,
    listNotifications_workloadId,
    listNotifications_maxResults,

    -- * Destructuring the Response
    ListNotificationsResponse (..),
    newListNotificationsResponse,

    -- * Response Lenses
    listNotificationsResponse_notificationSummaries,
    listNotificationsResponse_nextToken,
    listNotificationsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WellArchitected.Types

-- | /See:/ 'newListNotifications' smart constructor.
data ListNotifications = ListNotifications'
  { ListNotifications -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    ListNotifications -> Maybe Text
workloadId :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return for this request.
    ListNotifications -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListNotifications -> ListNotifications -> Bool
(ListNotifications -> ListNotifications -> Bool)
-> (ListNotifications -> ListNotifications -> Bool)
-> Eq ListNotifications
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListNotifications -> ListNotifications -> Bool
$c/= :: ListNotifications -> ListNotifications -> Bool
== :: ListNotifications -> ListNotifications -> Bool
$c== :: ListNotifications -> ListNotifications -> Bool
Prelude.Eq, ReadPrec [ListNotifications]
ReadPrec ListNotifications
Int -> ReadS ListNotifications
ReadS [ListNotifications]
(Int -> ReadS ListNotifications)
-> ReadS [ListNotifications]
-> ReadPrec ListNotifications
-> ReadPrec [ListNotifications]
-> Read ListNotifications
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListNotifications]
$creadListPrec :: ReadPrec [ListNotifications]
readPrec :: ReadPrec ListNotifications
$creadPrec :: ReadPrec ListNotifications
readList :: ReadS [ListNotifications]
$creadList :: ReadS [ListNotifications]
readsPrec :: Int -> ReadS ListNotifications
$creadsPrec :: Int -> ReadS ListNotifications
Prelude.Read, Int -> ListNotifications -> ShowS
[ListNotifications] -> ShowS
ListNotifications -> String
(Int -> ListNotifications -> ShowS)
-> (ListNotifications -> String)
-> ([ListNotifications] -> ShowS)
-> Show ListNotifications
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListNotifications] -> ShowS
$cshowList :: [ListNotifications] -> ShowS
show :: ListNotifications -> String
$cshow :: ListNotifications -> String
showsPrec :: Int -> ListNotifications -> ShowS
$cshowsPrec :: Int -> ListNotifications -> ShowS
Prelude.Show, (forall x. ListNotifications -> Rep ListNotifications x)
-> (forall x. Rep ListNotifications x -> ListNotifications)
-> Generic ListNotifications
forall x. Rep ListNotifications x -> ListNotifications
forall x. ListNotifications -> Rep ListNotifications x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListNotifications x -> ListNotifications
$cfrom :: forall x. ListNotifications -> Rep ListNotifications x
Prelude.Generic)

-- |
-- Create a value of 'ListNotifications' 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:
--
-- 'nextToken', 'listNotifications_nextToken' - Undocumented member.
--
-- 'workloadId', 'listNotifications_workloadId' - Undocumented member.
--
-- 'maxResults', 'listNotifications_maxResults' - The maximum number of results to return for this request.
newListNotifications ::
  ListNotifications
newListNotifications :: ListNotifications
newListNotifications =
  ListNotifications' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListNotifications
ListNotifications'
    { $sel:nextToken:ListNotifications' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:workloadId:ListNotifications' :: Maybe Text
workloadId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListNotifications' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
listNotifications_nextToken :: Lens.Lens' ListNotifications (Prelude.Maybe Prelude.Text)
listNotifications_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListNotifications -> f ListNotifications
listNotifications_nextToken = (ListNotifications -> Maybe Text)
-> (ListNotifications -> Maybe Text -> ListNotifications)
-> Lens
     ListNotifications ListNotifications (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNotifications' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListNotifications' :: ListNotifications -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListNotifications
s@ListNotifications' {} Maybe Text
a -> ListNotifications
s {$sel:nextToken:ListNotifications' :: Maybe Text
nextToken = Maybe Text
a} :: ListNotifications)

-- | Undocumented member.
listNotifications_workloadId :: Lens.Lens' ListNotifications (Prelude.Maybe Prelude.Text)
listNotifications_workloadId :: (Maybe Text -> f (Maybe Text))
-> ListNotifications -> f ListNotifications
listNotifications_workloadId = (ListNotifications -> Maybe Text)
-> (ListNotifications -> Maybe Text -> ListNotifications)
-> Lens
     ListNotifications ListNotifications (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNotifications' {Maybe Text
workloadId :: Maybe Text
$sel:workloadId:ListNotifications' :: ListNotifications -> Maybe Text
workloadId} -> Maybe Text
workloadId) (\s :: ListNotifications
s@ListNotifications' {} Maybe Text
a -> ListNotifications
s {$sel:workloadId:ListNotifications' :: Maybe Text
workloadId = Maybe Text
a} :: ListNotifications)

-- | The maximum number of results to return for this request.
listNotifications_maxResults :: Lens.Lens' ListNotifications (Prelude.Maybe Prelude.Natural)
listNotifications_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListNotifications -> f ListNotifications
listNotifications_maxResults = (ListNotifications -> Maybe Natural)
-> (ListNotifications -> Maybe Natural -> ListNotifications)
-> Lens
     ListNotifications ListNotifications (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNotifications' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListNotifications' :: ListNotifications -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListNotifications
s@ListNotifications' {} Maybe Natural
a -> ListNotifications
s {$sel:maxResults:ListNotifications' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListNotifications)

instance Core.AWSRequest ListNotifications where
  type
    AWSResponse ListNotifications =
      ListNotificationsResponse
  request :: ListNotifications -> Request ListNotifications
request = Service -> ListNotifications -> Request ListNotifications
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListNotifications
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListNotifications)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListNotifications))
-> Logger
-> Service
-> Proxy ListNotifications
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListNotifications)))
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 [NotificationSummary]
-> Maybe Text -> Int -> ListNotificationsResponse
ListNotificationsResponse'
            (Maybe [NotificationSummary]
 -> Maybe Text -> Int -> ListNotificationsResponse)
-> Either String (Maybe [NotificationSummary])
-> Either String (Maybe Text -> Int -> ListNotificationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [NotificationSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NotificationSummaries"
                            Either String (Maybe (Maybe [NotificationSummary]))
-> Maybe [NotificationSummary]
-> Either String (Maybe [NotificationSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [NotificationSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListNotificationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListNotificationsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"NextToken")
            Either String (Int -> ListNotificationsResponse)
-> Either String Int -> Either String ListNotificationsResponse
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 ListNotifications

instance Prelude.NFData ListNotifications

instance Core.ToHeaders ListNotifications where
  toHeaders :: ListNotifications -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListNotifications -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 ListNotifications where
  toJSON :: ListNotifications -> Value
toJSON ListNotifications' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
workloadId :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:ListNotifications' :: ListNotifications -> Maybe Natural
$sel:workloadId:ListNotifications' :: ListNotifications -> Maybe Text
$sel:nextToken:ListNotifications' :: ListNotifications -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"WorkloadId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
workloadId,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

instance Core.ToPath ListNotifications where
  toPath :: ListNotifications -> ByteString
toPath = ByteString -> ListNotifications -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/notifications"

instance Core.ToQuery ListNotifications where
  toQuery :: ListNotifications -> QueryString
toQuery = QueryString -> ListNotifications -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListNotificationsResponse' smart constructor.
data ListNotificationsResponse = ListNotificationsResponse'
  { -- | List of lens notification summaries in a workload.
    ListNotificationsResponse -> Maybe [NotificationSummary]
notificationSummaries :: Prelude.Maybe [NotificationSummary],
    ListNotificationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListNotificationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListNotificationsResponse -> ListNotificationsResponse -> Bool
(ListNotificationsResponse -> ListNotificationsResponse -> Bool)
-> (ListNotificationsResponse -> ListNotificationsResponse -> Bool)
-> Eq ListNotificationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListNotificationsResponse -> ListNotificationsResponse -> Bool
$c/= :: ListNotificationsResponse -> ListNotificationsResponse -> Bool
== :: ListNotificationsResponse -> ListNotificationsResponse -> Bool
$c== :: ListNotificationsResponse -> ListNotificationsResponse -> Bool
Prelude.Eq, ReadPrec [ListNotificationsResponse]
ReadPrec ListNotificationsResponse
Int -> ReadS ListNotificationsResponse
ReadS [ListNotificationsResponse]
(Int -> ReadS ListNotificationsResponse)
-> ReadS [ListNotificationsResponse]
-> ReadPrec ListNotificationsResponse
-> ReadPrec [ListNotificationsResponse]
-> Read ListNotificationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListNotificationsResponse]
$creadListPrec :: ReadPrec [ListNotificationsResponse]
readPrec :: ReadPrec ListNotificationsResponse
$creadPrec :: ReadPrec ListNotificationsResponse
readList :: ReadS [ListNotificationsResponse]
$creadList :: ReadS [ListNotificationsResponse]
readsPrec :: Int -> ReadS ListNotificationsResponse
$creadsPrec :: Int -> ReadS ListNotificationsResponse
Prelude.Read, Int -> ListNotificationsResponse -> ShowS
[ListNotificationsResponse] -> ShowS
ListNotificationsResponse -> String
(Int -> ListNotificationsResponse -> ShowS)
-> (ListNotificationsResponse -> String)
-> ([ListNotificationsResponse] -> ShowS)
-> Show ListNotificationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListNotificationsResponse] -> ShowS
$cshowList :: [ListNotificationsResponse] -> ShowS
show :: ListNotificationsResponse -> String
$cshow :: ListNotificationsResponse -> String
showsPrec :: Int -> ListNotificationsResponse -> ShowS
$cshowsPrec :: Int -> ListNotificationsResponse -> ShowS
Prelude.Show, (forall x.
 ListNotificationsResponse -> Rep ListNotificationsResponse x)
-> (forall x.
    Rep ListNotificationsResponse x -> ListNotificationsResponse)
-> Generic ListNotificationsResponse
forall x.
Rep ListNotificationsResponse x -> ListNotificationsResponse
forall x.
ListNotificationsResponse -> Rep ListNotificationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListNotificationsResponse x -> ListNotificationsResponse
$cfrom :: forall x.
ListNotificationsResponse -> Rep ListNotificationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListNotificationsResponse' 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:
--
-- 'notificationSummaries', 'listNotificationsResponse_notificationSummaries' - List of lens notification summaries in a workload.
--
-- 'nextToken', 'listNotificationsResponse_nextToken' - Undocumented member.
--
-- 'httpStatus', 'listNotificationsResponse_httpStatus' - The response's http status code.
newListNotificationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListNotificationsResponse
newListNotificationsResponse :: Int -> ListNotificationsResponse
newListNotificationsResponse Int
pHttpStatus_ =
  ListNotificationsResponse' :: Maybe [NotificationSummary]
-> Maybe Text -> Int -> ListNotificationsResponse
ListNotificationsResponse'
    { $sel:notificationSummaries:ListNotificationsResponse' :: Maybe [NotificationSummary]
notificationSummaries =
        Maybe [NotificationSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListNotificationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListNotificationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | List of lens notification summaries in a workload.
listNotificationsResponse_notificationSummaries :: Lens.Lens' ListNotificationsResponse (Prelude.Maybe [NotificationSummary])
listNotificationsResponse_notificationSummaries :: (Maybe [NotificationSummary] -> f (Maybe [NotificationSummary]))
-> ListNotificationsResponse -> f ListNotificationsResponse
listNotificationsResponse_notificationSummaries = (ListNotificationsResponse -> Maybe [NotificationSummary])
-> (ListNotificationsResponse
    -> Maybe [NotificationSummary] -> ListNotificationsResponse)
-> Lens
     ListNotificationsResponse
     ListNotificationsResponse
     (Maybe [NotificationSummary])
     (Maybe [NotificationSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNotificationsResponse' {Maybe [NotificationSummary]
notificationSummaries :: Maybe [NotificationSummary]
$sel:notificationSummaries:ListNotificationsResponse' :: ListNotificationsResponse -> Maybe [NotificationSummary]
notificationSummaries} -> Maybe [NotificationSummary]
notificationSummaries) (\s :: ListNotificationsResponse
s@ListNotificationsResponse' {} Maybe [NotificationSummary]
a -> ListNotificationsResponse
s {$sel:notificationSummaries:ListNotificationsResponse' :: Maybe [NotificationSummary]
notificationSummaries = Maybe [NotificationSummary]
a} :: ListNotificationsResponse) ((Maybe [NotificationSummary] -> f (Maybe [NotificationSummary]))
 -> ListNotificationsResponse -> f ListNotificationsResponse)
-> ((Maybe [NotificationSummary]
     -> f (Maybe [NotificationSummary]))
    -> Maybe [NotificationSummary] -> f (Maybe [NotificationSummary]))
-> (Maybe [NotificationSummary] -> f (Maybe [NotificationSummary]))
-> ListNotificationsResponse
-> f ListNotificationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [NotificationSummary]
  [NotificationSummary]
  [NotificationSummary]
  [NotificationSummary]
-> Iso
     (Maybe [NotificationSummary])
     (Maybe [NotificationSummary])
     (Maybe [NotificationSummary])
     (Maybe [NotificationSummary])
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
  [NotificationSummary]
  [NotificationSummary]
  [NotificationSummary]
  [NotificationSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
listNotificationsResponse_nextToken :: Lens.Lens' ListNotificationsResponse (Prelude.Maybe Prelude.Text)
listNotificationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListNotificationsResponse -> f ListNotificationsResponse
listNotificationsResponse_nextToken = (ListNotificationsResponse -> Maybe Text)
-> (ListNotificationsResponse
    -> Maybe Text -> ListNotificationsResponse)
-> Lens
     ListNotificationsResponse
     ListNotificationsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNotificationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListNotificationsResponse' :: ListNotificationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListNotificationsResponse
s@ListNotificationsResponse' {} Maybe Text
a -> ListNotificationsResponse
s {$sel:nextToken:ListNotificationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListNotificationsResponse)

-- | The response's http status code.
listNotificationsResponse_httpStatus :: Lens.Lens' ListNotificationsResponse Prelude.Int
listNotificationsResponse_httpStatus :: (Int -> f Int)
-> ListNotificationsResponse -> f ListNotificationsResponse
listNotificationsResponse_httpStatus = (ListNotificationsResponse -> Int)
-> (ListNotificationsResponse -> Int -> ListNotificationsResponse)
-> Lens ListNotificationsResponse ListNotificationsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNotificationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListNotificationsResponse' :: ListNotificationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListNotificationsResponse
s@ListNotificationsResponse' {} Int
a -> ListNotificationsResponse
s {$sel:httpStatus:ListNotificationsResponse' :: Int
httpStatus = Int
a} :: ListNotificationsResponse)

instance Prelude.NFData ListNotificationsResponse