Interface PutRepositoryTriggersRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeCommitRequest.Builder
,CopyableBuilder<PutRepositoryTriggersRequest.Builder,
,PutRepositoryTriggersRequest> SdkBuilder<PutRepositoryTriggersRequest.Builder,
,PutRepositoryTriggersRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutRepositoryTriggersRequest
public static interface PutRepositoryTriggersRequest.Builder
extends CodeCommitRequest.Builder, SdkPojo, CopyableBuilder<PutRepositoryTriggersRequest.Builder,PutRepositoryTriggersRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.repositoryName
(String repositoryName) The name of the repository where you want to create or update the trigger.triggers
(Collection<RepositoryTrigger> triggers) The JSON block of configuration information for each trigger.triggers
(Consumer<RepositoryTrigger.Builder>... triggers) The JSON block of configuration information for each trigger.triggers
(RepositoryTrigger... triggers) The JSON block of configuration information for each trigger.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitRequest.Builder
build
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
-
Method Details
-
repositoryName
The name of the repository where you want to create or update the trigger.
- Parameters:
repositoryName
- The name of the repository where you want to create or update the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggers
The JSON block of configuration information for each trigger.
- Parameters:
triggers
- The JSON block of configuration information for each trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggers
The JSON block of configuration information for each trigger.
- Parameters:
triggers
- The JSON block of configuration information for each trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggers
The JSON block of configuration information for each trigger.
This is a convenience method that creates an instance of theRepositoryTrigger.Builder
avoiding the need to create one manually viaRepositoryTrigger.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totriggers(List<RepositoryTrigger>)
.- Parameters:
triggers
- a consumer that will call methods onRepositoryTrigger.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutRepositoryTriggersRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutRepositoryTriggersRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-