@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateWebhookRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
UpdateWebhookRequest() |
| Modifier and Type | Method and Description |
|---|---|
UpdateWebhookRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBranchFilter()
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
String |
getBuildType()
Specifies the type of build this webhook will trigger.
|
List<List<WebhookFilter>> |
getFilterGroups()
An array of arrays of
WebhookFilter objects used to determine if a webhook event can trigger a
build. |
String |
getProjectName()
The name of the CodeBuild project.
|
Boolean |
getRotateSecret()
A boolean value that specifies whether the associated GitHub repository's secret token should be updated.
|
int |
hashCode() |
Boolean |
isRotateSecret()
A boolean value that specifies whether the associated GitHub repository's secret token should be updated.
|
void |
setBranchFilter(String branchFilter)
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
void |
setBuildType(String buildType)
Specifies the type of build this webhook will trigger.
|
void |
setFilterGroups(Collection<List<WebhookFilter>> filterGroups)
An array of arrays of
WebhookFilter objects used to determine if a webhook event can trigger a
build. |
void |
setProjectName(String projectName)
The name of the CodeBuild project.
|
void |
setRotateSecret(Boolean rotateSecret)
A boolean value that specifies whether the associated GitHub repository's secret token should be updated.
|
String |
toString()
Returns a string representation of this object.
|
UpdateWebhookRequest |
withBranchFilter(String branchFilter)
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
UpdateWebhookRequest |
withBuildType(String buildType)
Specifies the type of build this webhook will trigger.
|
UpdateWebhookRequest |
withBuildType(WebhookBuildType buildType)
Specifies the type of build this webhook will trigger.
|
UpdateWebhookRequest |
withFilterGroups(Collection<List<WebhookFilter>> filterGroups)
An array of arrays of
WebhookFilter objects used to determine if a webhook event can trigger a
build. |
UpdateWebhookRequest |
withFilterGroups(List<WebhookFilter>... filterGroups)
An array of arrays of
WebhookFilter objects used to determine if a webhook event can trigger a
build. |
UpdateWebhookRequest |
withProjectName(String projectName)
The name of the CodeBuild project.
|
UpdateWebhookRequest |
withRotateSecret(Boolean rotateSecret)
A boolean value that specifies whether the associated GitHub repository's secret token should be updated.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setProjectName(String projectName)
The name of the CodeBuild project.
projectName - The name of the CodeBuild project.public String getProjectName()
The name of the CodeBuild project.
public UpdateWebhookRequest withProjectName(String projectName)
The name of the CodeBuild project.
projectName - The name of the CodeBuild project.public void setBranchFilter(String 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 - 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.
public String getBranchFilter()
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.
public UpdateWebhookRequest withBranchFilter(String 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 - 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.
public void setRotateSecret(Boolean rotateSecret)
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.
rotateSecret - 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.public Boolean getRotateSecret()
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.
rotateSecret is ignored.public UpdateWebhookRequest withRotateSecret(Boolean rotateSecret)
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.
rotateSecret - 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.public Boolean isRotateSecret()
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.
rotateSecret is ignored.public List<List<WebhookFilter>> getFilterGroups()
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.
WebhookFilter objects used to determine if a webhook event can trigger
a build. A filter group must contain at least one EVENT WebhookFilter.public void setFilterGroups(Collection<List<WebhookFilter>> filterGroups)
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.
filterGroups - 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.public UpdateWebhookRequest withFilterGroups(List<WebhookFilter>... filterGroups)
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.
NOTE: This method appends the values to the existing list (if any). Use
setFilterGroups(java.util.Collection) or withFilterGroups(java.util.Collection) if you want to
override the existing values.
filterGroups - 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.public UpdateWebhookRequest withFilterGroups(Collection<List<WebhookFilter>> filterGroups)
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.
filterGroups - 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.public void setBuildType(String buildType)
Specifies the type of build this webhook will trigger.
buildType - Specifies the type of build this webhook will trigger.WebhookBuildTypepublic String getBuildType()
Specifies the type of build this webhook will trigger.
WebhookBuildTypepublic UpdateWebhookRequest withBuildType(String buildType)
Specifies the type of build this webhook will trigger.
buildType - Specifies the type of build this webhook will trigger.WebhookBuildTypepublic UpdateWebhookRequest withBuildType(WebhookBuildType buildType)
Specifies the type of build this webhook will trigger.
buildType - Specifies the type of build this webhook will trigger.WebhookBuildTypepublic String toString()
toString in class ObjectObject.toString()public UpdateWebhookRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()