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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListTargetsResponse.BuildernextToken(String nextToken)An enumeration token that can be used in a request to return the next batch of results.ListTargetsResponse.Buildertargets(Collection<TargetSummary> targets)The list of notification rule targets.ListTargetsResponse.Buildertargets(Consumer<TargetSummary.Builder>... targets)The list of notification rule targets.ListTargetsResponse.Buildertargets(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 Detail
-
targets
ListTargetsResponse.Builder targets(Collection<TargetSummary> 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
ListTargetsResponse.Builder targets(TargetSummary... 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
ListTargetsResponse.Builder targets(Consumer<TargetSummary.Builder>... targets)
The list of notification rule targets.
This is a convenience method that creates an instance of theTargetSummary.Builderavoiding the need to create one manually viaTargetSummary.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 onTargetSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#targets(java.util.Collection)
-
nextToken
ListTargetsResponse.Builder nextToken(String 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.
-
-