Interface ListTargetsByRuleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListTargetsByRuleResponse.Builder,
,ListTargetsByRuleResponse> EventBridgeResponse.Builder
,SdkBuilder<ListTargetsByRuleResponse.Builder,
,ListTargetsByRuleResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListTargetsByRuleResponse
-
Method Summary
Modifier and TypeMethodDescriptionA token indicating there are more results available.targets
(Collection<Target> targets) The targets assigned to the rule.targets
(Consumer<Target.Builder>... targets) The targets assigned to the rule.The targets assigned to the rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eventbridge.model.EventBridgeResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
targets
The targets assigned to the rule.
- Parameters:
targets
- The targets assigned to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets assigned to the rule.
- Parameters:
targets
- The targets assigned to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets assigned 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:
-
nextToken
A token indicating there are more results available. If there are no more results, no token is included in the response.
The value of
nextToken
is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.Using an expired pagination token results in an
HTTP 400 InvalidToken
error.- Parameters:
nextToken
- A token indicating there are more results available. If there are no more results, no token is included in the response.The value of
nextToken
is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.Using an expired pagination token results in an
HTTP 400 InvalidToken
error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-