Interface ListTargetsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodestarNotificationsResponse.Builder
,CopyableBuilder<ListTargetsResponse.Builder,
,ListTargetsResponse> SdkBuilder<ListTargetsResponse.Builder,
,ListTargetsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListTargetsResponse
public static interface ListTargetsResponse.Builder
extends CodestarNotificationsResponse.Builder, SdkPojo, CopyableBuilder<ListTargetsResponse.Builder,ListTargetsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionAn enumeration token that can be used in a request to return the next batch of results.targets
(Collection<TargetSummary> targets) The list of notification rule targets.targets
(Consumer<TargetSummary.Builder>... targets) The list of notification rule targets.targets
(TargetSummary... targets) The list of notification rule targets.Methods inherited from interface software.amazon.awssdk.services.codestarnotifications.model.CodestarNotificationsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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 Details
-
targets
The list of notification rule targets.
- Parameters:
targets
- The list of notification rule targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The list of notification rule targets.
- Parameters:
targets
- The list of notification rule targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The list of notification rule targets.
This is a convenience method that creates an instance of theTargetSummary.Builder
avoiding the need to create one manually viaTargetSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargets(List<TargetSummary>)
.- Parameters:
targets
- a consumer that will call methods onTargetSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
An enumeration token that can be used in a request to return the next batch of results.
- Parameters:
nextToken
- An enumeration token that can be used in a request to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-