aws_sdk_codecommit/client/get_pull_request.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetPullRequest`](crate::operation::get_pull_request::builders::GetPullRequestFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`pull_request_id(impl Into<String>)`](crate::operation::get_pull_request::builders::GetPullRequestFluentBuilder::pull_request_id) / [`set_pull_request_id(Option<String>)`](crate::operation::get_pull_request::builders::GetPullRequestFluentBuilder::set_pull_request_id):<br>required: **true**<br><p>The system-generated ID of the pull request. To get this ID, use <code>ListPullRequests</code>.</p><br>
7 /// - On success, responds with [`GetPullRequestOutput`](crate::operation::get_pull_request::GetPullRequestOutput) with field(s):
8 /// - [`pull_request(Option<PullRequest>)`](crate::operation::get_pull_request::GetPullRequestOutput::pull_request): <p>Information about the specified pull request.</p>
9 /// - On failure, responds with [`SdkError<GetPullRequestError>`](crate::operation::get_pull_request::GetPullRequestError)
10 pub fn get_pull_request(&self) -> crate::operation::get_pull_request::builders::GetPullRequestFluentBuilder {
11 crate::operation::get_pull_request::builders::GetPullRequestFluentBuilder::new(self.handle.clone())
12 }
13}