aws_sdk_codecommit/client/
update_pull_request_status.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 [`UpdatePullRequestStatus`](crate::operation::update_pull_request_status::builders::UpdatePullRequestStatusFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`pull_request_id(impl Into<String>)`](crate::operation::update_pull_request_status::builders::UpdatePullRequestStatusFluentBuilder::pull_request_id) / [`set_pull_request_id(Option<String>)`](crate::operation::update_pull_request_status::builders::UpdatePullRequestStatusFluentBuilder::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    ///   - [`pull_request_status(PullRequestStatusEnum)`](crate::operation::update_pull_request_status::builders::UpdatePullRequestStatusFluentBuilder::pull_request_status) / [`set_pull_request_status(Option<PullRequestStatusEnum>)`](crate::operation::update_pull_request_status::builders::UpdatePullRequestStatusFluentBuilder::set_pull_request_status):<br>required: **true**<br><p>The status of the pull request. The only valid operations are to update the status from <code>OPEN</code> to <code>OPEN</code>, <code>OPEN</code> to <code>CLOSED</code> or from <code>CLOSED</code> to <code>CLOSED</code>.</p><br>
8    /// - On success, responds with [`UpdatePullRequestStatusOutput`](crate::operation::update_pull_request_status::UpdatePullRequestStatusOutput) with field(s):
9    ///   - [`pull_request(Option<PullRequest>)`](crate::operation::update_pull_request_status::UpdatePullRequestStatusOutput::pull_request): <p>Information about the pull request.</p>
10    /// - On failure, responds with [`SdkError<UpdatePullRequestStatusError>`](crate::operation::update_pull_request_status::UpdatePullRequestStatusError)
11    pub fn update_pull_request_status(&self) -> crate::operation::update_pull_request_status::builders::UpdatePullRequestStatusFluentBuilder {
12        crate::operation::update_pull_request_status::builders::UpdatePullRequestStatusFluentBuilder::new(self.handle.clone())
13    }
14}