Interface ListTargetsByRuleResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListTargetsByRuleResponse.Builder,ListTargetsByRuleResponse>,EventBridgeResponse.Builder,SdkBuilder<ListTargetsByRuleResponse.Builder,ListTargetsByRuleResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListTargetsByRuleResponse
public static interface ListTargetsByRuleResponse.Builder extends EventBridgeResponse.Builder, SdkPojo, CopyableBuilder<ListTargetsByRuleResponse.Builder,ListTargetsByRuleResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListTargetsByRuleResponse.BuildernextToken(String nextToken)Indicates whether there are additional results to retrieve.ListTargetsByRuleResponse.Buildertargets(Collection<Target> targets)The targets assigned to the rule.ListTargetsByRuleResponse.Buildertargets(Consumer<Target.Builder>... targets)The targets assigned to the rule.ListTargetsByRuleResponse.Buildertargets(Target... targets)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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
targets
ListTargetsByRuleResponse.Builder targets(Collection<Target> 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
ListTargetsByRuleResponse.Builder targets(Target... 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
ListTargetsByRuleResponse.Builder targets(Consumer<Target.Builder>... targets)
The targets assigned 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)
-
nextToken
ListTargetsByRuleResponse.Builder nextToken(String nextToken)
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
- Parameters:
nextToken- Indicates whether there are additional results to retrieve. If there are no more results, the value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-