{-# 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.CodeBuild.BatchGetReports
-- 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)
--
-- Returns an array of reports.
module Amazonka.CodeBuild.BatchGetReports
  ( -- * Creating a Request
    BatchGetReports (..),
    newBatchGetReports,

    -- * Request Lenses
    batchGetReports_reportArns,

    -- * Destructuring the Response
    BatchGetReportsResponse (..),
    newBatchGetReportsResponse,

    -- * Response Lenses
    batchGetReportsResponse_reports,
    batchGetReportsResponse_reportsNotFound,
    batchGetReportsResponse_httpStatus,
  )
where

import Amazonka.CodeBuild.Types
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

-- | /See:/ 'newBatchGetReports' smart constructor.
data BatchGetReports = BatchGetReports'
  { -- | An array of ARNs that identify the @Report@ objects to return.
    BatchGetReports -> NonEmpty Text
reportArns :: Prelude.NonEmpty Prelude.Text
  }
  deriving (BatchGetReports -> BatchGetReports -> Bool
(BatchGetReports -> BatchGetReports -> Bool)
-> (BatchGetReports -> BatchGetReports -> Bool)
-> Eq BatchGetReports
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetReports -> BatchGetReports -> Bool
$c/= :: BatchGetReports -> BatchGetReports -> Bool
== :: BatchGetReports -> BatchGetReports -> Bool
$c== :: BatchGetReports -> BatchGetReports -> Bool
Prelude.Eq, ReadPrec [BatchGetReports]
ReadPrec BatchGetReports
Int -> ReadS BatchGetReports
ReadS [BatchGetReports]
(Int -> ReadS BatchGetReports)
-> ReadS [BatchGetReports]
-> ReadPrec BatchGetReports
-> ReadPrec [BatchGetReports]
-> Read BatchGetReports
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetReports]
$creadListPrec :: ReadPrec [BatchGetReports]
readPrec :: ReadPrec BatchGetReports
$creadPrec :: ReadPrec BatchGetReports
readList :: ReadS [BatchGetReports]
$creadList :: ReadS [BatchGetReports]
readsPrec :: Int -> ReadS BatchGetReports
$creadsPrec :: Int -> ReadS BatchGetReports
Prelude.Read, Int -> BatchGetReports -> ShowS
[BatchGetReports] -> ShowS
BatchGetReports -> String
(Int -> BatchGetReports -> ShowS)
-> (BatchGetReports -> String)
-> ([BatchGetReports] -> ShowS)
-> Show BatchGetReports
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetReports] -> ShowS
$cshowList :: [BatchGetReports] -> ShowS
show :: BatchGetReports -> String
$cshow :: BatchGetReports -> String
showsPrec :: Int -> BatchGetReports -> ShowS
$cshowsPrec :: Int -> BatchGetReports -> ShowS
Prelude.Show, (forall x. BatchGetReports -> Rep BatchGetReports x)
-> (forall x. Rep BatchGetReports x -> BatchGetReports)
-> Generic BatchGetReports
forall x. Rep BatchGetReports x -> BatchGetReports
forall x. BatchGetReports -> Rep BatchGetReports x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchGetReports x -> BatchGetReports
$cfrom :: forall x. BatchGetReports -> Rep BatchGetReports x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetReports' 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:
--
-- 'reportArns', 'batchGetReports_reportArns' - An array of ARNs that identify the @Report@ objects to return.
newBatchGetReports ::
  -- | 'reportArns'
  Prelude.NonEmpty Prelude.Text ->
  BatchGetReports
newBatchGetReports :: NonEmpty Text -> BatchGetReports
newBatchGetReports NonEmpty Text
pReportArns_ =
  BatchGetReports' :: NonEmpty Text -> BatchGetReports
BatchGetReports'
    { $sel:reportArns:BatchGetReports' :: NonEmpty Text
reportArns =
        Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
 -> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pReportArns_
    }

-- | An array of ARNs that identify the @Report@ objects to return.
batchGetReports_reportArns :: Lens.Lens' BatchGetReports (Prelude.NonEmpty Prelude.Text)
batchGetReports_reportArns :: (NonEmpty Text -> f (NonEmpty Text))
-> BatchGetReports -> f BatchGetReports
batchGetReports_reportArns = (BatchGetReports -> NonEmpty Text)
-> (BatchGetReports -> NonEmpty Text -> BatchGetReports)
-> Lens
     BatchGetReports BatchGetReports (NonEmpty Text) (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetReports' {NonEmpty Text
reportArns :: NonEmpty Text
$sel:reportArns:BatchGetReports' :: BatchGetReports -> NonEmpty Text
reportArns} -> NonEmpty Text
reportArns) (\s :: BatchGetReports
s@BatchGetReports' {} NonEmpty Text
a -> BatchGetReports
s {$sel:reportArns:BatchGetReports' :: NonEmpty Text
reportArns = NonEmpty Text
a} :: BatchGetReports) ((NonEmpty Text -> f (NonEmpty Text))
 -> BatchGetReports -> f BatchGetReports)
-> ((NonEmpty Text -> f (NonEmpty Text))
    -> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> BatchGetReports
-> f BatchGetReports
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest BatchGetReports where
  type
    AWSResponse BatchGetReports =
      BatchGetReportsResponse
  request :: BatchGetReports -> Request BatchGetReports
request = Service -> BatchGetReports -> Request BatchGetReports
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy BatchGetReports
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchGetReports)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse BatchGetReports))
-> Logger
-> Service
-> Proxy BatchGetReports
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchGetReports)))
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 (NonEmpty Report)
-> Maybe (NonEmpty Text) -> Int -> BatchGetReportsResponse
BatchGetReportsResponse'
            (Maybe (NonEmpty Report)
 -> Maybe (NonEmpty Text) -> Int -> BatchGetReportsResponse)
-> Either String (Maybe (NonEmpty Report))
-> Either
     String (Maybe (NonEmpty Text) -> Int -> BatchGetReportsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Report))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"reports")
            Either
  String (Maybe (NonEmpty Text) -> Int -> BatchGetReportsResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either String (Int -> BatchGetReportsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"reportsNotFound")
            Either String (Int -> BatchGetReportsResponse)
-> Either String Int -> Either String BatchGetReportsResponse
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 BatchGetReports

instance Prelude.NFData BatchGetReports

instance Core.ToHeaders BatchGetReports where
  toHeaders :: BatchGetReports -> ResponseHeaders
toHeaders =
    ResponseHeaders -> BatchGetReports -> 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
"CodeBuild_20161006.BatchGetReports" ::
                          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 BatchGetReports where
  toJSON :: BatchGetReports -> Value
toJSON BatchGetReports' {NonEmpty Text
reportArns :: NonEmpty Text
$sel:reportArns:BatchGetReports' :: BatchGetReports -> NonEmpty 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
"reportArns" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
reportArns)]
      )

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

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

-- | /See:/ 'newBatchGetReportsResponse' smart constructor.
data BatchGetReportsResponse = BatchGetReportsResponse'
  { -- | The array of @Report@ objects returned by @BatchGetReports@.
    BatchGetReportsResponse -> Maybe (NonEmpty Report)
reports :: Prelude.Maybe (Prelude.NonEmpty Report),
    -- | An array of ARNs passed to @BatchGetReportGroups@ that are not
    -- associated with a @Report@.
    BatchGetReportsResponse -> Maybe (NonEmpty Text)
reportsNotFound :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The response's http status code.
    BatchGetReportsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (BatchGetReportsResponse -> BatchGetReportsResponse -> Bool
(BatchGetReportsResponse -> BatchGetReportsResponse -> Bool)
-> (BatchGetReportsResponse -> BatchGetReportsResponse -> Bool)
-> Eq BatchGetReportsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetReportsResponse -> BatchGetReportsResponse -> Bool
$c/= :: BatchGetReportsResponse -> BatchGetReportsResponse -> Bool
== :: BatchGetReportsResponse -> BatchGetReportsResponse -> Bool
$c== :: BatchGetReportsResponse -> BatchGetReportsResponse -> Bool
Prelude.Eq, ReadPrec [BatchGetReportsResponse]
ReadPrec BatchGetReportsResponse
Int -> ReadS BatchGetReportsResponse
ReadS [BatchGetReportsResponse]
(Int -> ReadS BatchGetReportsResponse)
-> ReadS [BatchGetReportsResponse]
-> ReadPrec BatchGetReportsResponse
-> ReadPrec [BatchGetReportsResponse]
-> Read BatchGetReportsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetReportsResponse]
$creadListPrec :: ReadPrec [BatchGetReportsResponse]
readPrec :: ReadPrec BatchGetReportsResponse
$creadPrec :: ReadPrec BatchGetReportsResponse
readList :: ReadS [BatchGetReportsResponse]
$creadList :: ReadS [BatchGetReportsResponse]
readsPrec :: Int -> ReadS BatchGetReportsResponse
$creadsPrec :: Int -> ReadS BatchGetReportsResponse
Prelude.Read, Int -> BatchGetReportsResponse -> ShowS
[BatchGetReportsResponse] -> ShowS
BatchGetReportsResponse -> String
(Int -> BatchGetReportsResponse -> ShowS)
-> (BatchGetReportsResponse -> String)
-> ([BatchGetReportsResponse] -> ShowS)
-> Show BatchGetReportsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetReportsResponse] -> ShowS
$cshowList :: [BatchGetReportsResponse] -> ShowS
show :: BatchGetReportsResponse -> String
$cshow :: BatchGetReportsResponse -> String
showsPrec :: Int -> BatchGetReportsResponse -> ShowS
$cshowsPrec :: Int -> BatchGetReportsResponse -> ShowS
Prelude.Show, (forall x.
 BatchGetReportsResponse -> Rep BatchGetReportsResponse x)
-> (forall x.
    Rep BatchGetReportsResponse x -> BatchGetReportsResponse)
-> Generic BatchGetReportsResponse
forall x. Rep BatchGetReportsResponse x -> BatchGetReportsResponse
forall x. BatchGetReportsResponse -> Rep BatchGetReportsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchGetReportsResponse x -> BatchGetReportsResponse
$cfrom :: forall x. BatchGetReportsResponse -> Rep BatchGetReportsResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetReportsResponse' 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:
--
-- 'reports', 'batchGetReportsResponse_reports' - The array of @Report@ objects returned by @BatchGetReports@.
--
-- 'reportsNotFound', 'batchGetReportsResponse_reportsNotFound' - An array of ARNs passed to @BatchGetReportGroups@ that are not
-- associated with a @Report@.
--
-- 'httpStatus', 'batchGetReportsResponse_httpStatus' - The response's http status code.
newBatchGetReportsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchGetReportsResponse
newBatchGetReportsResponse :: Int -> BatchGetReportsResponse
newBatchGetReportsResponse Int
pHttpStatus_ =
  BatchGetReportsResponse' :: Maybe (NonEmpty Report)
-> Maybe (NonEmpty Text) -> Int -> BatchGetReportsResponse
BatchGetReportsResponse'
    { $sel:reports:BatchGetReportsResponse' :: Maybe (NonEmpty Report)
reports = Maybe (NonEmpty Report)
forall a. Maybe a
Prelude.Nothing,
      $sel:reportsNotFound:BatchGetReportsResponse' :: Maybe (NonEmpty Text)
reportsNotFound = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchGetReportsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The array of @Report@ objects returned by @BatchGetReports@.
batchGetReportsResponse_reports :: Lens.Lens' BatchGetReportsResponse (Prelude.Maybe (Prelude.NonEmpty Report))
batchGetReportsResponse_reports :: (Maybe (NonEmpty Report) -> f (Maybe (NonEmpty Report)))
-> BatchGetReportsResponse -> f BatchGetReportsResponse
batchGetReportsResponse_reports = (BatchGetReportsResponse -> Maybe (NonEmpty Report))
-> (BatchGetReportsResponse
    -> Maybe (NonEmpty Report) -> BatchGetReportsResponse)
-> Lens
     BatchGetReportsResponse
     BatchGetReportsResponse
     (Maybe (NonEmpty Report))
     (Maybe (NonEmpty Report))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetReportsResponse' {Maybe (NonEmpty Report)
reports :: Maybe (NonEmpty Report)
$sel:reports:BatchGetReportsResponse' :: BatchGetReportsResponse -> Maybe (NonEmpty Report)
reports} -> Maybe (NonEmpty Report)
reports) (\s :: BatchGetReportsResponse
s@BatchGetReportsResponse' {} Maybe (NonEmpty Report)
a -> BatchGetReportsResponse
s {$sel:reports:BatchGetReportsResponse' :: Maybe (NonEmpty Report)
reports = Maybe (NonEmpty Report)
a} :: BatchGetReportsResponse) ((Maybe (NonEmpty Report) -> f (Maybe (NonEmpty Report)))
 -> BatchGetReportsResponse -> f BatchGetReportsResponse)
-> ((Maybe (NonEmpty Report) -> f (Maybe (NonEmpty Report)))
    -> Maybe (NonEmpty Report) -> f (Maybe (NonEmpty Report)))
-> (Maybe (NonEmpty Report) -> f (Maybe (NonEmpty Report)))
-> BatchGetReportsResponse
-> f BatchGetReportsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Report)
  (NonEmpty Report)
  (NonEmpty Report)
  (NonEmpty Report)
-> Iso
     (Maybe (NonEmpty Report))
     (Maybe (NonEmpty Report))
     (Maybe (NonEmpty Report))
     (Maybe (NonEmpty Report))
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
  (NonEmpty Report)
  (NonEmpty Report)
  (NonEmpty Report)
  (NonEmpty Report)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An array of ARNs passed to @BatchGetReportGroups@ that are not
-- associated with a @Report@.
batchGetReportsResponse_reportsNotFound :: Lens.Lens' BatchGetReportsResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
batchGetReportsResponse_reportsNotFound :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> BatchGetReportsResponse -> f BatchGetReportsResponse
batchGetReportsResponse_reportsNotFound = (BatchGetReportsResponse -> Maybe (NonEmpty Text))
-> (BatchGetReportsResponse
    -> Maybe (NonEmpty Text) -> BatchGetReportsResponse)
-> Lens
     BatchGetReportsResponse
     BatchGetReportsResponse
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetReportsResponse' {Maybe (NonEmpty Text)
reportsNotFound :: Maybe (NonEmpty Text)
$sel:reportsNotFound:BatchGetReportsResponse' :: BatchGetReportsResponse -> Maybe (NonEmpty Text)
reportsNotFound} -> Maybe (NonEmpty Text)
reportsNotFound) (\s :: BatchGetReportsResponse
s@BatchGetReportsResponse' {} Maybe (NonEmpty Text)
a -> BatchGetReportsResponse
s {$sel:reportsNotFound:BatchGetReportsResponse' :: Maybe (NonEmpty Text)
reportsNotFound = Maybe (NonEmpty Text)
a} :: BatchGetReportsResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> BatchGetReportsResponse -> f BatchGetReportsResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> BatchGetReportsResponse
-> f BatchGetReportsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
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
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData BatchGetReportsResponse