Struct aws_sdk_codecommit::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder
source · pub struct OverridePullRequestApprovalRulesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to OverridePullRequestApprovalRules
.
Sets aside (overrides) all approval rule requirements for a specified pull request.
Implementations§
source§impl OverridePullRequestApprovalRulesFluentBuilder
impl OverridePullRequestApprovalRulesFluentBuilder
sourcepub fn as_input(&self) -> &OverridePullRequestApprovalRulesInputBuilder
pub fn as_input(&self) -> &OverridePullRequestApprovalRulesInputBuilder
Access the OverridePullRequestApprovalRules as a reference.
sourcepub async fn send(
self
) -> Result<OverridePullRequestApprovalRulesOutput, SdkError<OverridePullRequestApprovalRulesError, HttpResponse>>
pub async fn send( self ) -> Result<OverridePullRequestApprovalRulesOutput, SdkError<OverridePullRequestApprovalRulesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<OverridePullRequestApprovalRulesOutput, OverridePullRequestApprovalRulesError, Self>
pub fn customize( self ) -> CustomizableOperation<OverridePullRequestApprovalRulesOutput, OverridePullRequestApprovalRulesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn pull_request_id(self, input: impl Into<String>) -> Self
pub fn pull_request_id(self, input: impl Into<String>) -> Self
The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest
.
sourcepub fn set_pull_request_id(self, input: Option<String>) -> Self
pub fn set_pull_request_id(self, input: Option<String>) -> Self
The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest
.
sourcepub fn get_pull_request_id(&self) -> &Option<String>
pub fn get_pull_request_id(&self) -> &Option<String>
The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest
.
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
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.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
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.
sourcepub fn override_status(self, input: OverrideStatus) -> Self
pub fn override_status(self, input: OverrideStatus) -> Self
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.
sourcepub fn set_override_status(self, input: Option<OverrideStatus>) -> Self
pub fn set_override_status(self, input: Option<OverrideStatus>) -> Self
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.
sourcepub fn get_override_status(&self) -> &Option<OverrideStatus>
pub fn get_override_status(&self) -> &Option<OverrideStatus>
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.
Trait Implementations§
source§impl Clone for OverridePullRequestApprovalRulesFluentBuilder
impl Clone for OverridePullRequestApprovalRulesFluentBuilder
source§fn clone(&self) -> OverridePullRequestApprovalRulesFluentBuilder
fn clone(&self) -> OverridePullRequestApprovalRulesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more