Struct aws_sdk_codecommit::operation::update_pull_request_approval_state::builders::UpdatePullRequestApprovalStateFluentBuilder
source · pub struct UpdatePullRequestApprovalStateFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to UpdatePullRequestApprovalState.
Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.
Implementations§
source§impl UpdatePullRequestApprovalStateFluentBuilder
impl UpdatePullRequestApprovalStateFluentBuilder
sourcepub fn as_input(&self) -> &UpdatePullRequestApprovalStateInputBuilder
pub fn as_input(&self) -> &UpdatePullRequestApprovalStateInputBuilder
Access the UpdatePullRequestApprovalState as a reference.
sourcepub async fn send(
self
) -> Result<UpdatePullRequestApprovalStateOutput, SdkError<UpdatePullRequestApprovalStateError, HttpResponse>>
pub async fn send( self ) -> Result<UpdatePullRequestApprovalStateOutput, SdkError<UpdatePullRequestApprovalStateError, 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 async fn customize(
self
) -> Result<CustomizableOperation<UpdatePullRequestApprovalStateOutput, UpdatePullRequestApprovalStateError, Self>, SdkError<UpdatePullRequestApprovalStateError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UpdatePullRequestApprovalStateOutput, UpdatePullRequestApprovalStateError, Self>, SdkError<UpdatePullRequestApprovalStateError>>
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.
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.
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.
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 revision.
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 revision.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
The system-generated ID of the revision.
sourcepub fn approval_state(self, input: ApprovalState) -> Self
pub fn approval_state(self, input: ApprovalState) -> Self
The approval state to associate with the user on the pull request.
sourcepub fn set_approval_state(self, input: Option<ApprovalState>) -> Self
pub fn set_approval_state(self, input: Option<ApprovalState>) -> Self
The approval state to associate with the user on the pull request.
sourcepub fn get_approval_state(&self) -> &Option<ApprovalState>
pub fn get_approval_state(&self) -> &Option<ApprovalState>
The approval state to associate with the user on the pull request.
Trait Implementations§
source§impl Clone for UpdatePullRequestApprovalStateFluentBuilder
impl Clone for UpdatePullRequestApprovalStateFluentBuilder
source§fn clone(&self) -> UpdatePullRequestApprovalStateFluentBuilder
fn clone(&self) -> UpdatePullRequestApprovalStateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more