{-# 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.BatchGetBuildBatches
-- 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)
--
-- Retrieves information about one or more batch builds.
module Amazonka.CodeBuild.BatchGetBuildBatches
  ( -- * Creating a Request
    BatchGetBuildBatches (..),
    newBatchGetBuildBatches,

    -- * Request Lenses
    batchGetBuildBatches_ids,

    -- * Destructuring the Response
    BatchGetBuildBatchesResponse (..),
    newBatchGetBuildBatchesResponse,

    -- * Response Lenses
    batchGetBuildBatchesResponse_buildBatches,
    batchGetBuildBatchesResponse_buildBatchesNotFound,
    batchGetBuildBatchesResponse_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:/ 'newBatchGetBuildBatches' smart constructor.
data BatchGetBuildBatches = BatchGetBuildBatches'
  { -- | An array that contains the batch build identifiers to retrieve.
    BatchGetBuildBatches -> [Text]
ids :: [Prelude.Text]
  }
  deriving (BatchGetBuildBatches -> BatchGetBuildBatches -> Bool
(BatchGetBuildBatches -> BatchGetBuildBatches -> Bool)
-> (BatchGetBuildBatches -> BatchGetBuildBatches -> Bool)
-> Eq BatchGetBuildBatches
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetBuildBatches -> BatchGetBuildBatches -> Bool
$c/= :: BatchGetBuildBatches -> BatchGetBuildBatches -> Bool
== :: BatchGetBuildBatches -> BatchGetBuildBatches -> Bool
$c== :: BatchGetBuildBatches -> BatchGetBuildBatches -> Bool
Prelude.Eq, ReadPrec [BatchGetBuildBatches]
ReadPrec BatchGetBuildBatches
Int -> ReadS BatchGetBuildBatches
ReadS [BatchGetBuildBatches]
(Int -> ReadS BatchGetBuildBatches)
-> ReadS [BatchGetBuildBatches]
-> ReadPrec BatchGetBuildBatches
-> ReadPrec [BatchGetBuildBatches]
-> Read BatchGetBuildBatches
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetBuildBatches]
$creadListPrec :: ReadPrec [BatchGetBuildBatches]
readPrec :: ReadPrec BatchGetBuildBatches
$creadPrec :: ReadPrec BatchGetBuildBatches
readList :: ReadS [BatchGetBuildBatches]
$creadList :: ReadS [BatchGetBuildBatches]
readsPrec :: Int -> ReadS BatchGetBuildBatches
$creadsPrec :: Int -> ReadS BatchGetBuildBatches
Prelude.Read, Int -> BatchGetBuildBatches -> ShowS
[BatchGetBuildBatches] -> ShowS
BatchGetBuildBatches -> String
(Int -> BatchGetBuildBatches -> ShowS)
-> (BatchGetBuildBatches -> String)
-> ([BatchGetBuildBatches] -> ShowS)
-> Show BatchGetBuildBatches
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetBuildBatches] -> ShowS
$cshowList :: [BatchGetBuildBatches] -> ShowS
show :: BatchGetBuildBatches -> String
$cshow :: BatchGetBuildBatches -> String
showsPrec :: Int -> BatchGetBuildBatches -> ShowS
$cshowsPrec :: Int -> BatchGetBuildBatches -> ShowS
Prelude.Show, (forall x. BatchGetBuildBatches -> Rep BatchGetBuildBatches x)
-> (forall x. Rep BatchGetBuildBatches x -> BatchGetBuildBatches)
-> Generic BatchGetBuildBatches
forall x. Rep BatchGetBuildBatches x -> BatchGetBuildBatches
forall x. BatchGetBuildBatches -> Rep BatchGetBuildBatches x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchGetBuildBatches x -> BatchGetBuildBatches
$cfrom :: forall x. BatchGetBuildBatches -> Rep BatchGetBuildBatches x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetBuildBatches' 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:
--
-- 'ids', 'batchGetBuildBatches_ids' - An array that contains the batch build identifiers to retrieve.
newBatchGetBuildBatches ::
  BatchGetBuildBatches
newBatchGetBuildBatches :: BatchGetBuildBatches
newBatchGetBuildBatches =
  BatchGetBuildBatches' :: [Text] -> BatchGetBuildBatches
BatchGetBuildBatches' {$sel:ids:BatchGetBuildBatches' :: [Text]
ids = [Text]
forall a. Monoid a => a
Prelude.mempty}

-- | An array that contains the batch build identifiers to retrieve.
batchGetBuildBatches_ids :: Lens.Lens' BatchGetBuildBatches [Prelude.Text]
batchGetBuildBatches_ids :: ([Text] -> f [Text])
-> BatchGetBuildBatches -> f BatchGetBuildBatches
batchGetBuildBatches_ids = (BatchGetBuildBatches -> [Text])
-> (BatchGetBuildBatches -> [Text] -> BatchGetBuildBatches)
-> Lens BatchGetBuildBatches BatchGetBuildBatches [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetBuildBatches' {[Text]
ids :: [Text]
$sel:ids:BatchGetBuildBatches' :: BatchGetBuildBatches -> [Text]
ids} -> [Text]
ids) (\s :: BatchGetBuildBatches
s@BatchGetBuildBatches' {} [Text]
a -> BatchGetBuildBatches
s {$sel:ids:BatchGetBuildBatches' :: [Text]
ids = [Text]
a} :: BatchGetBuildBatches) (([Text] -> f [Text])
 -> BatchGetBuildBatches -> f BatchGetBuildBatches)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchGetBuildBatches
-> f BatchGetBuildBatches
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData BatchGetBuildBatches

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

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

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

-- | /See:/ 'newBatchGetBuildBatchesResponse' smart constructor.
data BatchGetBuildBatchesResponse = BatchGetBuildBatchesResponse'
  { -- | An array of @BuildBatch@ objects that represent the retrieved batch
    -- builds.
    BatchGetBuildBatchesResponse -> Maybe [BuildBatch]
buildBatches :: Prelude.Maybe [BuildBatch],
    -- | An array that contains the identifiers of any batch builds that are not
    -- found.
    BatchGetBuildBatchesResponse -> Maybe [Text]
buildBatchesNotFound :: Prelude.Maybe [Prelude.Text],
    -- | The response's http status code.
    BatchGetBuildBatchesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (BatchGetBuildBatchesResponse
-> BatchGetBuildBatchesResponse -> Bool
(BatchGetBuildBatchesResponse
 -> BatchGetBuildBatchesResponse -> Bool)
-> (BatchGetBuildBatchesResponse
    -> BatchGetBuildBatchesResponse -> Bool)
-> Eq BatchGetBuildBatchesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetBuildBatchesResponse
-> BatchGetBuildBatchesResponse -> Bool
$c/= :: BatchGetBuildBatchesResponse
-> BatchGetBuildBatchesResponse -> Bool
== :: BatchGetBuildBatchesResponse
-> BatchGetBuildBatchesResponse -> Bool
$c== :: BatchGetBuildBatchesResponse
-> BatchGetBuildBatchesResponse -> Bool
Prelude.Eq, ReadPrec [BatchGetBuildBatchesResponse]
ReadPrec BatchGetBuildBatchesResponse
Int -> ReadS BatchGetBuildBatchesResponse
ReadS [BatchGetBuildBatchesResponse]
(Int -> ReadS BatchGetBuildBatchesResponse)
-> ReadS [BatchGetBuildBatchesResponse]
-> ReadPrec BatchGetBuildBatchesResponse
-> ReadPrec [BatchGetBuildBatchesResponse]
-> Read BatchGetBuildBatchesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetBuildBatchesResponse]
$creadListPrec :: ReadPrec [BatchGetBuildBatchesResponse]
readPrec :: ReadPrec BatchGetBuildBatchesResponse
$creadPrec :: ReadPrec BatchGetBuildBatchesResponse
readList :: ReadS [BatchGetBuildBatchesResponse]
$creadList :: ReadS [BatchGetBuildBatchesResponse]
readsPrec :: Int -> ReadS BatchGetBuildBatchesResponse
$creadsPrec :: Int -> ReadS BatchGetBuildBatchesResponse
Prelude.Read, Int -> BatchGetBuildBatchesResponse -> ShowS
[BatchGetBuildBatchesResponse] -> ShowS
BatchGetBuildBatchesResponse -> String
(Int -> BatchGetBuildBatchesResponse -> ShowS)
-> (BatchGetBuildBatchesResponse -> String)
-> ([BatchGetBuildBatchesResponse] -> ShowS)
-> Show BatchGetBuildBatchesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetBuildBatchesResponse] -> ShowS
$cshowList :: [BatchGetBuildBatchesResponse] -> ShowS
show :: BatchGetBuildBatchesResponse -> String
$cshow :: BatchGetBuildBatchesResponse -> String
showsPrec :: Int -> BatchGetBuildBatchesResponse -> ShowS
$cshowsPrec :: Int -> BatchGetBuildBatchesResponse -> ShowS
Prelude.Show, (forall x.
 BatchGetBuildBatchesResponse -> Rep BatchGetBuildBatchesResponse x)
-> (forall x.
    Rep BatchGetBuildBatchesResponse x -> BatchGetBuildBatchesResponse)
-> Generic BatchGetBuildBatchesResponse
forall x.
Rep BatchGetBuildBatchesResponse x -> BatchGetBuildBatchesResponse
forall x.
BatchGetBuildBatchesResponse -> Rep BatchGetBuildBatchesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchGetBuildBatchesResponse x -> BatchGetBuildBatchesResponse
$cfrom :: forall x.
BatchGetBuildBatchesResponse -> Rep BatchGetBuildBatchesResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetBuildBatchesResponse' 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:
--
-- 'buildBatches', 'batchGetBuildBatchesResponse_buildBatches' - An array of @BuildBatch@ objects that represent the retrieved batch
-- builds.
--
-- 'buildBatchesNotFound', 'batchGetBuildBatchesResponse_buildBatchesNotFound' - An array that contains the identifiers of any batch builds that are not
-- found.
--
-- 'httpStatus', 'batchGetBuildBatchesResponse_httpStatus' - The response's http status code.
newBatchGetBuildBatchesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchGetBuildBatchesResponse
newBatchGetBuildBatchesResponse :: Int -> BatchGetBuildBatchesResponse
newBatchGetBuildBatchesResponse Int
pHttpStatus_ =
  BatchGetBuildBatchesResponse' :: Maybe [BuildBatch]
-> Maybe [Text] -> Int -> BatchGetBuildBatchesResponse
BatchGetBuildBatchesResponse'
    { $sel:buildBatches:BatchGetBuildBatchesResponse' :: Maybe [BuildBatch]
buildBatches =
        Maybe [BuildBatch]
forall a. Maybe a
Prelude.Nothing,
      $sel:buildBatchesNotFound:BatchGetBuildBatchesResponse' :: Maybe [Text]
buildBatchesNotFound = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchGetBuildBatchesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of @BuildBatch@ objects that represent the retrieved batch
-- builds.
batchGetBuildBatchesResponse_buildBatches :: Lens.Lens' BatchGetBuildBatchesResponse (Prelude.Maybe [BuildBatch])
batchGetBuildBatchesResponse_buildBatches :: (Maybe [BuildBatch] -> f (Maybe [BuildBatch]))
-> BatchGetBuildBatchesResponse -> f BatchGetBuildBatchesResponse
batchGetBuildBatchesResponse_buildBatches = (BatchGetBuildBatchesResponse -> Maybe [BuildBatch])
-> (BatchGetBuildBatchesResponse
    -> Maybe [BuildBatch] -> BatchGetBuildBatchesResponse)
-> Lens
     BatchGetBuildBatchesResponse
     BatchGetBuildBatchesResponse
     (Maybe [BuildBatch])
     (Maybe [BuildBatch])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetBuildBatchesResponse' {Maybe [BuildBatch]
buildBatches :: Maybe [BuildBatch]
$sel:buildBatches:BatchGetBuildBatchesResponse' :: BatchGetBuildBatchesResponse -> Maybe [BuildBatch]
buildBatches} -> Maybe [BuildBatch]
buildBatches) (\s :: BatchGetBuildBatchesResponse
s@BatchGetBuildBatchesResponse' {} Maybe [BuildBatch]
a -> BatchGetBuildBatchesResponse
s {$sel:buildBatches:BatchGetBuildBatchesResponse' :: Maybe [BuildBatch]
buildBatches = Maybe [BuildBatch]
a} :: BatchGetBuildBatchesResponse) ((Maybe [BuildBatch] -> f (Maybe [BuildBatch]))
 -> BatchGetBuildBatchesResponse -> f BatchGetBuildBatchesResponse)
-> ((Maybe [BuildBatch] -> f (Maybe [BuildBatch]))
    -> Maybe [BuildBatch] -> f (Maybe [BuildBatch]))
-> (Maybe [BuildBatch] -> f (Maybe [BuildBatch]))
-> BatchGetBuildBatchesResponse
-> f BatchGetBuildBatchesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [BuildBatch] [BuildBatch] [BuildBatch] [BuildBatch]
-> Iso
     (Maybe [BuildBatch])
     (Maybe [BuildBatch])
     (Maybe [BuildBatch])
     (Maybe [BuildBatch])
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 [BuildBatch] [BuildBatch] [BuildBatch] [BuildBatch]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An array that contains the identifiers of any batch builds that are not
-- found.
batchGetBuildBatchesResponse_buildBatchesNotFound :: Lens.Lens' BatchGetBuildBatchesResponse (Prelude.Maybe [Prelude.Text])
batchGetBuildBatchesResponse_buildBatchesNotFound :: (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetBuildBatchesResponse -> f BatchGetBuildBatchesResponse
batchGetBuildBatchesResponse_buildBatchesNotFound = (BatchGetBuildBatchesResponse -> Maybe [Text])
-> (BatchGetBuildBatchesResponse
    -> Maybe [Text] -> BatchGetBuildBatchesResponse)
-> Lens
     BatchGetBuildBatchesResponse
     BatchGetBuildBatchesResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetBuildBatchesResponse' {Maybe [Text]
buildBatchesNotFound :: Maybe [Text]
$sel:buildBatchesNotFound:BatchGetBuildBatchesResponse' :: BatchGetBuildBatchesResponse -> Maybe [Text]
buildBatchesNotFound} -> Maybe [Text]
buildBatchesNotFound) (\s :: BatchGetBuildBatchesResponse
s@BatchGetBuildBatchesResponse' {} Maybe [Text]
a -> BatchGetBuildBatchesResponse
s {$sel:buildBatchesNotFound:BatchGetBuildBatchesResponse' :: Maybe [Text]
buildBatchesNotFound = Maybe [Text]
a} :: BatchGetBuildBatchesResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> BatchGetBuildBatchesResponse -> f BatchGetBuildBatchesResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetBuildBatchesResponse
-> f BatchGetBuildBatchesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [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.
batchGetBuildBatchesResponse_httpStatus :: Lens.Lens' BatchGetBuildBatchesResponse Prelude.Int
batchGetBuildBatchesResponse_httpStatus :: (Int -> f Int)
-> BatchGetBuildBatchesResponse -> f BatchGetBuildBatchesResponse
batchGetBuildBatchesResponse_httpStatus = (BatchGetBuildBatchesResponse -> Int)
-> (BatchGetBuildBatchesResponse
    -> Int -> BatchGetBuildBatchesResponse)
-> Lens
     BatchGetBuildBatchesResponse BatchGetBuildBatchesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetBuildBatchesResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchGetBuildBatchesResponse' :: BatchGetBuildBatchesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchGetBuildBatchesResponse
s@BatchGetBuildBatchesResponse' {} Int
a -> BatchGetBuildBatchesResponse
s {$sel:httpStatus:BatchGetBuildBatchesResponse' :: Int
httpStatus = Int
a} :: BatchGetBuildBatchesResponse)

instance Prelude.NFData BatchGetBuildBatchesResponse