{-# 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.DeleteBuildBatch
-- 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)
--
-- Deletes a batch build.
module Amazonka.CodeBuild.DeleteBuildBatch
  ( -- * Creating a Request
    DeleteBuildBatch (..),
    newDeleteBuildBatch,

    -- * Request Lenses
    deleteBuildBatch_id,

    -- * Destructuring the Response
    DeleteBuildBatchResponse (..),
    newDeleteBuildBatchResponse,

    -- * Response Lenses
    deleteBuildBatchResponse_buildsNotDeleted,
    deleteBuildBatchResponse_buildsDeleted,
    deleteBuildBatchResponse_statusCode,
    deleteBuildBatchResponse_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:/ 'newDeleteBuildBatch' smart constructor.
data DeleteBuildBatch = DeleteBuildBatch'
  { -- | The identifier of the batch build to delete.
    DeleteBuildBatch -> Text
id :: Prelude.Text
  }
  deriving (DeleteBuildBatch -> DeleteBuildBatch -> Bool
(DeleteBuildBatch -> DeleteBuildBatch -> Bool)
-> (DeleteBuildBatch -> DeleteBuildBatch -> Bool)
-> Eq DeleteBuildBatch
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBuildBatch -> DeleteBuildBatch -> Bool
$c/= :: DeleteBuildBatch -> DeleteBuildBatch -> Bool
== :: DeleteBuildBatch -> DeleteBuildBatch -> Bool
$c== :: DeleteBuildBatch -> DeleteBuildBatch -> Bool
Prelude.Eq, ReadPrec [DeleteBuildBatch]
ReadPrec DeleteBuildBatch
Int -> ReadS DeleteBuildBatch
ReadS [DeleteBuildBatch]
(Int -> ReadS DeleteBuildBatch)
-> ReadS [DeleteBuildBatch]
-> ReadPrec DeleteBuildBatch
-> ReadPrec [DeleteBuildBatch]
-> Read DeleteBuildBatch
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBuildBatch]
$creadListPrec :: ReadPrec [DeleteBuildBatch]
readPrec :: ReadPrec DeleteBuildBatch
$creadPrec :: ReadPrec DeleteBuildBatch
readList :: ReadS [DeleteBuildBatch]
$creadList :: ReadS [DeleteBuildBatch]
readsPrec :: Int -> ReadS DeleteBuildBatch
$creadsPrec :: Int -> ReadS DeleteBuildBatch
Prelude.Read, Int -> DeleteBuildBatch -> ShowS
[DeleteBuildBatch] -> ShowS
DeleteBuildBatch -> String
(Int -> DeleteBuildBatch -> ShowS)
-> (DeleteBuildBatch -> String)
-> ([DeleteBuildBatch] -> ShowS)
-> Show DeleteBuildBatch
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBuildBatch] -> ShowS
$cshowList :: [DeleteBuildBatch] -> ShowS
show :: DeleteBuildBatch -> String
$cshow :: DeleteBuildBatch -> String
showsPrec :: Int -> DeleteBuildBatch -> ShowS
$cshowsPrec :: Int -> DeleteBuildBatch -> ShowS
Prelude.Show, (forall x. DeleteBuildBatch -> Rep DeleteBuildBatch x)
-> (forall x. Rep DeleteBuildBatch x -> DeleteBuildBatch)
-> Generic DeleteBuildBatch
forall x. Rep DeleteBuildBatch x -> DeleteBuildBatch
forall x. DeleteBuildBatch -> Rep DeleteBuildBatch x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteBuildBatch x -> DeleteBuildBatch
$cfrom :: forall x. DeleteBuildBatch -> Rep DeleteBuildBatch x
Prelude.Generic)

-- |
-- Create a value of 'DeleteBuildBatch' 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:
--
-- 'id', 'deleteBuildBatch_id' - The identifier of the batch build to delete.
newDeleteBuildBatch ::
  -- | 'id'
  Prelude.Text ->
  DeleteBuildBatch
newDeleteBuildBatch :: Text -> DeleteBuildBatch
newDeleteBuildBatch Text
pId_ =
  DeleteBuildBatch' :: Text -> DeleteBuildBatch
DeleteBuildBatch' {$sel:id:DeleteBuildBatch' :: Text
id = Text
pId_}

-- | The identifier of the batch build to delete.
deleteBuildBatch_id :: Lens.Lens' DeleteBuildBatch Prelude.Text
deleteBuildBatch_id :: (Text -> f Text) -> DeleteBuildBatch -> f DeleteBuildBatch
deleteBuildBatch_id = (DeleteBuildBatch -> Text)
-> (DeleteBuildBatch -> Text -> DeleteBuildBatch)
-> Lens DeleteBuildBatch DeleteBuildBatch Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBuildBatch' {Text
id :: Text
$sel:id:DeleteBuildBatch' :: DeleteBuildBatch -> Text
id} -> Text
id) (\s :: DeleteBuildBatch
s@DeleteBuildBatch' {} Text
a -> DeleteBuildBatch
s {$sel:id:DeleteBuildBatch' :: Text
id = Text
a} :: DeleteBuildBatch)

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

instance Prelude.NFData DeleteBuildBatch

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

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

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

-- | /See:/ 'newDeleteBuildBatchResponse' smart constructor.
data DeleteBuildBatchResponse = DeleteBuildBatchResponse'
  { -- | An array of @BuildNotDeleted@ objects that specify the builds that could
    -- not be deleted.
    DeleteBuildBatchResponse -> Maybe [BuildNotDeleted]
buildsNotDeleted :: Prelude.Maybe [BuildNotDeleted],
    -- | An array of strings that contain the identifiers of the builds that were
    -- deleted.
    DeleteBuildBatchResponse -> Maybe (NonEmpty Text)
buildsDeleted :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The status code.
    DeleteBuildBatchResponse -> Maybe Text
statusCode :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DeleteBuildBatchResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteBuildBatchResponse -> DeleteBuildBatchResponse -> Bool
(DeleteBuildBatchResponse -> DeleteBuildBatchResponse -> Bool)
-> (DeleteBuildBatchResponse -> DeleteBuildBatchResponse -> Bool)
-> Eq DeleteBuildBatchResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBuildBatchResponse -> DeleteBuildBatchResponse -> Bool
$c/= :: DeleteBuildBatchResponse -> DeleteBuildBatchResponse -> Bool
== :: DeleteBuildBatchResponse -> DeleteBuildBatchResponse -> Bool
$c== :: DeleteBuildBatchResponse -> DeleteBuildBatchResponse -> Bool
Prelude.Eq, ReadPrec [DeleteBuildBatchResponse]
ReadPrec DeleteBuildBatchResponse
Int -> ReadS DeleteBuildBatchResponse
ReadS [DeleteBuildBatchResponse]
(Int -> ReadS DeleteBuildBatchResponse)
-> ReadS [DeleteBuildBatchResponse]
-> ReadPrec DeleteBuildBatchResponse
-> ReadPrec [DeleteBuildBatchResponse]
-> Read DeleteBuildBatchResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBuildBatchResponse]
$creadListPrec :: ReadPrec [DeleteBuildBatchResponse]
readPrec :: ReadPrec DeleteBuildBatchResponse
$creadPrec :: ReadPrec DeleteBuildBatchResponse
readList :: ReadS [DeleteBuildBatchResponse]
$creadList :: ReadS [DeleteBuildBatchResponse]
readsPrec :: Int -> ReadS DeleteBuildBatchResponse
$creadsPrec :: Int -> ReadS DeleteBuildBatchResponse
Prelude.Read, Int -> DeleteBuildBatchResponse -> ShowS
[DeleteBuildBatchResponse] -> ShowS
DeleteBuildBatchResponse -> String
(Int -> DeleteBuildBatchResponse -> ShowS)
-> (DeleteBuildBatchResponse -> String)
-> ([DeleteBuildBatchResponse] -> ShowS)
-> Show DeleteBuildBatchResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBuildBatchResponse] -> ShowS
$cshowList :: [DeleteBuildBatchResponse] -> ShowS
show :: DeleteBuildBatchResponse -> String
$cshow :: DeleteBuildBatchResponse -> String
showsPrec :: Int -> DeleteBuildBatchResponse -> ShowS
$cshowsPrec :: Int -> DeleteBuildBatchResponse -> ShowS
Prelude.Show, (forall x.
 DeleteBuildBatchResponse -> Rep DeleteBuildBatchResponse x)
-> (forall x.
    Rep DeleteBuildBatchResponse x -> DeleteBuildBatchResponse)
-> Generic DeleteBuildBatchResponse
forall x.
Rep DeleteBuildBatchResponse x -> DeleteBuildBatchResponse
forall x.
DeleteBuildBatchResponse -> Rep DeleteBuildBatchResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteBuildBatchResponse x -> DeleteBuildBatchResponse
$cfrom :: forall x.
DeleteBuildBatchResponse -> Rep DeleteBuildBatchResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteBuildBatchResponse' 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:
--
-- 'buildsNotDeleted', 'deleteBuildBatchResponse_buildsNotDeleted' - An array of @BuildNotDeleted@ objects that specify the builds that could
-- not be deleted.
--
-- 'buildsDeleted', 'deleteBuildBatchResponse_buildsDeleted' - An array of strings that contain the identifiers of the builds that were
-- deleted.
--
-- 'statusCode', 'deleteBuildBatchResponse_statusCode' - The status code.
--
-- 'httpStatus', 'deleteBuildBatchResponse_httpStatus' - The response's http status code.
newDeleteBuildBatchResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteBuildBatchResponse
newDeleteBuildBatchResponse :: Int -> DeleteBuildBatchResponse
newDeleteBuildBatchResponse Int
pHttpStatus_ =
  DeleteBuildBatchResponse' :: Maybe [BuildNotDeleted]
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Int
-> DeleteBuildBatchResponse
DeleteBuildBatchResponse'
    { $sel:buildsNotDeleted:DeleteBuildBatchResponse' :: Maybe [BuildNotDeleted]
buildsNotDeleted =
        Maybe [BuildNotDeleted]
forall a. Maybe a
Prelude.Nothing,
      $sel:buildsDeleted:DeleteBuildBatchResponse' :: Maybe (NonEmpty Text)
buildsDeleted = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:statusCode:DeleteBuildBatchResponse' :: Maybe Text
statusCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DeleteBuildBatchResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of @BuildNotDeleted@ objects that specify the builds that could
-- not be deleted.
deleteBuildBatchResponse_buildsNotDeleted :: Lens.Lens' DeleteBuildBatchResponse (Prelude.Maybe [BuildNotDeleted])
deleteBuildBatchResponse_buildsNotDeleted :: (Maybe [BuildNotDeleted] -> f (Maybe [BuildNotDeleted]))
-> DeleteBuildBatchResponse -> f DeleteBuildBatchResponse
deleteBuildBatchResponse_buildsNotDeleted = (DeleteBuildBatchResponse -> Maybe [BuildNotDeleted])
-> (DeleteBuildBatchResponse
    -> Maybe [BuildNotDeleted] -> DeleteBuildBatchResponse)
-> Lens
     DeleteBuildBatchResponse
     DeleteBuildBatchResponse
     (Maybe [BuildNotDeleted])
     (Maybe [BuildNotDeleted])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBuildBatchResponse' {Maybe [BuildNotDeleted]
buildsNotDeleted :: Maybe [BuildNotDeleted]
$sel:buildsNotDeleted:DeleteBuildBatchResponse' :: DeleteBuildBatchResponse -> Maybe [BuildNotDeleted]
buildsNotDeleted} -> Maybe [BuildNotDeleted]
buildsNotDeleted) (\s :: DeleteBuildBatchResponse
s@DeleteBuildBatchResponse' {} Maybe [BuildNotDeleted]
a -> DeleteBuildBatchResponse
s {$sel:buildsNotDeleted:DeleteBuildBatchResponse' :: Maybe [BuildNotDeleted]
buildsNotDeleted = Maybe [BuildNotDeleted]
a} :: DeleteBuildBatchResponse) ((Maybe [BuildNotDeleted] -> f (Maybe [BuildNotDeleted]))
 -> DeleteBuildBatchResponse -> f DeleteBuildBatchResponse)
-> ((Maybe [BuildNotDeleted] -> f (Maybe [BuildNotDeleted]))
    -> Maybe [BuildNotDeleted] -> f (Maybe [BuildNotDeleted]))
-> (Maybe [BuildNotDeleted] -> f (Maybe [BuildNotDeleted]))
-> DeleteBuildBatchResponse
-> f DeleteBuildBatchResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [BuildNotDeleted]
  [BuildNotDeleted]
  [BuildNotDeleted]
  [BuildNotDeleted]
-> Iso
     (Maybe [BuildNotDeleted])
     (Maybe [BuildNotDeleted])
     (Maybe [BuildNotDeleted])
     (Maybe [BuildNotDeleted])
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
  [BuildNotDeleted]
  [BuildNotDeleted]
  [BuildNotDeleted]
  [BuildNotDeleted]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An array of strings that contain the identifiers of the builds that were
-- deleted.
deleteBuildBatchResponse_buildsDeleted :: Lens.Lens' DeleteBuildBatchResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
deleteBuildBatchResponse_buildsDeleted :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DeleteBuildBatchResponse -> f DeleteBuildBatchResponse
deleteBuildBatchResponse_buildsDeleted = (DeleteBuildBatchResponse -> Maybe (NonEmpty Text))
-> (DeleteBuildBatchResponse
    -> Maybe (NonEmpty Text) -> DeleteBuildBatchResponse)
-> Lens
     DeleteBuildBatchResponse
     DeleteBuildBatchResponse
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBuildBatchResponse' {Maybe (NonEmpty Text)
buildsDeleted :: Maybe (NonEmpty Text)
$sel:buildsDeleted:DeleteBuildBatchResponse' :: DeleteBuildBatchResponse -> Maybe (NonEmpty Text)
buildsDeleted} -> Maybe (NonEmpty Text)
buildsDeleted) (\s :: DeleteBuildBatchResponse
s@DeleteBuildBatchResponse' {} Maybe (NonEmpty Text)
a -> DeleteBuildBatchResponse
s {$sel:buildsDeleted:DeleteBuildBatchResponse' :: Maybe (NonEmpty Text)
buildsDeleted = Maybe (NonEmpty Text)
a} :: DeleteBuildBatchResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> DeleteBuildBatchResponse -> f DeleteBuildBatchResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DeleteBuildBatchResponse
-> f DeleteBuildBatchResponse
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 status code.
deleteBuildBatchResponse_statusCode :: Lens.Lens' DeleteBuildBatchResponse (Prelude.Maybe Prelude.Text)
deleteBuildBatchResponse_statusCode :: (Maybe Text -> f (Maybe Text))
-> DeleteBuildBatchResponse -> f DeleteBuildBatchResponse
deleteBuildBatchResponse_statusCode = (DeleteBuildBatchResponse -> Maybe Text)
-> (DeleteBuildBatchResponse
    -> Maybe Text -> DeleteBuildBatchResponse)
-> Lens
     DeleteBuildBatchResponse
     DeleteBuildBatchResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBuildBatchResponse' {Maybe Text
statusCode :: Maybe Text
$sel:statusCode:DeleteBuildBatchResponse' :: DeleteBuildBatchResponse -> Maybe Text
statusCode} -> Maybe Text
statusCode) (\s :: DeleteBuildBatchResponse
s@DeleteBuildBatchResponse' {} Maybe Text
a -> DeleteBuildBatchResponse
s {$sel:statusCode:DeleteBuildBatchResponse' :: Maybe Text
statusCode = Maybe Text
a} :: DeleteBuildBatchResponse)

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

instance Prelude.NFData DeleteBuildBatchResponse