{-# 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.CodeCommit.GetPullRequestOverrideState
-- 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 information about whether approval rules have been set aside
-- (overridden) for a pull request, and if so, the Amazon Resource Name
-- (ARN) of the user or identity that overrode the rules and their
-- requirements for the pull request.
module Amazonka.CodeCommit.GetPullRequestOverrideState
  ( -- * Creating a Request
    GetPullRequestOverrideState (..),
    newGetPullRequestOverrideState,

    -- * Request Lenses
    getPullRequestOverrideState_pullRequestId,
    getPullRequestOverrideState_revisionId,

    -- * Destructuring the Response
    GetPullRequestOverrideStateResponse (..),
    newGetPullRequestOverrideStateResponse,

    -- * Response Lenses
    getPullRequestOverrideStateResponse_overridden,
    getPullRequestOverrideStateResponse_overrider,
    getPullRequestOverrideStateResponse_httpStatus,
  )
where

import Amazonka.CodeCommit.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:/ 'newGetPullRequestOverrideState' smart constructor.
data GetPullRequestOverrideState = GetPullRequestOverrideState'
  { -- | The ID of the pull request for which you want to get information about
    -- whether approval rules have been set aside (overridden).
    GetPullRequestOverrideState -> Text
pullRequestId :: Prelude.Text,
    -- | The system-generated ID of the revision for the pull request. To
    -- retrieve the most recent revision ID, use GetPullRequest.
    GetPullRequestOverrideState -> Text
revisionId :: Prelude.Text
  }
  deriving (GetPullRequestOverrideState -> GetPullRequestOverrideState -> Bool
(GetPullRequestOverrideState
 -> GetPullRequestOverrideState -> Bool)
-> (GetPullRequestOverrideState
    -> GetPullRequestOverrideState -> Bool)
-> Eq GetPullRequestOverrideState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPullRequestOverrideState -> GetPullRequestOverrideState -> Bool
$c/= :: GetPullRequestOverrideState -> GetPullRequestOverrideState -> Bool
== :: GetPullRequestOverrideState -> GetPullRequestOverrideState -> Bool
$c== :: GetPullRequestOverrideState -> GetPullRequestOverrideState -> Bool
Prelude.Eq, ReadPrec [GetPullRequestOverrideState]
ReadPrec GetPullRequestOverrideState
Int -> ReadS GetPullRequestOverrideState
ReadS [GetPullRequestOverrideState]
(Int -> ReadS GetPullRequestOverrideState)
-> ReadS [GetPullRequestOverrideState]
-> ReadPrec GetPullRequestOverrideState
-> ReadPrec [GetPullRequestOverrideState]
-> Read GetPullRequestOverrideState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPullRequestOverrideState]
$creadListPrec :: ReadPrec [GetPullRequestOverrideState]
readPrec :: ReadPrec GetPullRequestOverrideState
$creadPrec :: ReadPrec GetPullRequestOverrideState
readList :: ReadS [GetPullRequestOverrideState]
$creadList :: ReadS [GetPullRequestOverrideState]
readsPrec :: Int -> ReadS GetPullRequestOverrideState
$creadsPrec :: Int -> ReadS GetPullRequestOverrideState
Prelude.Read, Int -> GetPullRequestOverrideState -> ShowS
[GetPullRequestOverrideState] -> ShowS
GetPullRequestOverrideState -> String
(Int -> GetPullRequestOverrideState -> ShowS)
-> (GetPullRequestOverrideState -> String)
-> ([GetPullRequestOverrideState] -> ShowS)
-> Show GetPullRequestOverrideState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPullRequestOverrideState] -> ShowS
$cshowList :: [GetPullRequestOverrideState] -> ShowS
show :: GetPullRequestOverrideState -> String
$cshow :: GetPullRequestOverrideState -> String
showsPrec :: Int -> GetPullRequestOverrideState -> ShowS
$cshowsPrec :: Int -> GetPullRequestOverrideState -> ShowS
Prelude.Show, (forall x.
 GetPullRequestOverrideState -> Rep GetPullRequestOverrideState x)
-> (forall x.
    Rep GetPullRequestOverrideState x -> GetPullRequestOverrideState)
-> Generic GetPullRequestOverrideState
forall x.
Rep GetPullRequestOverrideState x -> GetPullRequestOverrideState
forall x.
GetPullRequestOverrideState -> Rep GetPullRequestOverrideState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPullRequestOverrideState x -> GetPullRequestOverrideState
$cfrom :: forall x.
GetPullRequestOverrideState -> Rep GetPullRequestOverrideState x
Prelude.Generic)

-- |
-- Create a value of 'GetPullRequestOverrideState' 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:
--
-- 'pullRequestId', 'getPullRequestOverrideState_pullRequestId' - The ID of the pull request for which you want to get information about
-- whether approval rules have been set aside (overridden).
--
-- 'revisionId', 'getPullRequestOverrideState_revisionId' - The system-generated ID of the revision for the pull request. To
-- retrieve the most recent revision ID, use GetPullRequest.
newGetPullRequestOverrideState ::
  -- | 'pullRequestId'
  Prelude.Text ->
  -- | 'revisionId'
  Prelude.Text ->
  GetPullRequestOverrideState
newGetPullRequestOverrideState :: Text -> Text -> GetPullRequestOverrideState
newGetPullRequestOverrideState
  Text
pPullRequestId_
  Text
pRevisionId_ =
    GetPullRequestOverrideState' :: Text -> Text -> GetPullRequestOverrideState
GetPullRequestOverrideState'
      { $sel:pullRequestId:GetPullRequestOverrideState' :: Text
pullRequestId =
          Text
pPullRequestId_,
        $sel:revisionId:GetPullRequestOverrideState' :: Text
revisionId = Text
pRevisionId_
      }

-- | The ID of the pull request for which you want to get information about
-- whether approval rules have been set aside (overridden).
getPullRequestOverrideState_pullRequestId :: Lens.Lens' GetPullRequestOverrideState Prelude.Text
getPullRequestOverrideState_pullRequestId :: (Text -> f Text)
-> GetPullRequestOverrideState -> f GetPullRequestOverrideState
getPullRequestOverrideState_pullRequestId = (GetPullRequestOverrideState -> Text)
-> (GetPullRequestOverrideState
    -> Text -> GetPullRequestOverrideState)
-> Lens
     GetPullRequestOverrideState GetPullRequestOverrideState Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPullRequestOverrideState' {Text
pullRequestId :: Text
$sel:pullRequestId:GetPullRequestOverrideState' :: GetPullRequestOverrideState -> Text
pullRequestId} -> Text
pullRequestId) (\s :: GetPullRequestOverrideState
s@GetPullRequestOverrideState' {} Text
a -> GetPullRequestOverrideState
s {$sel:pullRequestId:GetPullRequestOverrideState' :: Text
pullRequestId = Text
a} :: GetPullRequestOverrideState)

-- | The system-generated ID of the revision for the pull request. To
-- retrieve the most recent revision ID, use GetPullRequest.
getPullRequestOverrideState_revisionId :: Lens.Lens' GetPullRequestOverrideState Prelude.Text
getPullRequestOverrideState_revisionId :: (Text -> f Text)
-> GetPullRequestOverrideState -> f GetPullRequestOverrideState
getPullRequestOverrideState_revisionId = (GetPullRequestOverrideState -> Text)
-> (GetPullRequestOverrideState
    -> Text -> GetPullRequestOverrideState)
-> Lens
     GetPullRequestOverrideState GetPullRequestOverrideState Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPullRequestOverrideState' {Text
revisionId :: Text
$sel:revisionId:GetPullRequestOverrideState' :: GetPullRequestOverrideState -> Text
revisionId} -> Text
revisionId) (\s :: GetPullRequestOverrideState
s@GetPullRequestOverrideState' {} Text
a -> GetPullRequestOverrideState
s {$sel:revisionId:GetPullRequestOverrideState' :: Text
revisionId = Text
a} :: GetPullRequestOverrideState)

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

instance Prelude.NFData GetPullRequestOverrideState

instance Core.ToHeaders GetPullRequestOverrideState where
  toHeaders :: GetPullRequestOverrideState -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetPullRequestOverrideState -> 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
"CodeCommit_20150413.GetPullRequestOverrideState" ::
                          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 GetPullRequestOverrideState where
  toJSON :: GetPullRequestOverrideState -> Value
toJSON GetPullRequestOverrideState' {Text
revisionId :: Text
pullRequestId :: Text
$sel:revisionId:GetPullRequestOverrideState' :: GetPullRequestOverrideState -> Text
$sel:pullRequestId:GetPullRequestOverrideState' :: GetPullRequestOverrideState -> 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
"pullRequestId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
pullRequestId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"revisionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
revisionId)
          ]
      )

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

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

-- | /See:/ 'newGetPullRequestOverrideStateResponse' smart constructor.
data GetPullRequestOverrideStateResponse = GetPullRequestOverrideStateResponse'
  { -- | A Boolean value that indicates whether a pull request has had its rules
    -- set aside (TRUE) or whether all approval rules still apply (FALSE).
    GetPullRequestOverrideStateResponse -> Maybe Bool
overridden :: Prelude.Maybe Prelude.Bool,
    -- | The Amazon Resource Name (ARN) of the user or identity that overrode the
    -- rules and their requirements for the pull request.
    GetPullRequestOverrideStateResponse -> Maybe Text
overrider :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetPullRequestOverrideStateResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetPullRequestOverrideStateResponse
-> GetPullRequestOverrideStateResponse -> Bool
(GetPullRequestOverrideStateResponse
 -> GetPullRequestOverrideStateResponse -> Bool)
-> (GetPullRequestOverrideStateResponse
    -> GetPullRequestOverrideStateResponse -> Bool)
-> Eq GetPullRequestOverrideStateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPullRequestOverrideStateResponse
-> GetPullRequestOverrideStateResponse -> Bool
$c/= :: GetPullRequestOverrideStateResponse
-> GetPullRequestOverrideStateResponse -> Bool
== :: GetPullRequestOverrideStateResponse
-> GetPullRequestOverrideStateResponse -> Bool
$c== :: GetPullRequestOverrideStateResponse
-> GetPullRequestOverrideStateResponse -> Bool
Prelude.Eq, ReadPrec [GetPullRequestOverrideStateResponse]
ReadPrec GetPullRequestOverrideStateResponse
Int -> ReadS GetPullRequestOverrideStateResponse
ReadS [GetPullRequestOverrideStateResponse]
(Int -> ReadS GetPullRequestOverrideStateResponse)
-> ReadS [GetPullRequestOverrideStateResponse]
-> ReadPrec GetPullRequestOverrideStateResponse
-> ReadPrec [GetPullRequestOverrideStateResponse]
-> Read GetPullRequestOverrideStateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPullRequestOverrideStateResponse]
$creadListPrec :: ReadPrec [GetPullRequestOverrideStateResponse]
readPrec :: ReadPrec GetPullRequestOverrideStateResponse
$creadPrec :: ReadPrec GetPullRequestOverrideStateResponse
readList :: ReadS [GetPullRequestOverrideStateResponse]
$creadList :: ReadS [GetPullRequestOverrideStateResponse]
readsPrec :: Int -> ReadS GetPullRequestOverrideStateResponse
$creadsPrec :: Int -> ReadS GetPullRequestOverrideStateResponse
Prelude.Read, Int -> GetPullRequestOverrideStateResponse -> ShowS
[GetPullRequestOverrideStateResponse] -> ShowS
GetPullRequestOverrideStateResponse -> String
(Int -> GetPullRequestOverrideStateResponse -> ShowS)
-> (GetPullRequestOverrideStateResponse -> String)
-> ([GetPullRequestOverrideStateResponse] -> ShowS)
-> Show GetPullRequestOverrideStateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPullRequestOverrideStateResponse] -> ShowS
$cshowList :: [GetPullRequestOverrideStateResponse] -> ShowS
show :: GetPullRequestOverrideStateResponse -> String
$cshow :: GetPullRequestOverrideStateResponse -> String
showsPrec :: Int -> GetPullRequestOverrideStateResponse -> ShowS
$cshowsPrec :: Int -> GetPullRequestOverrideStateResponse -> ShowS
Prelude.Show, (forall x.
 GetPullRequestOverrideStateResponse
 -> Rep GetPullRequestOverrideStateResponse x)
-> (forall x.
    Rep GetPullRequestOverrideStateResponse x
    -> GetPullRequestOverrideStateResponse)
-> Generic GetPullRequestOverrideStateResponse
forall x.
Rep GetPullRequestOverrideStateResponse x
-> GetPullRequestOverrideStateResponse
forall x.
GetPullRequestOverrideStateResponse
-> Rep GetPullRequestOverrideStateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPullRequestOverrideStateResponse x
-> GetPullRequestOverrideStateResponse
$cfrom :: forall x.
GetPullRequestOverrideStateResponse
-> Rep GetPullRequestOverrideStateResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetPullRequestOverrideStateResponse' 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:
--
-- 'overridden', 'getPullRequestOverrideStateResponse_overridden' - A Boolean value that indicates whether a pull request has had its rules
-- set aside (TRUE) or whether all approval rules still apply (FALSE).
--
-- 'overrider', 'getPullRequestOverrideStateResponse_overrider' - The Amazon Resource Name (ARN) of the user or identity that overrode the
-- rules and their requirements for the pull request.
--
-- 'httpStatus', 'getPullRequestOverrideStateResponse_httpStatus' - The response's http status code.
newGetPullRequestOverrideStateResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetPullRequestOverrideStateResponse
newGetPullRequestOverrideStateResponse :: Int -> GetPullRequestOverrideStateResponse
newGetPullRequestOverrideStateResponse Int
pHttpStatus_ =
  GetPullRequestOverrideStateResponse' :: Maybe Bool
-> Maybe Text -> Int -> GetPullRequestOverrideStateResponse
GetPullRequestOverrideStateResponse'
    { $sel:overridden:GetPullRequestOverrideStateResponse' :: Maybe Bool
overridden =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:overrider:GetPullRequestOverrideStateResponse' :: Maybe Text
overrider = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetPullRequestOverrideStateResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A Boolean value that indicates whether a pull request has had its rules
-- set aside (TRUE) or whether all approval rules still apply (FALSE).
getPullRequestOverrideStateResponse_overridden :: Lens.Lens' GetPullRequestOverrideStateResponse (Prelude.Maybe Prelude.Bool)
getPullRequestOverrideStateResponse_overridden :: (Maybe Bool -> f (Maybe Bool))
-> GetPullRequestOverrideStateResponse
-> f GetPullRequestOverrideStateResponse
getPullRequestOverrideStateResponse_overridden = (GetPullRequestOverrideStateResponse -> Maybe Bool)
-> (GetPullRequestOverrideStateResponse
    -> Maybe Bool -> GetPullRequestOverrideStateResponse)
-> Lens
     GetPullRequestOverrideStateResponse
     GetPullRequestOverrideStateResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPullRequestOverrideStateResponse' {Maybe Bool
overridden :: Maybe Bool
$sel:overridden:GetPullRequestOverrideStateResponse' :: GetPullRequestOverrideStateResponse -> Maybe Bool
overridden} -> Maybe Bool
overridden) (\s :: GetPullRequestOverrideStateResponse
s@GetPullRequestOverrideStateResponse' {} Maybe Bool
a -> GetPullRequestOverrideStateResponse
s {$sel:overridden:GetPullRequestOverrideStateResponse' :: Maybe Bool
overridden = Maybe Bool
a} :: GetPullRequestOverrideStateResponse)

-- | The Amazon Resource Name (ARN) of the user or identity that overrode the
-- rules and their requirements for the pull request.
getPullRequestOverrideStateResponse_overrider :: Lens.Lens' GetPullRequestOverrideStateResponse (Prelude.Maybe Prelude.Text)
getPullRequestOverrideStateResponse_overrider :: (Maybe Text -> f (Maybe Text))
-> GetPullRequestOverrideStateResponse
-> f GetPullRequestOverrideStateResponse
getPullRequestOverrideStateResponse_overrider = (GetPullRequestOverrideStateResponse -> Maybe Text)
-> (GetPullRequestOverrideStateResponse
    -> Maybe Text -> GetPullRequestOverrideStateResponse)
-> Lens
     GetPullRequestOverrideStateResponse
     GetPullRequestOverrideStateResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPullRequestOverrideStateResponse' {Maybe Text
overrider :: Maybe Text
$sel:overrider:GetPullRequestOverrideStateResponse' :: GetPullRequestOverrideStateResponse -> Maybe Text
overrider} -> Maybe Text
overrider) (\s :: GetPullRequestOverrideStateResponse
s@GetPullRequestOverrideStateResponse' {} Maybe Text
a -> GetPullRequestOverrideStateResponse
s {$sel:overrider:GetPullRequestOverrideStateResponse' :: Maybe Text
overrider = Maybe Text
a} :: GetPullRequestOverrideStateResponse)

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

instance
  Prelude.NFData
    GetPullRequestOverrideStateResponse