public static interface PutTargetsRequest.Builder extends CloudWatchEventsRequest.Builder, CopyableBuilder<PutTargetsRequest.Builder,PutTargetsRequest>
Modifier and Type | Method and Description |
---|---|
PutTargetsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PutTargetsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
PutTargetsRequest.Builder |
rule(String rule)
The name of the rule.
|
PutTargetsRequest.Builder |
targets(Collection<Target> targets)
The targets to update or add to the rule.
|
PutTargetsRequest.Builder |
targets(Consumer<Target.Builder>... targets)
The targets to update or add to the rule.
|
PutTargetsRequest.Builder |
targets(Target... targets)
The targets to update or add to the rule.
|
build
overrideConfiguration
copy
applyMutation, build
PutTargetsRequest.Builder rule(String rule)
The name of the rule.
rule
- The name of the rule.PutTargetsRequest.Builder targets(Collection<Target> targets)
The targets to update or add to the rule.
targets
- The targets to update or add to the rule.PutTargetsRequest.Builder targets(Target... targets)
The targets to update or add to the rule.
targets
- The targets to update or add to the rule.PutTargetsRequest.Builder targets(Consumer<Target.Builder>... targets)
The targets to update or add to the rule.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #targets(List)
.targets
- a consumer that will call methods on List.Builder
#targets(List)
PutTargetsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.PutTargetsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.