{-# 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 #-}
module Amazonka.CodeCommit.UpdatePullRequestApprovalRuleContent
(
UpdatePullRequestApprovalRuleContent (..),
newUpdatePullRequestApprovalRuleContent,
updatePullRequestApprovalRuleContent_existingRuleContentSha256,
updatePullRequestApprovalRuleContent_pullRequestId,
updatePullRequestApprovalRuleContent_approvalRuleName,
updatePullRequestApprovalRuleContent_newRuleContent,
UpdatePullRequestApprovalRuleContentResponse (..),
newUpdatePullRequestApprovalRuleContentResponse,
updatePullRequestApprovalRuleContentResponse_httpStatus,
updatePullRequestApprovalRuleContentResponse_approvalRule,
)
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
data UpdatePullRequestApprovalRuleContent = UpdatePullRequestApprovalRuleContent'
{
UpdatePullRequestApprovalRuleContent -> Maybe Text
existingRuleContentSha256 :: Prelude.Maybe Prelude.Text,
UpdatePullRequestApprovalRuleContent -> Text
pullRequestId :: Prelude.Text,
UpdatePullRequestApprovalRuleContent -> Text
approvalRuleName :: Prelude.Text,
UpdatePullRequestApprovalRuleContent -> Text
newRuleContent' :: Prelude.Text
}
deriving (UpdatePullRequestApprovalRuleContent
-> UpdatePullRequestApprovalRuleContent -> Bool
(UpdatePullRequestApprovalRuleContent
-> UpdatePullRequestApprovalRuleContent -> Bool)
-> (UpdatePullRequestApprovalRuleContent
-> UpdatePullRequestApprovalRuleContent -> Bool)
-> Eq UpdatePullRequestApprovalRuleContent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePullRequestApprovalRuleContent
-> UpdatePullRequestApprovalRuleContent -> Bool
$c/= :: UpdatePullRequestApprovalRuleContent
-> UpdatePullRequestApprovalRuleContent -> Bool
== :: UpdatePullRequestApprovalRuleContent
-> UpdatePullRequestApprovalRuleContent -> Bool
$c== :: UpdatePullRequestApprovalRuleContent
-> UpdatePullRequestApprovalRuleContent -> Bool
Prelude.Eq, ReadPrec [UpdatePullRequestApprovalRuleContent]
ReadPrec UpdatePullRequestApprovalRuleContent
Int -> ReadS UpdatePullRequestApprovalRuleContent
ReadS [UpdatePullRequestApprovalRuleContent]
(Int -> ReadS UpdatePullRequestApprovalRuleContent)
-> ReadS [UpdatePullRequestApprovalRuleContent]
-> ReadPrec UpdatePullRequestApprovalRuleContent
-> ReadPrec [UpdatePullRequestApprovalRuleContent]
-> Read UpdatePullRequestApprovalRuleContent
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePullRequestApprovalRuleContent]
$creadListPrec :: ReadPrec [UpdatePullRequestApprovalRuleContent]
readPrec :: ReadPrec UpdatePullRequestApprovalRuleContent
$creadPrec :: ReadPrec UpdatePullRequestApprovalRuleContent
readList :: ReadS [UpdatePullRequestApprovalRuleContent]
$creadList :: ReadS [UpdatePullRequestApprovalRuleContent]
readsPrec :: Int -> ReadS UpdatePullRequestApprovalRuleContent
$creadsPrec :: Int -> ReadS UpdatePullRequestApprovalRuleContent
Prelude.Read, Int -> UpdatePullRequestApprovalRuleContent -> ShowS
[UpdatePullRequestApprovalRuleContent] -> ShowS
UpdatePullRequestApprovalRuleContent -> String
(Int -> UpdatePullRequestApprovalRuleContent -> ShowS)
-> (UpdatePullRequestApprovalRuleContent -> String)
-> ([UpdatePullRequestApprovalRuleContent] -> ShowS)
-> Show UpdatePullRequestApprovalRuleContent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePullRequestApprovalRuleContent] -> ShowS
$cshowList :: [UpdatePullRequestApprovalRuleContent] -> ShowS
show :: UpdatePullRequestApprovalRuleContent -> String
$cshow :: UpdatePullRequestApprovalRuleContent -> String
showsPrec :: Int -> UpdatePullRequestApprovalRuleContent -> ShowS
$cshowsPrec :: Int -> UpdatePullRequestApprovalRuleContent -> ShowS
Prelude.Show, (forall x.
UpdatePullRequestApprovalRuleContent
-> Rep UpdatePullRequestApprovalRuleContent x)
-> (forall x.
Rep UpdatePullRequestApprovalRuleContent x
-> UpdatePullRequestApprovalRuleContent)
-> Generic UpdatePullRequestApprovalRuleContent
forall x.
Rep UpdatePullRequestApprovalRuleContent x
-> UpdatePullRequestApprovalRuleContent
forall x.
UpdatePullRequestApprovalRuleContent
-> Rep UpdatePullRequestApprovalRuleContent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdatePullRequestApprovalRuleContent x
-> UpdatePullRequestApprovalRuleContent
$cfrom :: forall x.
UpdatePullRequestApprovalRuleContent
-> Rep UpdatePullRequestApprovalRuleContent x
Prelude.Generic)
newUpdatePullRequestApprovalRuleContent ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
UpdatePullRequestApprovalRuleContent
newUpdatePullRequestApprovalRuleContent :: Text -> Text -> Text -> UpdatePullRequestApprovalRuleContent
newUpdatePullRequestApprovalRuleContent
Text
pPullRequestId_
Text
pApprovalRuleName_
Text
pNewRuleContent_ =
UpdatePullRequestApprovalRuleContent' :: Maybe Text
-> Text -> Text -> Text -> UpdatePullRequestApprovalRuleContent
UpdatePullRequestApprovalRuleContent'
{ $sel:existingRuleContentSha256:UpdatePullRequestApprovalRuleContent' :: Maybe Text
existingRuleContentSha256 =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pullRequestId:UpdatePullRequestApprovalRuleContent' :: Text
pullRequestId = Text
pPullRequestId_,
$sel:approvalRuleName:UpdatePullRequestApprovalRuleContent' :: Text
approvalRuleName = Text
pApprovalRuleName_,
$sel:newRuleContent':UpdatePullRequestApprovalRuleContent' :: Text
newRuleContent' = Text
pNewRuleContent_
}
updatePullRequestApprovalRuleContent_existingRuleContentSha256 :: Lens.Lens' UpdatePullRequestApprovalRuleContent (Prelude.Maybe Prelude.Text)
updatePullRequestApprovalRuleContent_existingRuleContentSha256 :: (Maybe Text -> f (Maybe Text))
-> UpdatePullRequestApprovalRuleContent
-> f UpdatePullRequestApprovalRuleContent
updatePullRequestApprovalRuleContent_existingRuleContentSha256 = (UpdatePullRequestApprovalRuleContent -> Maybe Text)
-> (UpdatePullRequestApprovalRuleContent
-> Maybe Text -> UpdatePullRequestApprovalRuleContent)
-> Lens
UpdatePullRequestApprovalRuleContent
UpdatePullRequestApprovalRuleContent
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePullRequestApprovalRuleContent' {Maybe Text
existingRuleContentSha256 :: Maybe Text
$sel:existingRuleContentSha256:UpdatePullRequestApprovalRuleContent' :: UpdatePullRequestApprovalRuleContent -> Maybe Text
existingRuleContentSha256} -> Maybe Text
existingRuleContentSha256) (\s :: UpdatePullRequestApprovalRuleContent
s@UpdatePullRequestApprovalRuleContent' {} Maybe Text
a -> UpdatePullRequestApprovalRuleContent
s {$sel:existingRuleContentSha256:UpdatePullRequestApprovalRuleContent' :: Maybe Text
existingRuleContentSha256 = Maybe Text
a} :: UpdatePullRequestApprovalRuleContent)
updatePullRequestApprovalRuleContent_pullRequestId :: Lens.Lens' UpdatePullRequestApprovalRuleContent Prelude.Text
updatePullRequestApprovalRuleContent_pullRequestId :: (Text -> f Text)
-> UpdatePullRequestApprovalRuleContent
-> f UpdatePullRequestApprovalRuleContent
updatePullRequestApprovalRuleContent_pullRequestId = (UpdatePullRequestApprovalRuleContent -> Text)
-> (UpdatePullRequestApprovalRuleContent
-> Text -> UpdatePullRequestApprovalRuleContent)
-> Lens
UpdatePullRequestApprovalRuleContent
UpdatePullRequestApprovalRuleContent
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePullRequestApprovalRuleContent' {Text
pullRequestId :: Text
$sel:pullRequestId:UpdatePullRequestApprovalRuleContent' :: UpdatePullRequestApprovalRuleContent -> Text
pullRequestId} -> Text
pullRequestId) (\s :: UpdatePullRequestApprovalRuleContent
s@UpdatePullRequestApprovalRuleContent' {} Text
a -> UpdatePullRequestApprovalRuleContent
s {$sel:pullRequestId:UpdatePullRequestApprovalRuleContent' :: Text
pullRequestId = Text
a} :: UpdatePullRequestApprovalRuleContent)
updatePullRequestApprovalRuleContent_approvalRuleName :: Lens.Lens' UpdatePullRequestApprovalRuleContent Prelude.Text
updatePullRequestApprovalRuleContent_approvalRuleName :: (Text -> f Text)
-> UpdatePullRequestApprovalRuleContent
-> f UpdatePullRequestApprovalRuleContent
updatePullRequestApprovalRuleContent_approvalRuleName = (UpdatePullRequestApprovalRuleContent -> Text)
-> (UpdatePullRequestApprovalRuleContent
-> Text -> UpdatePullRequestApprovalRuleContent)
-> Lens
UpdatePullRequestApprovalRuleContent
UpdatePullRequestApprovalRuleContent
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePullRequestApprovalRuleContent' {Text
approvalRuleName :: Text
$sel:approvalRuleName:UpdatePullRequestApprovalRuleContent' :: UpdatePullRequestApprovalRuleContent -> Text
approvalRuleName} -> Text
approvalRuleName) (\s :: UpdatePullRequestApprovalRuleContent
s@UpdatePullRequestApprovalRuleContent' {} Text
a -> UpdatePullRequestApprovalRuleContent
s {$sel:approvalRuleName:UpdatePullRequestApprovalRuleContent' :: Text
approvalRuleName = Text
a} :: UpdatePullRequestApprovalRuleContent)
updatePullRequestApprovalRuleContent_newRuleContent :: Lens.Lens' UpdatePullRequestApprovalRuleContent Prelude.Text
updatePullRequestApprovalRuleContent_newRuleContent :: (Text -> f Text)
-> UpdatePullRequestApprovalRuleContent
-> f UpdatePullRequestApprovalRuleContent
updatePullRequestApprovalRuleContent_newRuleContent = (UpdatePullRequestApprovalRuleContent -> Text)
-> (UpdatePullRequestApprovalRuleContent
-> Text -> UpdatePullRequestApprovalRuleContent)
-> Lens
UpdatePullRequestApprovalRuleContent
UpdatePullRequestApprovalRuleContent
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePullRequestApprovalRuleContent' {Text
newRuleContent' :: Text
$sel:newRuleContent':UpdatePullRequestApprovalRuleContent' :: UpdatePullRequestApprovalRuleContent -> Text
newRuleContent'} -> Text
newRuleContent') (\s :: UpdatePullRequestApprovalRuleContent
s@UpdatePullRequestApprovalRuleContent' {} Text
a -> UpdatePullRequestApprovalRuleContent
s {$sel:newRuleContent':UpdatePullRequestApprovalRuleContent' :: Text
newRuleContent' = Text
a} :: UpdatePullRequestApprovalRuleContent)
instance
Core.AWSRequest
UpdatePullRequestApprovalRuleContent
where
type
AWSResponse UpdatePullRequestApprovalRuleContent =
UpdatePullRequestApprovalRuleContentResponse
request :: UpdatePullRequestApprovalRuleContent
-> Request UpdatePullRequestApprovalRuleContent
request = Service
-> UpdatePullRequestApprovalRuleContent
-> Request UpdatePullRequestApprovalRuleContent
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdatePullRequestApprovalRuleContent
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdatePullRequestApprovalRuleContent)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse UpdatePullRequestApprovalRuleContent))
-> Logger
-> Service
-> Proxy UpdatePullRequestApprovalRuleContent
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdatePullRequestApprovalRuleContent)))
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 ->
Int -> ApprovalRule -> UpdatePullRequestApprovalRuleContentResponse
UpdatePullRequestApprovalRuleContentResponse'
(Int
-> ApprovalRule -> UpdatePullRequestApprovalRuleContentResponse)
-> Either String Int
-> Either
String
(ApprovalRule -> UpdatePullRequestApprovalRuleContentResponse)
forall (f :: * -> *) a b. Functor 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))
Either
String
(ApprovalRule -> UpdatePullRequestApprovalRuleContentResponse)
-> Either String ApprovalRule
-> Either String UpdatePullRequestApprovalRuleContentResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ApprovalRule
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"approvalRule")
)
instance
Prelude.Hashable
UpdatePullRequestApprovalRuleContent
instance
Prelude.NFData
UpdatePullRequestApprovalRuleContent
instance
Core.ToHeaders
UpdatePullRequestApprovalRuleContent
where
toHeaders :: UpdatePullRequestApprovalRuleContent -> ResponseHeaders
toHeaders =
ResponseHeaders
-> UpdatePullRequestApprovalRuleContent -> 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.UpdatePullRequestApprovalRuleContent" ::
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
UpdatePullRequestApprovalRuleContent
where
toJSON :: UpdatePullRequestApprovalRuleContent -> Value
toJSON UpdatePullRequestApprovalRuleContent' {Maybe Text
Text
newRuleContent' :: Text
approvalRuleName :: Text
pullRequestId :: Text
existingRuleContentSha256 :: Maybe Text
$sel:newRuleContent':UpdatePullRequestApprovalRuleContent' :: UpdatePullRequestApprovalRuleContent -> Text
$sel:approvalRuleName:UpdatePullRequestApprovalRuleContent' :: UpdatePullRequestApprovalRuleContent -> Text
$sel:pullRequestId:UpdatePullRequestApprovalRuleContent' :: UpdatePullRequestApprovalRuleContent -> Text
$sel:existingRuleContentSha256:UpdatePullRequestApprovalRuleContent' :: UpdatePullRequestApprovalRuleContent -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"existingRuleContentSha256" 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
existingRuleContentSha256,
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
"approvalRuleName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
approvalRuleName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"newRuleContent" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
newRuleContent')
]
)
instance
Core.ToPath
UpdatePullRequestApprovalRuleContent
where
toPath :: UpdatePullRequestApprovalRuleContent -> ByteString
toPath = ByteString -> UpdatePullRequestApprovalRuleContent -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
UpdatePullRequestApprovalRuleContent
where
toQuery :: UpdatePullRequestApprovalRuleContent -> QueryString
toQuery = QueryString -> UpdatePullRequestApprovalRuleContent -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdatePullRequestApprovalRuleContentResponse = UpdatePullRequestApprovalRuleContentResponse'
{
UpdatePullRequestApprovalRuleContentResponse -> Int
httpStatus :: Prelude.Int,
UpdatePullRequestApprovalRuleContentResponse -> ApprovalRule
approvalRule :: ApprovalRule
}
deriving (UpdatePullRequestApprovalRuleContentResponse
-> UpdatePullRequestApprovalRuleContentResponse -> Bool
(UpdatePullRequestApprovalRuleContentResponse
-> UpdatePullRequestApprovalRuleContentResponse -> Bool)
-> (UpdatePullRequestApprovalRuleContentResponse
-> UpdatePullRequestApprovalRuleContentResponse -> Bool)
-> Eq UpdatePullRequestApprovalRuleContentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePullRequestApprovalRuleContentResponse
-> UpdatePullRequestApprovalRuleContentResponse -> Bool
$c/= :: UpdatePullRequestApprovalRuleContentResponse
-> UpdatePullRequestApprovalRuleContentResponse -> Bool
== :: UpdatePullRequestApprovalRuleContentResponse
-> UpdatePullRequestApprovalRuleContentResponse -> Bool
$c== :: UpdatePullRequestApprovalRuleContentResponse
-> UpdatePullRequestApprovalRuleContentResponse -> Bool
Prelude.Eq, ReadPrec [UpdatePullRequestApprovalRuleContentResponse]
ReadPrec UpdatePullRequestApprovalRuleContentResponse
Int -> ReadS UpdatePullRequestApprovalRuleContentResponse
ReadS [UpdatePullRequestApprovalRuleContentResponse]
(Int -> ReadS UpdatePullRequestApprovalRuleContentResponse)
-> ReadS [UpdatePullRequestApprovalRuleContentResponse]
-> ReadPrec UpdatePullRequestApprovalRuleContentResponse
-> ReadPrec [UpdatePullRequestApprovalRuleContentResponse]
-> Read UpdatePullRequestApprovalRuleContentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePullRequestApprovalRuleContentResponse]
$creadListPrec :: ReadPrec [UpdatePullRequestApprovalRuleContentResponse]
readPrec :: ReadPrec UpdatePullRequestApprovalRuleContentResponse
$creadPrec :: ReadPrec UpdatePullRequestApprovalRuleContentResponse
readList :: ReadS [UpdatePullRequestApprovalRuleContentResponse]
$creadList :: ReadS [UpdatePullRequestApprovalRuleContentResponse]
readsPrec :: Int -> ReadS UpdatePullRequestApprovalRuleContentResponse
$creadsPrec :: Int -> ReadS UpdatePullRequestApprovalRuleContentResponse
Prelude.Read, Int -> UpdatePullRequestApprovalRuleContentResponse -> ShowS
[UpdatePullRequestApprovalRuleContentResponse] -> ShowS
UpdatePullRequestApprovalRuleContentResponse -> String
(Int -> UpdatePullRequestApprovalRuleContentResponse -> ShowS)
-> (UpdatePullRequestApprovalRuleContentResponse -> String)
-> ([UpdatePullRequestApprovalRuleContentResponse] -> ShowS)
-> Show UpdatePullRequestApprovalRuleContentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePullRequestApprovalRuleContentResponse] -> ShowS
$cshowList :: [UpdatePullRequestApprovalRuleContentResponse] -> ShowS
show :: UpdatePullRequestApprovalRuleContentResponse -> String
$cshow :: UpdatePullRequestApprovalRuleContentResponse -> String
showsPrec :: Int -> UpdatePullRequestApprovalRuleContentResponse -> ShowS
$cshowsPrec :: Int -> UpdatePullRequestApprovalRuleContentResponse -> ShowS
Prelude.Show, (forall x.
UpdatePullRequestApprovalRuleContentResponse
-> Rep UpdatePullRequestApprovalRuleContentResponse x)
-> (forall x.
Rep UpdatePullRequestApprovalRuleContentResponse x
-> UpdatePullRequestApprovalRuleContentResponse)
-> Generic UpdatePullRequestApprovalRuleContentResponse
forall x.
Rep UpdatePullRequestApprovalRuleContentResponse x
-> UpdatePullRequestApprovalRuleContentResponse
forall x.
UpdatePullRequestApprovalRuleContentResponse
-> Rep UpdatePullRequestApprovalRuleContentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdatePullRequestApprovalRuleContentResponse x
-> UpdatePullRequestApprovalRuleContentResponse
$cfrom :: forall x.
UpdatePullRequestApprovalRuleContentResponse
-> Rep UpdatePullRequestApprovalRuleContentResponse x
Prelude.Generic)
newUpdatePullRequestApprovalRuleContentResponse ::
Prelude.Int ->
ApprovalRule ->
UpdatePullRequestApprovalRuleContentResponse
newUpdatePullRequestApprovalRuleContentResponse :: Int -> ApprovalRule -> UpdatePullRequestApprovalRuleContentResponse
newUpdatePullRequestApprovalRuleContentResponse
Int
pHttpStatus_
ApprovalRule
pApprovalRule_ =
UpdatePullRequestApprovalRuleContentResponse' :: Int -> ApprovalRule -> UpdatePullRequestApprovalRuleContentResponse
UpdatePullRequestApprovalRuleContentResponse'
{ $sel:httpStatus:UpdatePullRequestApprovalRuleContentResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:approvalRule:UpdatePullRequestApprovalRuleContentResponse' :: ApprovalRule
approvalRule = ApprovalRule
pApprovalRule_
}
updatePullRequestApprovalRuleContentResponse_httpStatus :: Lens.Lens' UpdatePullRequestApprovalRuleContentResponse Prelude.Int
updatePullRequestApprovalRuleContentResponse_httpStatus :: (Int -> f Int)
-> UpdatePullRequestApprovalRuleContentResponse
-> f UpdatePullRequestApprovalRuleContentResponse
updatePullRequestApprovalRuleContentResponse_httpStatus = (UpdatePullRequestApprovalRuleContentResponse -> Int)
-> (UpdatePullRequestApprovalRuleContentResponse
-> Int -> UpdatePullRequestApprovalRuleContentResponse)
-> Lens
UpdatePullRequestApprovalRuleContentResponse
UpdatePullRequestApprovalRuleContentResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePullRequestApprovalRuleContentResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdatePullRequestApprovalRuleContentResponse' :: UpdatePullRequestApprovalRuleContentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdatePullRequestApprovalRuleContentResponse
s@UpdatePullRequestApprovalRuleContentResponse' {} Int
a -> UpdatePullRequestApprovalRuleContentResponse
s {$sel:httpStatus:UpdatePullRequestApprovalRuleContentResponse' :: Int
httpStatus = Int
a} :: UpdatePullRequestApprovalRuleContentResponse)
updatePullRequestApprovalRuleContentResponse_approvalRule :: Lens.Lens' UpdatePullRequestApprovalRuleContentResponse ApprovalRule
updatePullRequestApprovalRuleContentResponse_approvalRule :: (ApprovalRule -> f ApprovalRule)
-> UpdatePullRequestApprovalRuleContentResponse
-> f UpdatePullRequestApprovalRuleContentResponse
updatePullRequestApprovalRuleContentResponse_approvalRule = (UpdatePullRequestApprovalRuleContentResponse -> ApprovalRule)
-> (UpdatePullRequestApprovalRuleContentResponse
-> ApprovalRule -> UpdatePullRequestApprovalRuleContentResponse)
-> Lens
UpdatePullRequestApprovalRuleContentResponse
UpdatePullRequestApprovalRuleContentResponse
ApprovalRule
ApprovalRule
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePullRequestApprovalRuleContentResponse' {ApprovalRule
approvalRule :: ApprovalRule
$sel:approvalRule:UpdatePullRequestApprovalRuleContentResponse' :: UpdatePullRequestApprovalRuleContentResponse -> ApprovalRule
approvalRule} -> ApprovalRule
approvalRule) (\s :: UpdatePullRequestApprovalRuleContentResponse
s@UpdatePullRequestApprovalRuleContentResponse' {} ApprovalRule
a -> UpdatePullRequestApprovalRuleContentResponse
s {$sel:approvalRule:UpdatePullRequestApprovalRuleContentResponse' :: ApprovalRule
approvalRule = ApprovalRule
a} :: UpdatePullRequestApprovalRuleContentResponse)
instance
Prelude.NFData
UpdatePullRequestApprovalRuleContentResponse