@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateWebhookRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateWebhookRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateWebhookRequest |
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 which webhooks are triggered. |
Boolean |
getManualCreation()
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. |
String |
getProjectName()
The name of the CodeBuild project.
|
ScopeConfiguration |
getScopeConfiguration()
The scope configuration for global or organization webhooks.
|
int |
hashCode() |
Boolean |
isManualCreation()
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. |
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 which webhooks are triggered. |
void |
setManualCreation(Boolean manualCreation)
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. |
void |
setProjectName(String projectName)
The name of the CodeBuild project.
|
void |
setScopeConfiguration(ScopeConfiguration scopeConfiguration)
The scope configuration for global or organization webhooks.
|
String |
toString()
Returns a string representation of this object.
|
CreateWebhookRequest |
withBranchFilter(String branchFilter)
A regular expression used to determine which repository branches are built when a webhook is triggered.
|
CreateWebhookRequest |
withBuildType(String buildType)
Specifies the type of build this webhook will trigger.
|
CreateWebhookRequest |
withBuildType(WebhookBuildType buildType)
Specifies the type of build this webhook will trigger.
|
CreateWebhookRequest |
withFilterGroups(Collection<List<WebhookFilter>> filterGroups)
An array of arrays of
WebhookFilter objects used to determine which webhooks are triggered. |
CreateWebhookRequest |
withFilterGroups(List<WebhookFilter>... filterGroups)
An array of arrays of
WebhookFilter objects used to determine which webhooks are triggered. |
CreateWebhookRequest |
withManualCreation(Boolean manualCreation)
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. |
CreateWebhookRequest |
withProjectName(String projectName)
The name of the CodeBuild project.
|
CreateWebhookRequest |
withScopeConfiguration(ScopeConfiguration scopeConfiguration)
The scope configuration for global or organization webhooks.
|
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 CreateWebhookRequest 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 CreateWebhookRequest 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 List<List<WebhookFilter>> getFilterGroups()
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 filterGroups array must pass.
For a filter group to pass, each of its filters must pass.
public void setFilterGroups(Collection<List<WebhookFilter>> filterGroups)
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.
filterGroups - 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.
public CreateWebhookRequest withFilterGroups(List<WebhookFilter>... filterGroups)
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.
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 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.
public CreateWebhookRequest withFilterGroups(Collection<List<WebhookFilter>> filterGroups)
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.
filterGroups - 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.
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 CreateWebhookRequest withBuildType(String buildType)
Specifies the type of build this webhook will trigger.
buildType - Specifies the type of build this webhook will trigger.WebhookBuildTypepublic CreateWebhookRequest withBuildType(WebhookBuildType buildType)
Specifies the type of build this webhook will trigger.
buildType - Specifies the type of build this webhook will trigger.WebhookBuildTypepublic void setManualCreation(Boolean manualCreation)
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. The payloadUrl and
secret values in the output can be used to manually create a webhook within GitHub.
manualCreation is only available for GitHub webhooks.
manualCreation - If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. The payloadUrl and
secret values in the output can be used to manually create a webhook within GitHub.
manualCreation is only available for GitHub webhooks.
public Boolean getManualCreation()
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. The payloadUrl and
secret values in the output can be used to manually create a webhook within GitHub.
manualCreation is only available for GitHub webhooks.
payloadUrl and secret values for the webhook. The payloadUrl and
secret values in the output can be used to manually create a webhook within GitHub.
manualCreation is only available for GitHub webhooks.
public CreateWebhookRequest withManualCreation(Boolean manualCreation)
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. The payloadUrl and
secret values in the output can be used to manually create a webhook within GitHub.
manualCreation is only available for GitHub webhooks.
manualCreation - If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. The payloadUrl and
secret values in the output can be used to manually create a webhook within GitHub.
manualCreation is only available for GitHub webhooks.
public Boolean isManualCreation()
If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns
payloadUrl and secret values for the webhook. The payloadUrl and
secret values in the output can be used to manually create a webhook within GitHub.
manualCreation is only available for GitHub webhooks.
payloadUrl and secret values for the webhook. The payloadUrl and
secret values in the output can be used to manually create a webhook within GitHub.
manualCreation is only available for GitHub webhooks.
public void setScopeConfiguration(ScopeConfiguration scopeConfiguration)
The scope configuration for global or organization webhooks.
Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
scopeConfiguration - The scope configuration for global or organization webhooks. Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
public ScopeConfiguration getScopeConfiguration()
The scope configuration for global or organization webhooks.
Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
public CreateWebhookRequest withScopeConfiguration(ScopeConfiguration scopeConfiguration)
The scope configuration for global or organization webhooks.
Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
scopeConfiguration - The scope configuration for global or organization webhooks. Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.
public String toString()
toString in class ObjectObject.toString()public CreateWebhookRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()