Interface ListTargetsByRuleResponse.Builder
- All Superinterfaces:
- AwsResponse.Builder,- Buildable,- CloudWatchEventsResponse.Builder,- CopyableBuilder<ListTargetsByRuleResponse.Builder,,- ListTargetsByRuleResponse> - SdkBuilder<ListTargetsByRuleResponse.Builder,,- ListTargetsByRuleResponse> - SdkPojo,- SdkResponse.Builder
- Enclosing class:
- ListTargetsByRuleResponse
@Mutable
@NotThreadSafe
public static interface ListTargetsByRuleResponse.Builder
extends CloudWatchEventsResponse.Builder, SdkPojo, CopyableBuilder<ListTargetsByRuleResponse.Builder,ListTargetsByRuleResponse> 
- 
Method SummaryModifier and TypeMethodDescriptionIndicates whether there are additional results to retrieve.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.services.cloudwatchevents.model.CloudWatchEventsResponse.Builderbuild, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.BuildersdkHttpResponse, sdkHttpResponse
- 
Method Details- 
targetsThe 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.
 
- 
targetsThe 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.
 
- 
targetsThe 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 totargets(List<Target>).- Parameters:
- targets- a consumer that will call methods on- Target.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
nextTokenIndicates 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.
 
 
-