Interface ListPackageVersionsResponse.Builder
- All Superinterfaces:
- AwsResponse.Builder,- Buildable,- CodeartifactResponse.Builder,- CopyableBuilder<ListPackageVersionsResponse.Builder,,- ListPackageVersionsResponse> - SdkBuilder<ListPackageVersionsResponse.Builder,,- ListPackageVersionsResponse> - SdkPojo,- SdkResponse.Builder
- Enclosing class:
- ListPackageVersionsResponse
- 
Method SummaryModifier and TypeMethodDescriptiondefaultDisplayVersion(String defaultDisplayVersion) The default package version to display.A format of the package.format(PackageFormat format) A format of the package.The namespace of the package that contains the requested package versions.If there are additional results, this is the token for the next set of results.packageValue(String packageValue) The name of the package.versions(Collection<PackageVersionSummary> versions) The returned list of PackageVersionSummary objects.versions(Consumer<PackageVersionSummary.Builder>... versions) The returned list of PackageVersionSummary objects.versions(PackageVersionSummary... versions) The returned list of PackageVersionSummary objects.Methods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactResponse.Builderbuild, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.BuildersdkHttpResponse, sdkHttpResponse
- 
Method Details- 
defaultDisplayVersionThe default package version to display. This depends on the package format: - 
 For Maven and PyPI packages, it's the most recently published package version. 
- 
 For npm packages, it's the version referenced by the latesttag. If thelatesttag is not set, it's the most recently published package version.
 - Parameters:
- defaultDisplayVersion- The default package version to display. This depends on the package format:- 
        For Maven and PyPI packages, it's the most recently published package version. 
- 
        For npm packages, it's the version referenced by the latesttag. If thelatesttag is not set, it's the most recently published package version.
 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
 
- 
formatA format of the package. - Parameters:
- format- A format of the package.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
formatA format of the package. - Parameters:
- format- A format of the package.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
namespaceThe namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example: - 
 The namespace of a Maven package version is its groupId.
- 
 The namespace of an npm or Swift package version is its scope.
- 
 The namespace of a generic package is its namespace.
- 
 Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. 
 - Parameters:
- namespace- The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:- 
        The namespace of a Maven package version is its groupId.
- 
        The namespace of an npm or Swift package version is its scope.
- 
        The namespace of a generic package is its namespace.
- 
        Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. 
 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
 
- 
packageValueThe name of the package. - Parameters:
- packageValue- The name of the package.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
versionsThe returned list of PackageVersionSummary objects. - Parameters:
- versions- The returned list of PackageVersionSummary objects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
versionsThe returned list of PackageVersionSummary objects. - Parameters:
- versions- The returned list of PackageVersionSummary objects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
versionsThe returned list of PackageVersionSummary objects. This is a convenience method that creates an instance of thePackageVersionSummary.Builderavoiding the need to create one manually viaPackageVersionSummary.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toversions(List<PackageVersionSummary>).- Parameters:
- versions- a consumer that will call methods on- PackageVersionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
nextTokenIf there are additional results, this is the token for the next set of results. - Parameters:
- nextToken- If there are additional results, this is the token for the next set of results.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-