Interface ListAssociatedPackagesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeartifactResponse.Builder
,CopyableBuilder<ListAssociatedPackagesResponse.Builder,
,ListAssociatedPackagesResponse> SdkBuilder<ListAssociatedPackagesResponse.Builder,
,ListAssociatedPackagesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListAssociatedPackagesResponse
public static interface ListAssociatedPackagesResponse.Builder
extends CodeartifactResponse.Builder, SdkPojo, CopyableBuilder<ListAssociatedPackagesResponse.Builder,ListAssociatedPackagesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next set of results.packages
(Collection<AssociatedPackage> packages) The list of packages associated with the requested package group.packages
(Consumer<AssociatedPackage.Builder>... packages) The list of packages associated with the requested package group.packages
(AssociatedPackage... packages) The list of packages associated with the requested package group.Methods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactResponse.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
-
packages
The list of packages associated with the requested package group.
- Parameters:
packages
- The list of packages associated with the requested package group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packages
The list of packages associated with the requested package group.
- Parameters:
packages
- The list of packages associated with the requested package group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packages
The list of packages associated with the requested package group.
This is a convenience method that creates an instance of theAssociatedPackage.Builder
avoiding the need to create one manually viaAssociatedPackage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topackages(List<AssociatedPackage>)
.- Parameters:
packages
- a consumer that will call methods onAssociatedPackage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- Parameters:
nextToken
- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-