Interface PutTargetsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutTargetsRequest.Builder,PutTargetsRequest>,EventBridgeRequest.Builder,SdkBuilder<PutTargetsRequest.Builder,PutTargetsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutTargetsRequest
public static interface PutTargetsRequest.Builder extends EventBridgeRequest.Builder, SdkPojo, CopyableBuilder<PutTargetsRequest.Builder,PutTargetsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutTargetsRequest.BuildereventBusName(String eventBusName)The name or ARN of the event bus associated with the rule.PutTargetsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutTargetsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutTargetsRequest.Builderrule(String rule)The name of the rule.PutTargetsRequest.Buildertargets(Collection<Target> targets)The targets to update or add to the rule.PutTargetsRequest.Buildertargets(Consumer<Target.Builder>... targets)The targets to update or add to the rule.PutTargetsRequest.Buildertargets(Target... targets)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.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.eventbridge.model.EventBridgeRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
rule
PutTargetsRequest.Builder rule(String 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
PutTargetsRequest.Builder eventBusName(String 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
PutTargetsRequest.Builder targets(Collection<Target> 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
PutTargetsRequest.Builder targets(Target... 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
PutTargetsRequest.Builder targets(Consumer<Target.Builder>... targets)
The targets to update or add to the rule.
This is a convenience method that creates an instance of theTarget.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#targets(List.) - 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:
#targets(java.util.Collection)
-
overrideConfiguration
PutTargetsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutTargetsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-