Struct aws_sdk_codebuild::client::fluent_builders::UpdateWebhook
source · [−]pub struct UpdateWebhook { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateWebhook
.
Updates the webhook associated with an CodeBuild build project.
If you use Bitbucket for your repository, rotateSecret
is ignored.
Implementations
sourceimpl UpdateWebhook
impl UpdateWebhook
sourcepub async fn send(
self
) -> Result<UpdateWebhookOutput, SdkError<UpdateWebhookError>>
pub async fn send(
self
) -> Result<UpdateWebhookOutput, SdkError<UpdateWebhookError>>
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 project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the CodeBuild project.
sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the CodeBuild project.
sourcepub fn branch_filter(self, input: impl Into<String>) -> Self
pub fn branch_filter(self, input: impl Into<String>) -> Self
A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter
is empty, then all branches are built.
It is recommended that you use filterGroups
instead of branchFilter
.
sourcepub fn set_branch_filter(self, input: Option<String>) -> Self
pub fn set_branch_filter(self, input: Option<String>) -> Self
A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter
is empty, then all branches are built.
It is recommended that you use filterGroups
instead of branchFilter
.
sourcepub fn rotate_secret(self, input: bool) -> Self
pub fn rotate_secret(self, input: bool) -> Self
A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret
is ignored.
sourcepub fn set_rotate_secret(self, input: Option<bool>) -> Self
pub fn set_rotate_secret(self, input: Option<bool>) -> Self
A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret
is ignored.
sourcepub fn filter_groups(self, input: Vec<WebhookFilter>) -> Self
pub fn filter_groups(self, input: Vec<WebhookFilter>) -> Self
Appends an item to filterGroups
.
To override the contents of this collection use set_filter_groups
.
An array of arrays of WebhookFilter
objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT
WebhookFilter
.
sourcepub fn set_filter_groups(self, input: Option<Vec<Vec<WebhookFilter>>>) -> Self
pub fn set_filter_groups(self, input: Option<Vec<Vec<WebhookFilter>>>) -> Self
An array of arrays of WebhookFilter
objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT
WebhookFilter
.
sourcepub fn build_type(self, input: WebhookBuildType) -> Self
pub fn build_type(self, input: WebhookBuildType) -> Self
Specifies the type of build this webhook will trigger.
sourcepub fn set_build_type(self, input: Option<WebhookBuildType>) -> Self
pub fn set_build_type(self, input: Option<WebhookBuildType>) -> Self
Specifies the type of build this webhook will trigger.
Trait Implementations
sourceimpl Clone for UpdateWebhook
impl Clone for UpdateWebhook
sourcefn clone(&self) -> UpdateWebhook
fn clone(&self) -> UpdateWebhook
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for UpdateWebhook
impl Send for UpdateWebhook
impl Sync for UpdateWebhook
impl Unpin for UpdateWebhook
impl !UnwindSafe for UpdateWebhook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more