1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`EvaluatePullRequestApprovalRules`](crate::operation::evaluate_pull_request_approval_rules::builders::EvaluatePullRequestApprovalRulesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`pull_request_id(impl Into<String>)`](crate::operation::evaluate_pull_request_approval_rules::builders::EvaluatePullRequestApprovalRulesFluentBuilder::pull_request_id) / [`set_pull_request_id(Option<String>)`](crate::operation::evaluate_pull_request_approval_rules::builders::EvaluatePullRequestApprovalRulesFluentBuilder::set_pull_request_id):<br>required: **true**<br><p>The system-generated ID of the pull request you want to evaluate.</p><br>
    ///   - [`revision_id(impl Into<String>)`](crate::operation::evaluate_pull_request_approval_rules::builders::EvaluatePullRequestApprovalRulesFluentBuilder::revision_id) / [`set_revision_id(Option<String>)`](crate::operation::evaluate_pull_request_approval_rules::builders::EvaluatePullRequestApprovalRulesFluentBuilder::set_revision_id):<br>required: **true**<br><p>The system-generated ID for the pull request revision. To retrieve the most recent revision ID for a pull request, use <code>GetPullRequest</code>.</p><br>
    /// - On success, responds with [`EvaluatePullRequestApprovalRulesOutput`](crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesOutput) with field(s):
    ///   - [`evaluation(Option<Evaluation>)`](crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesOutput::evaluation): <p>The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.</p>
    /// - On failure, responds with [`SdkError<EvaluatePullRequestApprovalRulesError>`](crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError)
    pub fn evaluate_pull_request_approval_rules(
        &self,
    ) -> crate::operation::evaluate_pull_request_approval_rules::builders::EvaluatePullRequestApprovalRulesFluentBuilder {
        crate::operation::evaluate_pull_request_approval_rules::builders::EvaluatePullRequestApprovalRulesFluentBuilder::new(self.handle.clone())
    }
}