#[non_exhaustive]pub struct GitConfigurationBuilder { /* private fields */ }
Expand description
A builder for GitConfiguration
.
Implementations§
source§impl GitConfigurationBuilder
impl GitConfigurationBuilder
sourcepub fn source_action_name(self, input: impl Into<String>) -> Self
pub fn source_action_name(self, input: impl Into<String>) -> Self
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
You can only specify one trigger configuration per source action.
sourcepub fn set_source_action_name(self, input: Option<String>) -> Self
pub fn set_source_action_name(self, input: Option<String>) -> Self
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
You can only specify one trigger configuration per source action.
sourcepub fn get_source_action_name(&self) -> &Option<String>
pub fn get_source_action_name(&self) -> &Option<String>
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
You can only specify one trigger configuration per source action.
sourcepub fn push(self, input: GitPushFilter) -> Self
pub fn push(self, input: GitPushFilter) -> Self
Appends an item to push
.
To override the contents of this collection use set_push
.
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
sourcepub fn set_push(self, input: Option<Vec<GitPushFilter>>) -> Self
pub fn set_push(self, input: Option<Vec<GitPushFilter>>) -> Self
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
sourcepub fn get_push(&self) -> &Option<Vec<GitPushFilter>>
pub fn get_push(&self) -> &Option<Vec<GitPushFilter>>
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
sourcepub fn pull_request(self, input: GitPullRequestFilter) -> Self
pub fn pull_request(self, input: GitPullRequestFilter) -> Self
Appends an item to pull_request
.
To override the contents of this collection use set_pull_request
.
The field where the repository event that will start the pipeline is specified as pull requests.
sourcepub fn set_pull_request(self, input: Option<Vec<GitPullRequestFilter>>) -> Self
pub fn set_pull_request(self, input: Option<Vec<GitPullRequestFilter>>) -> Self
The field where the repository event that will start the pipeline is specified as pull requests.
sourcepub fn get_pull_request(&self) -> &Option<Vec<GitPullRequestFilter>>
pub fn get_pull_request(&self) -> &Option<Vec<GitPullRequestFilter>>
The field where the repository event that will start the pipeline is specified as pull requests.
sourcepub fn build(self) -> Result<GitConfiguration, BuildError>
pub fn build(self) -> Result<GitConfiguration, BuildError>
Consumes the builder and constructs a GitConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GitConfigurationBuilder
impl Clone for GitConfigurationBuilder
source§fn clone(&self) -> GitConfigurationBuilder
fn clone(&self) -> GitConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GitConfigurationBuilder
impl Debug for GitConfigurationBuilder
source§impl Default for GitConfigurationBuilder
impl Default for GitConfigurationBuilder
source§fn default() -> GitConfigurationBuilder
fn default() -> GitConfigurationBuilder
source§impl PartialEq for GitConfigurationBuilder
impl PartialEq for GitConfigurationBuilder
source§fn eq(&self, other: &GitConfigurationBuilder) -> bool
fn eq(&self, other: &GitConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.