aws_sdk_codecommit/client/
get_pull_request_approval_states.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 [`GetPullRequestApprovalStates`](crate::operation::get_pull_request_approval_states::builders::GetPullRequestApprovalStatesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`pull_request_id(impl Into<String>)`](crate::operation::get_pull_request_approval_states::builders::GetPullRequestApprovalStatesFluentBuilder::pull_request_id) / [`set_pull_request_id(Option<String>)`](crate::operation::get_pull_request_approval_states::builders::GetPullRequestApprovalStatesFluentBuilder::set_pull_request_id):<br>required: **true**<br><p>The system-generated ID for the pull request.</p><br>
7    ///   - [`revision_id(impl Into<String>)`](crate::operation::get_pull_request_approval_states::builders::GetPullRequestApprovalStatesFluentBuilder::revision_id) / [`set_revision_id(Option<String>)`](crate::operation::get_pull_request_approval_states::builders::GetPullRequestApprovalStatesFluentBuilder::set_revision_id):<br>required: **true**<br><p>The system-generated ID for the pull request revision.</p><br>
8    /// - On success, responds with [`GetPullRequestApprovalStatesOutput`](crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesOutput) with field(s):
9    ///   - [`approvals(Option<Vec::<Approval>>)`](crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesOutput::approvals): <p>Information about users who have approved the pull request.</p>
10    /// - On failure, responds with [`SdkError<GetPullRequestApprovalStatesError>`](crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError)
11    pub fn get_pull_request_approval_states(
12        &self,
13    ) -> crate::operation::get_pull_request_approval_states::builders::GetPullRequestApprovalStatesFluentBuilder {
14        crate::operation::get_pull_request_approval_states::builders::GetPullRequestApprovalStatesFluentBuilder::new(self.handle.clone())
15    }
16}