Struct aws_sdk_codecommit::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesInputBuilder
source · #[non_exhaustive]pub struct OverridePullRequestApprovalRulesInputBuilder { /* private fields */ }Expand description
A builder for OverridePullRequestApprovalRulesInput.
Implementations§
source§impl OverridePullRequestApprovalRulesInputBuilder
impl OverridePullRequestApprovalRulesInputBuilder
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.
sourcepub fn build(self) -> Result<OverridePullRequestApprovalRulesInput, BuildError>
pub fn build(self) -> Result<OverridePullRequestApprovalRulesInput, BuildError>
Consumes the builder and constructs a OverridePullRequestApprovalRulesInput.
source§impl OverridePullRequestApprovalRulesInputBuilder
impl OverridePullRequestApprovalRulesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<OverridePullRequestApprovalRulesOutput, SdkError<OverridePullRequestApprovalRulesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<OverridePullRequestApprovalRulesOutput, SdkError<OverridePullRequestApprovalRulesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for OverridePullRequestApprovalRulesInputBuilder
impl Clone for OverridePullRequestApprovalRulesInputBuilder
source§fn clone(&self) -> OverridePullRequestApprovalRulesInputBuilder
fn clone(&self) -> OverridePullRequestApprovalRulesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OverridePullRequestApprovalRulesInputBuilder
impl Default for OverridePullRequestApprovalRulesInputBuilder
source§fn default() -> OverridePullRequestApprovalRulesInputBuilder
fn default() -> OverridePullRequestApprovalRulesInputBuilder
source§impl PartialEq<OverridePullRequestApprovalRulesInputBuilder> for OverridePullRequestApprovalRulesInputBuilder
impl PartialEq<OverridePullRequestApprovalRulesInputBuilder> for OverridePullRequestApprovalRulesInputBuilder
source§fn eq(&self, other: &OverridePullRequestApprovalRulesInputBuilder) -> bool
fn eq(&self, other: &OverridePullRequestApprovalRulesInputBuilder) -> bool
self and other values to be equal, and is used
by ==.