@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CopyPackageVersionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CopyPackageVersionsRequest() |
Modifier and Type | Method and Description |
---|---|
CopyPackageVersionsRequest |
addVersionRevisionsEntry(String key,
String value)
Add a single VersionRevisions entry
|
CopyPackageVersionsRequest |
clearVersionRevisionsEntries()
Removes all the entries added into VersionRevisions.
|
CopyPackageVersionsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getAllowOverwrite()
Set to true to overwrite a package version that already exists in the destination repository.
|
String |
getDestinationRepository()
The name of the repository into which package versions are copied.
|
String |
getDomain()
The name of the domain that contains the source and destination repositories.
|
String |
getDomainOwner()
The 12-digit account number of the AWS account that owns the domain.
|
String |
getFormat()
The format of the package that is copied.
|
Boolean |
getIncludeFromUpstream()
Set to true to copy packages from repositories that are upstream from the source repository to the destination
repository.
|
String |
getNamespace()
The namespace of the package.
|
String |
getPackage()
The name of the package that is copied.
|
String |
getSourceRepository()
The name of the repository that contains the package versions to copy.
|
Map<String,String> |
getVersionRevisions()
A list of key-value pairs.
|
List<String> |
getVersions()
The versions of the package to copy.
|
int |
hashCode() |
Boolean |
isAllowOverwrite()
Set to true to overwrite a package version that already exists in the destination repository.
|
Boolean |
isIncludeFromUpstream()
Set to true to copy packages from repositories that are upstream from the source repository to the destination
repository.
|
void |
setAllowOverwrite(Boolean allowOverwrite)
Set to true to overwrite a package version that already exists in the destination repository.
|
void |
setDestinationRepository(String destinationRepository)
The name of the repository into which package versions are copied.
|
void |
setDomain(String domain)
The name of the domain that contains the source and destination repositories.
|
void |
setDomainOwner(String domainOwner)
The 12-digit account number of the AWS account that owns the domain.
|
void |
setFormat(String format)
The format of the package that is copied.
|
void |
setIncludeFromUpstream(Boolean includeFromUpstream)
Set to true to copy packages from repositories that are upstream from the source repository to the destination
repository.
|
void |
setNamespace(String namespace)
The namespace of the package.
|
void |
setPackage(String packageValue)
The name of the package that is copied.
|
void |
setSourceRepository(String sourceRepository)
The name of the repository that contains the package versions to copy.
|
void |
setVersionRevisions(Map<String,String> versionRevisions)
A list of key-value pairs.
|
void |
setVersions(Collection<String> versions)
The versions of the package to copy.
|
String |
toString()
Returns a string representation of this object.
|
CopyPackageVersionsRequest |
withAllowOverwrite(Boolean allowOverwrite)
Set to true to overwrite a package version that already exists in the destination repository.
|
CopyPackageVersionsRequest |
withDestinationRepository(String destinationRepository)
The name of the repository into which package versions are copied.
|
CopyPackageVersionsRequest |
withDomain(String domain)
The name of the domain that contains the source and destination repositories.
|
CopyPackageVersionsRequest |
withDomainOwner(String domainOwner)
The 12-digit account number of the AWS account that owns the domain.
|
CopyPackageVersionsRequest |
withFormat(PackageFormat format)
The format of the package that is copied.
|
CopyPackageVersionsRequest |
withFormat(String format)
The format of the package that is copied.
|
CopyPackageVersionsRequest |
withIncludeFromUpstream(Boolean includeFromUpstream)
Set to true to copy packages from repositories that are upstream from the source repository to the destination
repository.
|
CopyPackageVersionsRequest |
withNamespace(String namespace)
The namespace of the package.
|
CopyPackageVersionsRequest |
withPackage(String packageValue)
The name of the package that is copied.
|
CopyPackageVersionsRequest |
withSourceRepository(String sourceRepository)
The name of the repository that contains the package versions to copy.
|
CopyPackageVersionsRequest |
withVersionRevisions(Map<String,String> versionRevisions)
A list of key-value pairs.
|
CopyPackageVersionsRequest |
withVersions(Collection<String> versions)
The versions of the package to copy.
|
CopyPackageVersionsRequest |
withVersions(String... versions)
The versions of the package to copy.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDomain(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.public String getDomain()
The name of the domain that contains the source and destination repositories.
public CopyPackageVersionsRequest withDomain(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.public void setDomainOwner(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.public String getDomainOwner()
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
public CopyPackageVersionsRequest withDomainOwner(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.public void setSourceRepository(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.public String getSourceRepository()
The name of the repository that contains the package versions to copy.
public CopyPackageVersionsRequest withSourceRepository(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.public void setDestinationRepository(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.public String getDestinationRepository()
The name of the repository into which package versions are copied.
public CopyPackageVersionsRequest withDestinationRepository(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.public void setFormat(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.
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.
PackageFormat
public String getFormat()
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.
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.
PackageFormat
public CopyPackageVersionsRequest withFormat(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.
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.
PackageFormat
public CopyPackageVersionsRequest withFormat(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.
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.
PackageFormat
public void setNamespace(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.
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.
public String getNamespace()
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.
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.
public CopyPackageVersionsRequest withNamespace(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.
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.
public void setPackage(String packageValue)
The name of the package that is copied.
packageValue
- The name of the package that is copied.public String getPackage()
The name of the package that is copied.
public CopyPackageVersionsRequest withPackage(String packageValue)
The name of the package that is copied.
packageValue
- The name of the package that is copied.public List<String> getVersions()
The versions of the package to copy.
You must specify versions
or versionRevisions
. You cannot specify both.
You must specify versions
or versionRevisions
. You cannot specify both.
public void setVersions(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.
public CopyPackageVersionsRequest withVersions(String... versions)
The versions of the package to copy.
You must specify versions
or versionRevisions
. You cannot specify both.
NOTE: This method appends the values to the existing list (if any). Use
setVersions(java.util.Collection)
or withVersions(java.util.Collection)
if you want to override
the existing values.
versions
- The versions of the package to copy.
You must specify versions
or versionRevisions
. You cannot specify both.
public CopyPackageVersionsRequest withVersions(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.
public Map<String,String> getVersionRevisions()
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.
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.
public void setVersionRevisions(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.
public CopyPackageVersionsRequest withVersionRevisions(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.
public CopyPackageVersionsRequest addVersionRevisionsEntry(String key, String value)
public CopyPackageVersionsRequest clearVersionRevisionsEntries()
public void setAllowOverwrite(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.public Boolean getAllowOverwrite()
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.
failedVersions
field of the response with an ALREADY_EXISTS
error code.public CopyPackageVersionsRequest withAllowOverwrite(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.public Boolean isAllowOverwrite()
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.
failedVersions
field of the response with an ALREADY_EXISTS
error code.public void setIncludeFromUpstream(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.public Boolean getIncludeFromUpstream()
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.
public CopyPackageVersionsRequest withIncludeFromUpstream(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.public Boolean isIncludeFromUpstream()
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.
public String toString()
toString
in class Object
Object.toString()
public CopyPackageVersionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()