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 [`OverridePullRequestApprovalRules`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`pull_request_id(impl Into<String>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::pull_request_id) / [`set_pull_request_id(Option<String>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::set_pull_request_id):<br>required: **true**<br><p>The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use <code>GetPullRequest</code>.</p><br>
    ///   - [`revision_id(impl Into<String>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::revision_id) / [`set_revision_id(Option<String>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::set_revision_id):<br>required: **true**<br><p>The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request. To get the revision ID, use GetPullRequest.</p><br>
    ///   - [`override_status(OverrideStatus)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::override_status) / [`set_override_status(Option<OverrideStatus>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::set_override_status):<br>required: **true**<br><p>Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.</p><br>
    /// - On success, responds with [`OverridePullRequestApprovalRulesOutput`](crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesOutput)
    /// - On failure, responds with [`SdkError<OverridePullRequestApprovalRulesError>`](crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError)
    pub fn override_pull_request_approval_rules(
        &self,
    ) -> crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder {
        crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::new(self.handle.clone())
    }
}