public static interface PutTargetsRequest.Builder extends CloudWatchEventsRequest.Builder, CopyableBuilder<PutTargetsRequest.Builder,PutTargetsRequest>
| Modifier and Type | Method and Description |
|---|---|
PutTargetsRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
PutTargetsRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.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.
|
buildrequestOverrideConfigcopyapply, buildPutTargetsRequest.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 requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderawsRequestOverrideConfig - The override configuration.PutTargetsRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfig.Builder will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.