Interface ListPublishingDestinationsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListPublishingDestinationsResponse.Builder,ListPublishingDestinationsResponse>,GuardDutyResponse.Builder,SdkBuilder<ListPublishingDestinationsResponse.Builder,ListPublishingDestinationsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListPublishingDestinationsResponse
public static interface ListPublishingDestinationsResponse.Builder extends GuardDutyResponse.Builder, SdkPojo, CopyableBuilder<ListPublishingDestinationsResponse.Builder,ListPublishingDestinationsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListPublishingDestinationsResponse.Builderdestinations(Collection<Destination> destinations)ADestinationsobject that includes information about each publishing destination returned.ListPublishingDestinationsResponse.Builderdestinations(Consumer<Destination.Builder>... destinations)ADestinationsobject that includes information about each publishing destination returned.ListPublishingDestinationsResponse.Builderdestinations(Destination... destinations)ADestinationsobject that includes information about each publishing destination returned.ListPublishingDestinationsResponse.BuildernextToken(String nextToken)A token to use for paginating results that are returned in the response.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyResponse.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
-
destinations
ListPublishingDestinationsResponse.Builder destinations(Collection<Destination> destinations)
A
Destinationsobject that includes information about each publishing destination returned.- Parameters:
destinations- ADestinationsobject that includes information about each publishing destination returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
ListPublishingDestinationsResponse.Builder destinations(Destination... destinations)
A
Destinationsobject that includes information about each publishing destination returned.- Parameters:
destinations- ADestinationsobject that includes information about each publishing destination returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
ListPublishingDestinationsResponse.Builder destinations(Consumer<Destination.Builder>... destinations)
A
This is a convenience method that creates an instance of theDestinationsobject that includes information about each publishing destination returned.Destination.Builderavoiding the need to create one manually viaDestination.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#destinations(List.) - Parameters:
destinations- a consumer that will call methods onDestination.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#destinations(java.util.Collection)
-
nextToken
ListPublishingDestinationsResponse.Builder nextToken(String nextToken)
A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.- Parameters:
nextToken- A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use theNextTokenvalue returned from the previous request to continue listing results after the first page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-