/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codebuild.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateWebhookRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the CodeBuild project. *
*/ private String projectName; /** *
* 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
.
*
* An array of arrays of WebhookFilter
objects used to determine which webhooks are triggered. At least
* one WebhookFilter
in the array must specify EVENT
as its type
.
*
* For a build to be triggered, at least one filter group in the filterGroups
array must pass. For a
* filter group to pass, each of its filters must pass.
*
* Specifies the type of build this webhook will trigger. *
*/ private String buildType; /** ** The name of the CodeBuild project. *
* * @param projectName * The name of the CodeBuild project. */ public void setProjectName(String projectName) { this.projectName = projectName; } /** ** The name of the CodeBuild project. *
* * @return The name of the CodeBuild project. */ public String getProjectName() { return this.projectName; } /** ** The name of the CodeBuild project. *
* * @param projectName * The name of the CodeBuild project. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWebhookRequest withProjectName(String projectName) { setProjectName(projectName); return this; } /** *
* 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
.
*
branchFilter
is
* empty, then all branches are built.
* It is recommended that you use filterGroups
instead of branchFilter
.
*
* 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
.
*
branchFilter
is
* empty, then all branches are built.
* It is recommended that you use filterGroups
instead of branchFilter
.
*
* 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
.
*
branchFilter
is
* empty, then all branches are built.
* It is recommended that you use filterGroups
instead of branchFilter
.
*
* An array of arrays of WebhookFilter
objects used to determine which webhooks are triggered. At least
* one WebhookFilter
in the array must specify EVENT
as its type
.
*
* For a build to be triggered, at least one filter group in the filterGroups
array must pass. For a
* filter group to pass, each of its filters must pass.
*
WebhookFilter
objects used to determine which webhooks are triggered.
* At least one WebhookFilter
in the array must specify EVENT
as its
* type
.
*
* For a build to be triggered, at least one filter group in the
* An array of arrays of
* For a build to be triggered, at least one filter group in the filterGroups
array must pass.
* For a filter group to pass, each of its filters must pass.
*/
public java.util.ListWebhookFilter
objects used to determine which webhooks are triggered. At least
* one WebhookFilter
in the array must specify EVENT
as its type
.
* filterGroups
array must pass. For a
* filter group to pass, each of its filters must pass.
* WebhookFilter
objects used to determine which webhooks are triggered.
* At least one WebhookFilter
in the array must specify EVENT
as its
* type
.
* For a build to be triggered, at least one filter group in the
* An array of arrays of
* For a build to be triggered, at least one filter group in the
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFilterGroups(java.util.Collection)} or {@link #withFilterGroups(java.util.Collection)} if you want to
* override the existing values.
* filterGroups
array must pass.
* For a filter group to pass, each of its filters must pass.
*/
public void setFilterGroups(java.util.CollectionWebhookFilter
objects used to determine which webhooks are triggered. At least
* one WebhookFilter
in the array must specify EVENT
as its type
.
* filterGroups
array must pass. For a
* filter group to pass, each of its filters must pass.
* WebhookFilter
objects used to determine which webhooks are triggered.
* At least one WebhookFilter
in the array must specify EVENT
as its
* type
.
* For a build to be triggered, at least one filter group in the
* An array of arrays of
* For a build to be triggered, at least one filter group in the filterGroups
array must pass.
* For a filter group to pass, each of its filters must pass.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateWebhookRequest withFilterGroups(java.util.ListWebhookFilter
objects used to determine which webhooks are triggered. At least
* one WebhookFilter
in the array must specify EVENT
as its type
.
* filterGroups
array must pass. For a
* filter group to pass, each of its filters must pass.
* WebhookFilter
objects used to determine which webhooks are triggered.
* At least one WebhookFilter
in the array must specify EVENT
as its
* type
.
* For a build to be triggered, at least one filter group in the
* Specifies the type of build this webhook will trigger.
*
* Specifies the type of build this webhook will trigger.
*
* Specifies the type of build this webhook will trigger.
*
* Specifies the type of build this webhook will trigger.
* filterGroups
array must pass.
* For a filter group to pass, each of its filters must pass.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateWebhookRequest withFilterGroups(java.util.Collection