Interface CreateWebhookResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeBuildResponse.Builder
,CopyableBuilder<CreateWebhookResponse.Builder,
,CreateWebhookResponse> SdkBuilder<CreateWebhookResponse.Builder,
,CreateWebhookResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateWebhookResponse
public static interface CreateWebhookResponse.Builder
extends CodeBuildResponse.Builder, SdkPojo, CopyableBuilder<CreateWebhookResponse.Builder,CreateWebhookResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateWebhookResponse.Builder
webhook
(Consumer<Webhook.Builder> webhook) Information about a webhook that connects repository events to a build project in CodeBuild.Information about a webhook that connects repository events to a build project in CodeBuild.Methods inherited from interface software.amazon.awssdk.services.codebuild.model.CodeBuildResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
webhook
Information about a webhook that connects repository events to a build project in CodeBuild.
- Parameters:
webhook
- Information about a webhook that connects repository events to a build project in CodeBuild.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
webhook
Information about a webhook that connects repository events to a build project in CodeBuild.
This is a convenience method that creates an instance of theWebhook.Builder
avoiding the need to create one manually viaWebhook.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towebhook(Webhook)
.- Parameters:
webhook
- a consumer that will call methods onWebhook.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-