{-# 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.DeviceFarm.UpdateTestGridProject
-- 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)
--
-- Change details of a project.
module Amazonka.DeviceFarm.UpdateTestGridProject
  ( -- * Creating a Request
    UpdateTestGridProject (..),
    newUpdateTestGridProject,

    -- * Request Lenses
    updateTestGridProject_name,
    updateTestGridProject_vpcConfig,
    updateTestGridProject_description,
    updateTestGridProject_projectArn,

    -- * Destructuring the Response
    UpdateTestGridProjectResponse (..),
    newUpdateTestGridProjectResponse,

    -- * Response Lenses
    updateTestGridProjectResponse_testGridProject,
    updateTestGridProjectResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DeviceFarm.Types
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:/ 'newUpdateTestGridProject' smart constructor.
data UpdateTestGridProject = UpdateTestGridProject'
  { -- | Human-readable name for the project.
    UpdateTestGridProject -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The VPC security groups and subnets that are attached to a project.
    UpdateTestGridProject -> Maybe TestGridVpcConfig
vpcConfig :: Prelude.Maybe TestGridVpcConfig,
    -- | Human-readable description for the project.
    UpdateTestGridProject -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | ARN of the project to update.
    UpdateTestGridProject -> Text
projectArn :: Prelude.Text
  }
  deriving (UpdateTestGridProject -> UpdateTestGridProject -> Bool
(UpdateTestGridProject -> UpdateTestGridProject -> Bool)
-> (UpdateTestGridProject -> UpdateTestGridProject -> Bool)
-> Eq UpdateTestGridProject
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTestGridProject -> UpdateTestGridProject -> Bool
$c/= :: UpdateTestGridProject -> UpdateTestGridProject -> Bool
== :: UpdateTestGridProject -> UpdateTestGridProject -> Bool
$c== :: UpdateTestGridProject -> UpdateTestGridProject -> Bool
Prelude.Eq, ReadPrec [UpdateTestGridProject]
ReadPrec UpdateTestGridProject
Int -> ReadS UpdateTestGridProject
ReadS [UpdateTestGridProject]
(Int -> ReadS UpdateTestGridProject)
-> ReadS [UpdateTestGridProject]
-> ReadPrec UpdateTestGridProject
-> ReadPrec [UpdateTestGridProject]
-> Read UpdateTestGridProject
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTestGridProject]
$creadListPrec :: ReadPrec [UpdateTestGridProject]
readPrec :: ReadPrec UpdateTestGridProject
$creadPrec :: ReadPrec UpdateTestGridProject
readList :: ReadS [UpdateTestGridProject]
$creadList :: ReadS [UpdateTestGridProject]
readsPrec :: Int -> ReadS UpdateTestGridProject
$creadsPrec :: Int -> ReadS UpdateTestGridProject
Prelude.Read, Int -> UpdateTestGridProject -> ShowS
[UpdateTestGridProject] -> ShowS
UpdateTestGridProject -> String
(Int -> UpdateTestGridProject -> ShowS)
-> (UpdateTestGridProject -> String)
-> ([UpdateTestGridProject] -> ShowS)
-> Show UpdateTestGridProject
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTestGridProject] -> ShowS
$cshowList :: [UpdateTestGridProject] -> ShowS
show :: UpdateTestGridProject -> String
$cshow :: UpdateTestGridProject -> String
showsPrec :: Int -> UpdateTestGridProject -> ShowS
$cshowsPrec :: Int -> UpdateTestGridProject -> ShowS
Prelude.Show, (forall x. UpdateTestGridProject -> Rep UpdateTestGridProject x)
-> (forall x. Rep UpdateTestGridProject x -> UpdateTestGridProject)
-> Generic UpdateTestGridProject
forall x. Rep UpdateTestGridProject x -> UpdateTestGridProject
forall x. UpdateTestGridProject -> Rep UpdateTestGridProject x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateTestGridProject x -> UpdateTestGridProject
$cfrom :: forall x. UpdateTestGridProject -> Rep UpdateTestGridProject x
Prelude.Generic)

-- |
-- Create a value of 'UpdateTestGridProject' 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:
--
-- 'name', 'updateTestGridProject_name' - Human-readable name for the project.
--
-- 'vpcConfig', 'updateTestGridProject_vpcConfig' - The VPC security groups and subnets that are attached to a project.
--
-- 'description', 'updateTestGridProject_description' - Human-readable description for the project.
--
-- 'projectArn', 'updateTestGridProject_projectArn' - ARN of the project to update.
newUpdateTestGridProject ::
  -- | 'projectArn'
  Prelude.Text ->
  UpdateTestGridProject
newUpdateTestGridProject :: Text -> UpdateTestGridProject
newUpdateTestGridProject Text
pProjectArn_ =
  UpdateTestGridProject' :: Maybe Text
-> Maybe TestGridVpcConfig
-> Maybe Text
-> Text
-> UpdateTestGridProject
UpdateTestGridProject'
    { $sel:name:UpdateTestGridProject' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcConfig:UpdateTestGridProject' :: Maybe TestGridVpcConfig
vpcConfig = Maybe TestGridVpcConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:description:UpdateTestGridProject' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:projectArn:UpdateTestGridProject' :: Text
projectArn = Text
pProjectArn_
    }

-- | Human-readable name for the project.
updateTestGridProject_name :: Lens.Lens' UpdateTestGridProject (Prelude.Maybe Prelude.Text)
updateTestGridProject_name :: (Maybe Text -> f (Maybe Text))
-> UpdateTestGridProject -> f UpdateTestGridProject
updateTestGridProject_name = (UpdateTestGridProject -> Maybe Text)
-> (UpdateTestGridProject -> Maybe Text -> UpdateTestGridProject)
-> Lens
     UpdateTestGridProject
     UpdateTestGridProject
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTestGridProject' {Maybe Text
name :: Maybe Text
$sel:name:UpdateTestGridProject' :: UpdateTestGridProject -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateTestGridProject
s@UpdateTestGridProject' {} Maybe Text
a -> UpdateTestGridProject
s {$sel:name:UpdateTestGridProject' :: Maybe Text
name = Maybe Text
a} :: UpdateTestGridProject)

-- | The VPC security groups and subnets that are attached to a project.
updateTestGridProject_vpcConfig :: Lens.Lens' UpdateTestGridProject (Prelude.Maybe TestGridVpcConfig)
updateTestGridProject_vpcConfig :: (Maybe TestGridVpcConfig -> f (Maybe TestGridVpcConfig))
-> UpdateTestGridProject -> f UpdateTestGridProject
updateTestGridProject_vpcConfig = (UpdateTestGridProject -> Maybe TestGridVpcConfig)
-> (UpdateTestGridProject
    -> Maybe TestGridVpcConfig -> UpdateTestGridProject)
-> Lens
     UpdateTestGridProject
     UpdateTestGridProject
     (Maybe TestGridVpcConfig)
     (Maybe TestGridVpcConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTestGridProject' {Maybe TestGridVpcConfig
vpcConfig :: Maybe TestGridVpcConfig
$sel:vpcConfig:UpdateTestGridProject' :: UpdateTestGridProject -> Maybe TestGridVpcConfig
vpcConfig} -> Maybe TestGridVpcConfig
vpcConfig) (\s :: UpdateTestGridProject
s@UpdateTestGridProject' {} Maybe TestGridVpcConfig
a -> UpdateTestGridProject
s {$sel:vpcConfig:UpdateTestGridProject' :: Maybe TestGridVpcConfig
vpcConfig = Maybe TestGridVpcConfig
a} :: UpdateTestGridProject)

-- | Human-readable description for the project.
updateTestGridProject_description :: Lens.Lens' UpdateTestGridProject (Prelude.Maybe Prelude.Text)
updateTestGridProject_description :: (Maybe Text -> f (Maybe Text))
-> UpdateTestGridProject -> f UpdateTestGridProject
updateTestGridProject_description = (UpdateTestGridProject -> Maybe Text)
-> (UpdateTestGridProject -> Maybe Text -> UpdateTestGridProject)
-> Lens
     UpdateTestGridProject
     UpdateTestGridProject
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTestGridProject' {Maybe Text
description :: Maybe Text
$sel:description:UpdateTestGridProject' :: UpdateTestGridProject -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateTestGridProject
s@UpdateTestGridProject' {} Maybe Text
a -> UpdateTestGridProject
s {$sel:description:UpdateTestGridProject' :: Maybe Text
description = Maybe Text
a} :: UpdateTestGridProject)

-- | ARN of the project to update.
updateTestGridProject_projectArn :: Lens.Lens' UpdateTestGridProject Prelude.Text
updateTestGridProject_projectArn :: (Text -> f Text)
-> UpdateTestGridProject -> f UpdateTestGridProject
updateTestGridProject_projectArn = (UpdateTestGridProject -> Text)
-> (UpdateTestGridProject -> Text -> UpdateTestGridProject)
-> Lens UpdateTestGridProject UpdateTestGridProject Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTestGridProject' {Text
projectArn :: Text
$sel:projectArn:UpdateTestGridProject' :: UpdateTestGridProject -> Text
projectArn} -> Text
projectArn) (\s :: UpdateTestGridProject
s@UpdateTestGridProject' {} Text
a -> UpdateTestGridProject
s {$sel:projectArn:UpdateTestGridProject' :: Text
projectArn = Text
a} :: UpdateTestGridProject)

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

instance Prelude.NFData UpdateTestGridProject

instance Core.ToHeaders UpdateTestGridProject where
  toHeaders :: UpdateTestGridProject -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateTestGridProject -> 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
"DeviceFarm_20150623.UpdateTestGridProject" ::
                          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 UpdateTestGridProject where
  toJSON :: UpdateTestGridProject -> Value
toJSON UpdateTestGridProject' {Maybe Text
Maybe TestGridVpcConfig
Text
projectArn :: Text
description :: Maybe Text
vpcConfig :: Maybe TestGridVpcConfig
name :: Maybe Text
$sel:projectArn:UpdateTestGridProject' :: UpdateTestGridProject -> Text
$sel:description:UpdateTestGridProject' :: UpdateTestGridProject -> Maybe Text
$sel:vpcConfig:UpdateTestGridProject' :: UpdateTestGridProject -> Maybe TestGridVpcConfig
$sel:name:UpdateTestGridProject' :: UpdateTestGridProject -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"name" 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
name,
            (Text
"vpcConfig" Text -> TestGridVpcConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (TestGridVpcConfig -> Pair)
-> Maybe TestGridVpcConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TestGridVpcConfig
vpcConfig,
            (Text
"description" 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
description,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"projectArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
projectArn)
          ]
      )

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

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

-- | /See:/ 'newUpdateTestGridProjectResponse' smart constructor.
data UpdateTestGridProjectResponse = UpdateTestGridProjectResponse'
  { -- | The project, including updated information.
    UpdateTestGridProjectResponse -> Maybe TestGridProject
testGridProject :: Prelude.Maybe TestGridProject,
    -- | The response's http status code.
    UpdateTestGridProjectResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateTestGridProjectResponse
-> UpdateTestGridProjectResponse -> Bool
(UpdateTestGridProjectResponse
 -> UpdateTestGridProjectResponse -> Bool)
-> (UpdateTestGridProjectResponse
    -> UpdateTestGridProjectResponse -> Bool)
-> Eq UpdateTestGridProjectResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTestGridProjectResponse
-> UpdateTestGridProjectResponse -> Bool
$c/= :: UpdateTestGridProjectResponse
-> UpdateTestGridProjectResponse -> Bool
== :: UpdateTestGridProjectResponse
-> UpdateTestGridProjectResponse -> Bool
$c== :: UpdateTestGridProjectResponse
-> UpdateTestGridProjectResponse -> Bool
Prelude.Eq, ReadPrec [UpdateTestGridProjectResponse]
ReadPrec UpdateTestGridProjectResponse
Int -> ReadS UpdateTestGridProjectResponse
ReadS [UpdateTestGridProjectResponse]
(Int -> ReadS UpdateTestGridProjectResponse)
-> ReadS [UpdateTestGridProjectResponse]
-> ReadPrec UpdateTestGridProjectResponse
-> ReadPrec [UpdateTestGridProjectResponse]
-> Read UpdateTestGridProjectResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTestGridProjectResponse]
$creadListPrec :: ReadPrec [UpdateTestGridProjectResponse]
readPrec :: ReadPrec UpdateTestGridProjectResponse
$creadPrec :: ReadPrec UpdateTestGridProjectResponse
readList :: ReadS [UpdateTestGridProjectResponse]
$creadList :: ReadS [UpdateTestGridProjectResponse]
readsPrec :: Int -> ReadS UpdateTestGridProjectResponse
$creadsPrec :: Int -> ReadS UpdateTestGridProjectResponse
Prelude.Read, Int -> UpdateTestGridProjectResponse -> ShowS
[UpdateTestGridProjectResponse] -> ShowS
UpdateTestGridProjectResponse -> String
(Int -> UpdateTestGridProjectResponse -> ShowS)
-> (UpdateTestGridProjectResponse -> String)
-> ([UpdateTestGridProjectResponse] -> ShowS)
-> Show UpdateTestGridProjectResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTestGridProjectResponse] -> ShowS
$cshowList :: [UpdateTestGridProjectResponse] -> ShowS
show :: UpdateTestGridProjectResponse -> String
$cshow :: UpdateTestGridProjectResponse -> String
showsPrec :: Int -> UpdateTestGridProjectResponse -> ShowS
$cshowsPrec :: Int -> UpdateTestGridProjectResponse -> ShowS
Prelude.Show, (forall x.
 UpdateTestGridProjectResponse
 -> Rep UpdateTestGridProjectResponse x)
-> (forall x.
    Rep UpdateTestGridProjectResponse x
    -> UpdateTestGridProjectResponse)
-> Generic UpdateTestGridProjectResponse
forall x.
Rep UpdateTestGridProjectResponse x
-> UpdateTestGridProjectResponse
forall x.
UpdateTestGridProjectResponse
-> Rep UpdateTestGridProjectResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateTestGridProjectResponse x
-> UpdateTestGridProjectResponse
$cfrom :: forall x.
UpdateTestGridProjectResponse
-> Rep UpdateTestGridProjectResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateTestGridProjectResponse' 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:
--
-- 'testGridProject', 'updateTestGridProjectResponse_testGridProject' - The project, including updated information.
--
-- 'httpStatus', 'updateTestGridProjectResponse_httpStatus' - The response's http status code.
newUpdateTestGridProjectResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateTestGridProjectResponse
newUpdateTestGridProjectResponse :: Int -> UpdateTestGridProjectResponse
newUpdateTestGridProjectResponse Int
pHttpStatus_ =
  UpdateTestGridProjectResponse' :: Maybe TestGridProject -> Int -> UpdateTestGridProjectResponse
UpdateTestGridProjectResponse'
    { $sel:testGridProject:UpdateTestGridProjectResponse' :: Maybe TestGridProject
testGridProject =
        Maybe TestGridProject
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateTestGridProjectResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The project, including updated information.
updateTestGridProjectResponse_testGridProject :: Lens.Lens' UpdateTestGridProjectResponse (Prelude.Maybe TestGridProject)
updateTestGridProjectResponse_testGridProject :: (Maybe TestGridProject -> f (Maybe TestGridProject))
-> UpdateTestGridProjectResponse -> f UpdateTestGridProjectResponse
updateTestGridProjectResponse_testGridProject = (UpdateTestGridProjectResponse -> Maybe TestGridProject)
-> (UpdateTestGridProjectResponse
    -> Maybe TestGridProject -> UpdateTestGridProjectResponse)
-> Lens
     UpdateTestGridProjectResponse
     UpdateTestGridProjectResponse
     (Maybe TestGridProject)
     (Maybe TestGridProject)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTestGridProjectResponse' {Maybe TestGridProject
testGridProject :: Maybe TestGridProject
$sel:testGridProject:UpdateTestGridProjectResponse' :: UpdateTestGridProjectResponse -> Maybe TestGridProject
testGridProject} -> Maybe TestGridProject
testGridProject) (\s :: UpdateTestGridProjectResponse
s@UpdateTestGridProjectResponse' {} Maybe TestGridProject
a -> UpdateTestGridProjectResponse
s {$sel:testGridProject:UpdateTestGridProjectResponse' :: Maybe TestGridProject
testGridProject = Maybe TestGridProject
a} :: UpdateTestGridProjectResponse)

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

instance Prelude.NFData UpdateTestGridProjectResponse