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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchevents.model.CloudWatchEventsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
 overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
 overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
 builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
 - This object for method chaining.
 
 
 -