#[non_exhaustive]
pub struct PullRequestBuilder { /* private fields */ }
Expand description

A builder for PullRequest.

Implementations§

source§

impl PullRequestBuilder

source

pub fn pull_request_id(self, input: impl Into<String>) -> Self

The system-generated ID of the pull request.

source

pub fn set_pull_request_id(self, input: Option<String>) -> Self

The system-generated ID of the pull request.

source

pub fn get_pull_request_id(&self) -> &Option<String>

The system-generated ID of the pull request.

source

pub fn title(self, input: impl Into<String>) -> Self

The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.

source

pub fn set_title(self, input: Option<String>) -> Self

The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.

source

pub fn get_title(&self) -> &Option<String>

The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.

source

pub fn description(self, input: impl Into<String>) -> Self

The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.

source

pub fn set_description(self, input: Option<String>) -> Self

The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.

source

pub fn get_description(&self) -> &Option<String>

The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.

source

pub fn last_activity_date(self, input: DateTime) -> Self

The day and time of the last user or system activity on the pull request, in timestamp format.

source

pub fn set_last_activity_date(self, input: Option<DateTime>) -> Self

The day and time of the last user or system activity on the pull request, in timestamp format.

source

pub fn get_last_activity_date(&self) -> &Option<DateTime>

The day and time of the last user or system activity on the pull request, in timestamp format.

source

pub fn creation_date(self, input: DateTime) -> Self

The date and time the pull request was originally created, in timestamp format.

source

pub fn set_creation_date(self, input: Option<DateTime>) -> Self

The date and time the pull request was originally created, in timestamp format.

source

pub fn get_creation_date(&self) -> &Option<DateTime>

The date and time the pull request was originally created, in timestamp format.

source

pub fn pull_request_status(self, input: PullRequestStatusEnum) -> Self

The status of the pull request. Pull request status can only change from OPEN to CLOSED.

source

pub fn set_pull_request_status( self, input: Option<PullRequestStatusEnum> ) -> Self

The status of the pull request. Pull request status can only change from OPEN to CLOSED.

source

pub fn get_pull_request_status(&self) -> &Option<PullRequestStatusEnum>

The status of the pull request. Pull request status can only change from OPEN to CLOSED.

source

pub fn author_arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the user who created the pull request.

source

pub fn set_author_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the user who created the pull request.

source

pub fn get_author_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the user who created the pull request.

source

pub fn pull_request_targets(self, input: PullRequestTarget) -> Self

Appends an item to pull_request_targets.

To override the contents of this collection use set_pull_request_targets.

The targets of the pull request, including the source branch and destination branch for the pull request.

source

pub fn set_pull_request_targets( self, input: Option<Vec<PullRequestTarget>> ) -> Self

The targets of the pull request, including the source branch and destination branch for the pull request.

source

pub fn get_pull_request_targets(&self) -> &Option<Vec<PullRequestTarget>>

The targets of the pull request, including the source branch and destination branch for the pull request.

source

pub fn client_request_token(self, input: impl Into<String>) -> Self

A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.

source

pub fn set_client_request_token(self, input: Option<String>) -> Self

A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.

source

pub fn get_client_request_token(&self) -> &Option<String>

A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.

source

pub fn revision_id(self, input: impl Into<String>) -> Self

The system-generated revision ID for the pull request.

source

pub fn set_revision_id(self, input: Option<String>) -> Self

The system-generated revision ID for the pull request.

source

pub fn get_revision_id(&self) -> &Option<String>

The system-generated revision ID for the pull request.

source

pub fn approval_rules(self, input: ApprovalRule) -> Self

Appends an item to approval_rules.

To override the contents of this collection use set_approval_rules.

The approval rules applied to the pull request.

source

pub fn set_approval_rules(self, input: Option<Vec<ApprovalRule>>) -> Self

The approval rules applied to the pull request.

source

pub fn get_approval_rules(&self) -> &Option<Vec<ApprovalRule>>

The approval rules applied to the pull request.

source

pub fn build(self) -> PullRequest

Consumes the builder and constructs a PullRequest.

Trait Implementations§

source§

impl Clone for PullRequestBuilder

source§

fn clone(&self) -> PullRequestBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PullRequestBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PullRequestBuilder

source§

fn default() -> PullRequestBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<PullRequestBuilder> for PullRequestBuilder

source§

fn eq(&self, other: &PullRequestBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for PullRequestBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more