Interface ListPackageGroupsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeartifactResponse.Builder
,CopyableBuilder<ListPackageGroupsResponse.Builder,
,ListPackageGroupsResponse> SdkBuilder<ListPackageGroupsResponse.Builder,
,ListPackageGroupsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListPackageGroupsResponse
public static interface ListPackageGroupsResponse.Builder
extends CodeartifactResponse.Builder, SdkPojo, CopyableBuilder<ListPackageGroupsResponse.Builder,ListPackageGroupsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next set of results.packageGroups
(Collection<PackageGroupSummary> packageGroups) The list of package groups in the requested domain.packageGroups
(Consumer<PackageGroupSummary.Builder>... packageGroups) The list of package groups in the requested domain.packageGroups
(PackageGroupSummary... packageGroups) The list of package groups in the requested domain.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
-
packageGroups
The list of package groups in the requested domain.
- Parameters:
packageGroups
- The list of package groups in the requested domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageGroups
The list of package groups in the requested domain.
- Parameters:
packageGroups
- The list of package groups in the requested domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageGroups
ListPackageGroupsResponse.Builder packageGroups(Consumer<PackageGroupSummary.Builder>... packageGroups) The list of package groups in the requested domain.
This is a convenience method that creates an instance of thePackageGroupSummary.Builder
avoiding the need to create one manually viaPackageGroupSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topackageGroups(List<PackageGroupSummary>)
.- Parameters:
packageGroups
- a consumer that will call methods onPackageGroupSummary.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.
-