public static interface CopyPackageVersionsRequest.Builder extends CodeartifactRequest.Builder, SdkPojo, CopyableBuilder<CopyPackageVersionsRequest.Builder,CopyPackageVersionsRequest>
Modifier and Type | Method and Description |
---|---|
CopyPackageVersionsRequest.Builder |
allowOverwrite(Boolean allowOverwrite)
Set to true to overwrite a package version that already exists in the destination repository.
|
CopyPackageVersionsRequest.Builder |
destinationRepository(String destinationRepository)
The name of the repository into which package versions are copied.
|
CopyPackageVersionsRequest.Builder |
domain(String domain)
The name of the domain that contains the source and destination repositories.
|
CopyPackageVersionsRequest.Builder |
domainOwner(String domainOwner)
The 12-digit account number of the AWS account that owns the domain.
|
CopyPackageVersionsRequest.Builder |
format(PackageFormat format)
The format of the package that is copied.
|
CopyPackageVersionsRequest.Builder |
format(String format)
The format of the package that is copied.
|
CopyPackageVersionsRequest.Builder |
includeFromUpstream(Boolean includeFromUpstream)
Set to true to copy packages from repositories that are upstream from the source repository to the
destination repository.
|
CopyPackageVersionsRequest.Builder |
namespace(String namespace)
The namespace of the package.
|
CopyPackageVersionsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CopyPackageVersionsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CopyPackageVersionsRequest.Builder |
packageValue(String packageValue)
The name of the package that is copied.
|
CopyPackageVersionsRequest.Builder |
sourceRepository(String sourceRepository)
The name of the repository that contains the package versions to copy.
|
CopyPackageVersionsRequest.Builder |
versionRevisions(Map<String,String> versionRevisions)
A list of key-value pairs.
|
CopyPackageVersionsRequest.Builder |
versions(Collection<String> versions)
The versions of the package to copy.
|
CopyPackageVersionsRequest.Builder |
versions(String... versions)
The versions of the package to copy.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CopyPackageVersionsRequest.Builder domain(String domain)
The name of the domain that contains the source and destination repositories.
domain
- The name of the domain that contains the source and destination repositories.CopyPackageVersionsRequest.Builder domainOwner(String domainOwner)
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
domainOwner
- The 12-digit account number of the AWS account that owns the domain. It does not include dashes or
spaces.CopyPackageVersionsRequest.Builder sourceRepository(String sourceRepository)
The name of the repository that contains the package versions to copy.
sourceRepository
- The name of the repository that contains the package versions to copy.CopyPackageVersionsRequest.Builder destinationRepository(String destinationRepository)
The name of the repository into which package versions are copied.
destinationRepository
- The name of the repository into which package versions are copied.CopyPackageVersionsRequest.Builder format(String format)
The format of the package that is copied. The valid package types are:
npm
: A Node Package Manager (npm) package.
pypi
: A Python Package Index (PyPI) package.
maven
: A Maven package that contains compiled code in a distributable format, such as a JAR
file.
nuget
: A NuGet package.
format
- The format of the package that is copied. The valid package types are:
npm
: A Node Package Manager (npm) package.
pypi
: A Python Package Index (PyPI) package.
maven
: A Maven package that contains compiled code in a distributable format, such as a
JAR file.
nuget
: A NuGet package.
PackageFormat
,
PackageFormat
CopyPackageVersionsRequest.Builder format(PackageFormat format)
The format of the package that is copied. The valid package types are:
npm
: A Node Package Manager (npm) package.
pypi
: A Python Package Index (PyPI) package.
maven
: A Maven package that contains compiled code in a distributable format, such as a JAR
file.
nuget
: A NuGet package.
format
- The format of the package that is copied. The valid package types are:
npm
: A Node Package Manager (npm) package.
pypi
: A Python Package Index (PyPI) package.
maven
: A Maven package that contains compiled code in a distributable format, such as a
JAR file.
nuget
: A NuGet package.
PackageFormat
,
PackageFormat
CopyPackageVersionsRequest.Builder namespace(String namespace)
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
A Python package does not contain a corresponding component, so Python packages do not have a namespace.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
namespace
- The namespace of the package. The package component that specifies its namespace depends on its type.
For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
A Python package does not contain a corresponding component, so Python packages do not have a namespace.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
CopyPackageVersionsRequest.Builder packageValue(String packageValue)
The name of the package that is copied.
packageValue
- The name of the package that is copied.CopyPackageVersionsRequest.Builder versions(Collection<String> versions)
The versions of the package to copy.
You must specify versions
or versionRevisions
. You cannot specify both.
versions
- The versions of the package to copy.
You must specify versions
or versionRevisions
. You cannot specify both.
CopyPackageVersionsRequest.Builder versions(String... versions)
The versions of the package to copy.
You must specify versions
or versionRevisions
. You cannot specify both.
versions
- The versions of the package to copy.
You must specify versions
or versionRevisions
. You cannot specify both.
CopyPackageVersionsRequest.Builder versionRevisions(Map<String,String> versionRevisions)
A list of key-value pairs. The keys are package versions and the values are package version revisions. A
CopyPackageVersion
operation succeeds if the specified versions in the source repository match
the specified package version revision.
You must specify versions
or versionRevisions
. You cannot specify both.
versionRevisions
- A list of key-value pairs. The keys are package versions and the values are package version revisions.
A CopyPackageVersion
operation succeeds if the specified versions in the source
repository match the specified package version revision.
You must specify versions
or versionRevisions
. You cannot specify both.
CopyPackageVersionsRequest.Builder allowOverwrite(Boolean allowOverwrite)
Set to true to overwrite a package version that already exists in the destination repository. If set to false
and the package version already exists in the destination repository, the package version is returned in the
failedVersions
field of the response with an ALREADY_EXISTS
error code.
allowOverwrite
- Set to true to overwrite a package version that already exists in the destination repository. If set
to false and the package version already exists in the destination repository, the package version is
returned in the failedVersions
field of the response with an ALREADY_EXISTS
error code.CopyPackageVersionsRequest.Builder includeFromUpstream(Boolean includeFromUpstream)
Set to true to copy packages from repositories that are upstream from the source repository to the destination repository. The default setting is false. For more information, see Working with upstream repositories.
includeFromUpstream
- Set to true to copy packages from repositories that are upstream from the source repository to the
destination repository. The default setting is false. For more information, see Working with upstream
repositories.CopyPackageVersionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CopyPackageVersionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.