{-# 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.BatchGetReportGroups
-- 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 report groups.
module Amazonka.CodeBuild.BatchGetReportGroups
  ( -- * Creating a Request
    BatchGetReportGroups (..),
    newBatchGetReportGroups,

    -- * Request Lenses
    batchGetReportGroups_reportGroupArns,

    -- * Destructuring the Response
    BatchGetReportGroupsResponse (..),
    newBatchGetReportGroupsResponse,

    -- * Response Lenses
    batchGetReportGroupsResponse_reportGroups,
    batchGetReportGroupsResponse_reportGroupsNotFound,
    batchGetReportGroupsResponse_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:/ 'newBatchGetReportGroups' smart constructor.
data BatchGetReportGroups = BatchGetReportGroups'
  { -- | An array of report group ARNs that identify the report groups to return.
    BatchGetReportGroups -> NonEmpty Text
reportGroupArns :: Prelude.NonEmpty Prelude.Text
  }
  deriving (BatchGetReportGroups -> BatchGetReportGroups -> Bool
(BatchGetReportGroups -> BatchGetReportGroups -> Bool)
-> (BatchGetReportGroups -> BatchGetReportGroups -> Bool)
-> Eq BatchGetReportGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetReportGroups -> BatchGetReportGroups -> Bool
$c/= :: BatchGetReportGroups -> BatchGetReportGroups -> Bool
== :: BatchGetReportGroups -> BatchGetReportGroups -> Bool
$c== :: BatchGetReportGroups -> BatchGetReportGroups -> Bool
Prelude.Eq, ReadPrec [BatchGetReportGroups]
ReadPrec BatchGetReportGroups
Int -> ReadS BatchGetReportGroups
ReadS [BatchGetReportGroups]
(Int -> ReadS BatchGetReportGroups)
-> ReadS [BatchGetReportGroups]
-> ReadPrec BatchGetReportGroups
-> ReadPrec [BatchGetReportGroups]
-> Read BatchGetReportGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetReportGroups]
$creadListPrec :: ReadPrec [BatchGetReportGroups]
readPrec :: ReadPrec BatchGetReportGroups
$creadPrec :: ReadPrec BatchGetReportGroups
readList :: ReadS [BatchGetReportGroups]
$creadList :: ReadS [BatchGetReportGroups]
readsPrec :: Int -> ReadS BatchGetReportGroups
$creadsPrec :: Int -> ReadS BatchGetReportGroups
Prelude.Read, Int -> BatchGetReportGroups -> ShowS
[BatchGetReportGroups] -> ShowS
BatchGetReportGroups -> String
(Int -> BatchGetReportGroups -> ShowS)
-> (BatchGetReportGroups -> String)
-> ([BatchGetReportGroups] -> ShowS)
-> Show BatchGetReportGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetReportGroups] -> ShowS
$cshowList :: [BatchGetReportGroups] -> ShowS
show :: BatchGetReportGroups -> String
$cshow :: BatchGetReportGroups -> String
showsPrec :: Int -> BatchGetReportGroups -> ShowS
$cshowsPrec :: Int -> BatchGetReportGroups -> ShowS
Prelude.Show, (forall x. BatchGetReportGroups -> Rep BatchGetReportGroups x)
-> (forall x. Rep BatchGetReportGroups x -> BatchGetReportGroups)
-> Generic BatchGetReportGroups
forall x. Rep BatchGetReportGroups x -> BatchGetReportGroups
forall x. BatchGetReportGroups -> Rep BatchGetReportGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchGetReportGroups x -> BatchGetReportGroups
$cfrom :: forall x. BatchGetReportGroups -> Rep BatchGetReportGroups x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetReportGroups' 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:
--
-- 'reportGroupArns', 'batchGetReportGroups_reportGroupArns' - An array of report group ARNs that identify the report groups to return.
newBatchGetReportGroups ::
  -- | 'reportGroupArns'
  Prelude.NonEmpty Prelude.Text ->
  BatchGetReportGroups
newBatchGetReportGroups :: NonEmpty Text -> BatchGetReportGroups
newBatchGetReportGroups NonEmpty Text
pReportGroupArns_ =
  BatchGetReportGroups' :: NonEmpty Text -> BatchGetReportGroups
BatchGetReportGroups'
    { $sel:reportGroupArns:BatchGetReportGroups' :: NonEmpty Text
reportGroupArns =
        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
pReportGroupArns_
    }

-- | An array of report group ARNs that identify the report groups to return.
batchGetReportGroups_reportGroupArns :: Lens.Lens' BatchGetReportGroups (Prelude.NonEmpty Prelude.Text)
batchGetReportGroups_reportGroupArns :: (NonEmpty Text -> f (NonEmpty Text))
-> BatchGetReportGroups -> f BatchGetReportGroups
batchGetReportGroups_reportGroupArns = (BatchGetReportGroups -> NonEmpty Text)
-> (BatchGetReportGroups -> NonEmpty Text -> BatchGetReportGroups)
-> Lens
     BatchGetReportGroups
     BatchGetReportGroups
     (NonEmpty Text)
     (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetReportGroups' {NonEmpty Text
reportGroupArns :: NonEmpty Text
$sel:reportGroupArns:BatchGetReportGroups' :: BatchGetReportGroups -> NonEmpty Text
reportGroupArns} -> NonEmpty Text
reportGroupArns) (\s :: BatchGetReportGroups
s@BatchGetReportGroups' {} NonEmpty Text
a -> BatchGetReportGroups
s {$sel:reportGroupArns:BatchGetReportGroups' :: NonEmpty Text
reportGroupArns = NonEmpty Text
a} :: BatchGetReportGroups) ((NonEmpty Text -> f (NonEmpty Text))
 -> BatchGetReportGroups -> f BatchGetReportGroups)
-> ((NonEmpty Text -> f (NonEmpty Text))
    -> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> BatchGetReportGroups
-> f BatchGetReportGroups
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 BatchGetReportGroups where
  type
    AWSResponse BatchGetReportGroups =
      BatchGetReportGroupsResponse
  request :: BatchGetReportGroups -> Request BatchGetReportGroups
request = Service -> BatchGetReportGroups -> Request BatchGetReportGroups
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy BatchGetReportGroups
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse BatchGetReportGroups)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse BatchGetReportGroups))
-> Logger
-> Service
-> Proxy BatchGetReportGroups
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse BatchGetReportGroups)))
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 ReportGroup)
-> Maybe (NonEmpty Text) -> Int -> BatchGetReportGroupsResponse
BatchGetReportGroupsResponse'
            (Maybe (NonEmpty ReportGroup)
 -> Maybe (NonEmpty Text) -> Int -> BatchGetReportGroupsResponse)
-> Either String (Maybe (NonEmpty ReportGroup))
-> Either
     String
     (Maybe (NonEmpty Text) -> Int -> BatchGetReportGroupsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (NonEmpty ReportGroup))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"reportGroups")
            Either
  String
  (Maybe (NonEmpty Text) -> Int -> BatchGetReportGroupsResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either String (Int -> BatchGetReportGroupsResponse)
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
"reportGroupsNotFound")
            Either String (Int -> BatchGetReportGroupsResponse)
-> Either String Int -> Either String BatchGetReportGroupsResponse
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 BatchGetReportGroups

instance Prelude.NFData BatchGetReportGroups

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

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

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

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

-- |
-- Create a value of 'BatchGetReportGroupsResponse' 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:
--
-- 'reportGroups', 'batchGetReportGroupsResponse_reportGroups' - The array of report groups returned by @BatchGetReportGroups@.
--
-- 'reportGroupsNotFound', 'batchGetReportGroupsResponse_reportGroupsNotFound' - An array of ARNs passed to @BatchGetReportGroups@ that are not
-- associated with a @ReportGroup@.
--
-- 'httpStatus', 'batchGetReportGroupsResponse_httpStatus' - The response's http status code.
newBatchGetReportGroupsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchGetReportGroupsResponse
newBatchGetReportGroupsResponse :: Int -> BatchGetReportGroupsResponse
newBatchGetReportGroupsResponse Int
pHttpStatus_ =
  BatchGetReportGroupsResponse' :: Maybe (NonEmpty ReportGroup)
-> Maybe (NonEmpty Text) -> Int -> BatchGetReportGroupsResponse
BatchGetReportGroupsResponse'
    { $sel:reportGroups:BatchGetReportGroupsResponse' :: Maybe (NonEmpty ReportGroup)
reportGroups =
        Maybe (NonEmpty ReportGroup)
forall a. Maybe a
Prelude.Nothing,
      $sel:reportGroupsNotFound:BatchGetReportGroupsResponse' :: Maybe (NonEmpty Text)
reportGroupsNotFound = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchGetReportGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The array of report groups returned by @BatchGetReportGroups@.
batchGetReportGroupsResponse_reportGroups :: Lens.Lens' BatchGetReportGroupsResponse (Prelude.Maybe (Prelude.NonEmpty ReportGroup))
batchGetReportGroupsResponse_reportGroups :: (Maybe (NonEmpty ReportGroup) -> f (Maybe (NonEmpty ReportGroup)))
-> BatchGetReportGroupsResponse -> f BatchGetReportGroupsResponse
batchGetReportGroupsResponse_reportGroups = (BatchGetReportGroupsResponse -> Maybe (NonEmpty ReportGroup))
-> (BatchGetReportGroupsResponse
    -> Maybe (NonEmpty ReportGroup) -> BatchGetReportGroupsResponse)
-> Lens
     BatchGetReportGroupsResponse
     BatchGetReportGroupsResponse
     (Maybe (NonEmpty ReportGroup))
     (Maybe (NonEmpty ReportGroup))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetReportGroupsResponse' {Maybe (NonEmpty ReportGroup)
reportGroups :: Maybe (NonEmpty ReportGroup)
$sel:reportGroups:BatchGetReportGroupsResponse' :: BatchGetReportGroupsResponse -> Maybe (NonEmpty ReportGroup)
reportGroups} -> Maybe (NonEmpty ReportGroup)
reportGroups) (\s :: BatchGetReportGroupsResponse
s@BatchGetReportGroupsResponse' {} Maybe (NonEmpty ReportGroup)
a -> BatchGetReportGroupsResponse
s {$sel:reportGroups:BatchGetReportGroupsResponse' :: Maybe (NonEmpty ReportGroup)
reportGroups = Maybe (NonEmpty ReportGroup)
a} :: BatchGetReportGroupsResponse) ((Maybe (NonEmpty ReportGroup) -> f (Maybe (NonEmpty ReportGroup)))
 -> BatchGetReportGroupsResponse -> f BatchGetReportGroupsResponse)
-> ((Maybe (NonEmpty ReportGroup)
     -> f (Maybe (NonEmpty ReportGroup)))
    -> Maybe (NonEmpty ReportGroup)
    -> f (Maybe (NonEmpty ReportGroup)))
-> (Maybe (NonEmpty ReportGroup)
    -> f (Maybe (NonEmpty ReportGroup)))
-> BatchGetReportGroupsResponse
-> f BatchGetReportGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty ReportGroup)
  (NonEmpty ReportGroup)
  (NonEmpty ReportGroup)
  (NonEmpty ReportGroup)
-> Iso
     (Maybe (NonEmpty ReportGroup))
     (Maybe (NonEmpty ReportGroup))
     (Maybe (NonEmpty ReportGroup))
     (Maybe (NonEmpty ReportGroup))
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 ReportGroup)
  (NonEmpty ReportGroup)
  (NonEmpty ReportGroup)
  (NonEmpty ReportGroup)
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 @ReportGroup@.
batchGetReportGroupsResponse_reportGroupsNotFound :: Lens.Lens' BatchGetReportGroupsResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
batchGetReportGroupsResponse_reportGroupsNotFound :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> BatchGetReportGroupsResponse -> f BatchGetReportGroupsResponse
batchGetReportGroupsResponse_reportGroupsNotFound = (BatchGetReportGroupsResponse -> Maybe (NonEmpty Text))
-> (BatchGetReportGroupsResponse
    -> Maybe (NonEmpty Text) -> BatchGetReportGroupsResponse)
-> Lens
     BatchGetReportGroupsResponse
     BatchGetReportGroupsResponse
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetReportGroupsResponse' {Maybe (NonEmpty Text)
reportGroupsNotFound :: Maybe (NonEmpty Text)
$sel:reportGroupsNotFound:BatchGetReportGroupsResponse' :: BatchGetReportGroupsResponse -> Maybe (NonEmpty Text)
reportGroupsNotFound} -> Maybe (NonEmpty Text)
reportGroupsNotFound) (\s :: BatchGetReportGroupsResponse
s@BatchGetReportGroupsResponse' {} Maybe (NonEmpty Text)
a -> BatchGetReportGroupsResponse
s {$sel:reportGroupsNotFound:BatchGetReportGroupsResponse' :: Maybe (NonEmpty Text)
reportGroupsNotFound = Maybe (NonEmpty Text)
a} :: BatchGetReportGroupsResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> BatchGetReportGroupsResponse -> f BatchGetReportGroupsResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> BatchGetReportGroupsResponse
-> f BatchGetReportGroupsResponse
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.
batchGetReportGroupsResponse_httpStatus :: Lens.Lens' BatchGetReportGroupsResponse Prelude.Int
batchGetReportGroupsResponse_httpStatus :: (Int -> f Int)
-> BatchGetReportGroupsResponse -> f BatchGetReportGroupsResponse
batchGetReportGroupsResponse_httpStatus = (BatchGetReportGroupsResponse -> Int)
-> (BatchGetReportGroupsResponse
    -> Int -> BatchGetReportGroupsResponse)
-> Lens
     BatchGetReportGroupsResponse BatchGetReportGroupsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetReportGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchGetReportGroupsResponse' :: BatchGetReportGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchGetReportGroupsResponse
s@BatchGetReportGroupsResponse' {} Int
a -> BatchGetReportGroupsResponse
s {$sel:httpStatus:BatchGetReportGroupsResponse' :: Int
httpStatus = Int
a} :: BatchGetReportGroupsResponse)

instance Prelude.NFData BatchGetReportGroupsResponse