1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateWebhook`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project_name(impl Into<String>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the CodeBuild project.</p><br>
    ///   - [`branch_filter(impl Into<String>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::branch_filter) / [`set_branch_filter(Option<String>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_branch_filter):<br>required: **false**<br><p>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 <code>branchFilter</code> is empty, then all branches are built.</p><note>  <p>It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>.</p> </note><br>
    ///   - [`rotate_secret(bool)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::rotate_secret) / [`set_rotate_secret(Option<bool>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_rotate_secret):<br>required: **false**<br><p>A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored.</p><br>
    ///   - [`filter_groups(Vec::<WebhookFilter>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::filter_groups) / [`set_filter_groups(Option<Vec::<Vec::<WebhookFilter>>>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_filter_groups):<br>required: **false**<br><p>An array of arrays of <code>WebhookFilter</code> objects used to determine if a webhook event can trigger a build. A filter group must contain at least one <code>EVENT</code> <code>WebhookFilter</code>.</p><br>
    ///   - [`build_type(WebhookBuildType)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::build_type) / [`set_build_type(Option<WebhookBuildType>)`](crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::set_build_type):<br>required: **false**<br><p>Specifies the type of build this webhook will trigger.</p><br>
    /// - On success, responds with [`UpdateWebhookOutput`](crate::operation::update_webhook::UpdateWebhookOutput) with field(s):
    ///   - [`webhook(Option<Webhook>)`](crate::operation::update_webhook::UpdateWebhookOutput::webhook): <p>Information about a repository's webhook that is associated with a project in CodeBuild.</p>
    /// - On failure, responds with [`SdkError<UpdateWebhookError>`](crate::operation::update_webhook::UpdateWebhookError)
    pub fn update_webhook(&self) -> crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder {
        crate::operation::update_webhook::builders::UpdateWebhookFluentBuilder::new(self.handle.clone())
    }
}