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) |
Safe Haskell | None |
Replaces the title of a pull request.
Synopsis
- data UpdatePullRequestTitle = UpdatePullRequestTitle' {
- pullRequestId :: Text
- title :: Text
- newUpdatePullRequestTitle :: Text -> Text -> UpdatePullRequestTitle
- updatePullRequestTitle_pullRequestId :: Lens' UpdatePullRequestTitle Text
- updatePullRequestTitle_title :: Lens' UpdatePullRequestTitle Text
- data UpdatePullRequestTitleResponse = UpdatePullRequestTitleResponse' {}
- newUpdatePullRequestTitleResponse :: Int -> PullRequest -> UpdatePullRequestTitleResponse
- updatePullRequestTitleResponse_httpStatus :: Lens' UpdatePullRequestTitleResponse Int
- updatePullRequestTitleResponse_pullRequest :: Lens' UpdatePullRequestTitleResponse PullRequest
Creating a Request
data UpdatePullRequestTitle Source #
See: newUpdatePullRequestTitle
smart constructor.
UpdatePullRequestTitle' | |
|
Instances
newUpdatePullRequestTitle Source #
:: Text | |
-> Text | |
-> UpdatePullRequestTitle |
Create a value of UpdatePullRequestTitle
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:pullRequestId:UpdatePullRequestTitle'
, updatePullRequestTitle_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
$sel:title:UpdatePullRequestTitle'
, updatePullRequestTitle_title
- The updated title of the pull request. This replaces the existing title.
Request Lenses
updatePullRequestTitle_pullRequestId :: Lens' UpdatePullRequestTitle Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
updatePullRequestTitle_title :: Lens' UpdatePullRequestTitle Text Source #
The updated title of the pull request. This replaces the existing title.
Destructuring the Response
data UpdatePullRequestTitleResponse Source #
See: newUpdatePullRequestTitleResponse
smart constructor.
UpdatePullRequestTitleResponse' | |
|
Instances
Eq UpdatePullRequestTitleResponse Source # | |
Read UpdatePullRequestTitleResponse Source # | |
Show UpdatePullRequestTitleResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestTitle | |
Generic UpdatePullRequestTitleResponse Source # | |
NFData UpdatePullRequestTitleResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestTitle rnf :: UpdatePullRequestTitleResponse -> () # | |
type Rep UpdatePullRequestTitleResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestTitle type Rep UpdatePullRequestTitleResponse = D1 ('MetaData "UpdatePullRequestTitleResponse" "Amazonka.CodeCommit.UpdatePullRequestTitle" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "UpdatePullRequestTitleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "pullRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PullRequest))) |
newUpdatePullRequestTitleResponse Source #
Create a value of UpdatePullRequestTitleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdatePullRequestTitleResponse'
, updatePullRequestTitleResponse_httpStatus
- The response's http status code.
$sel:pullRequest:UpdatePullRequestTitleResponse'
, updatePullRequestTitleResponse_pullRequest
- Information about the updated pull request.
Response Lenses
updatePullRequestTitleResponse_httpStatus :: Lens' UpdatePullRequestTitleResponse Int Source #
The response's http status code.
updatePullRequestTitleResponse_pullRequest :: Lens' UpdatePullRequestTitleResponse PullRequest Source #
Information about the updated pull request.