Interface PutTargetsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchEventsRequest.Builder
,CopyableBuilder<PutTargetsRequest.Builder,
,PutTargetsRequest> SdkBuilder<PutTargetsRequest.Builder,
,PutTargetsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutTargetsRequest
public static interface PutTargetsRequest.Builder
extends CloudWatchEventsRequest.Builder, SdkPojo, CopyableBuilder<PutTargetsRequest.Builder,PutTargetsRequest>
-
Method Summary
Modifier and TypeMethodDescriptioneventBusName
(String eventBusName) The name or ARN of the event bus associated with the rule.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the rule.targets
(Collection<Target> targets) The targets to update or add to the rule.targets
(Consumer<Target.Builder>... targets) The targets to update or add to the rule.The targets to update or add to the rule.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudwatchevents.model.CloudWatchEventsRequest.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
-
rule
The name of the rule.
- Parameters:
rule
- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBusName
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
- Parameters:
eventBusName
- The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to update or add to the rule.
- Parameters:
targets
- The targets to update or add to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to update or add to the rule.
- Parameters:
targets
- The targets to update or add to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to update or add to the rule.
This is a convenience method that creates an instance of theTarget.Builder
avoiding the need to create one manually viaTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargets(List<Target>)
.- Parameters:
targets
- a consumer that will call methods onTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutTargetsRequest.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
PutTargetsRequest.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.
-