@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 Amazon Web Services account that owns the domain.
|
String |
getFormat()
The format of the package versions to be 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 versions to be copied.
|
String |
getPackage()
The name of the package that contains the versions to be copied.
|
String |
getSourceRepository()
The name of the repository that contains the package versions to be copied.
|
Map<String,String> |
getVersionRevisions()
A list of key-value pairs.
|
List<String> |
getVersions()
The versions of the package to be copied.
|
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 Amazon Web Services account that owns the domain.
|
void |
setFormat(String format)
The format of the package versions to be 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 versions to be copied.
|
void |
setPackage(String packageValue)
The name of the package that contains the versions to be copied.
|
void |
setSourceRepository(String sourceRepository)
The name of the repository that contains the package versions to be copied.
|
void |
setVersionRevisions(Map<String,String> versionRevisions)
A list of key-value pairs.
|
void |
setVersions(Collection<String> versions)
The versions of the package to be copied.
|
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 Amazon Web Services account that owns the domain.
|
CopyPackageVersionsRequest |
withFormat(PackageFormat format)
The format of the package versions to be copied.
|
CopyPackageVersionsRequest |
withFormat(String format)
The format of the package versions to be 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 versions to be copied.
|
CopyPackageVersionsRequest |
withPackage(String packageValue)
The name of the package that contains the versions to be copied.
|
CopyPackageVersionsRequest |
withSourceRepository(String sourceRepository)
The name of the repository that contains the package versions to be copied.
|
CopyPackageVersionsRequest |
withVersionRevisions(Map<String,String> versionRevisions)
A list of key-value pairs.
|
CopyPackageVersionsRequest |
withVersions(Collection<String> versions)
The versions of the package to be copied.
|
CopyPackageVersionsRequest |
withVersions(String... versions)
The versions of the package to be copied.
|
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 Amazon Web Services account that owns the domain. It does not include dashes or spaces.
domainOwner
- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
dashes or spaces.public String getDomainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
public CopyPackageVersionsRequest withDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
domainOwner
- The 12-digit account number of the Amazon Web Services 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 be copied.
sourceRepository
- The name of the repository that contains the package versions to be copied.public String getSourceRepository()
The name of the repository that contains the package versions to be copied.
public CopyPackageVersionsRequest withSourceRepository(String sourceRepository)
The name of the repository that contains the package versions to be copied.
sourceRepository
- The name of the repository that contains the package versions to be copied.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 versions to be copied.
format
- The format of the package versions to be copied.PackageFormat
public String getFormat()
The format of the package versions to be copied.
PackageFormat
public CopyPackageVersionsRequest withFormat(String format)
The format of the package versions to be copied.
format
- The format of the package versions to be copied.PackageFormat
public CopyPackageVersionsRequest withFormat(PackageFormat format)
The format of the package versions to be copied.
format
- The format of the package versions to be copied.PackageFormat
public void setNamespace(String namespace)
The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example:
The namespace is required when copying package versions of the following formats:
Maven
Swift
generic
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.
namespace
- The namespace of the package versions to be copied. The package component that specifies its namespace
depends on its type. For example: The namespace is required when copying package versions of the following formats:
Maven
Swift
generic
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.
public String getNamespace()
The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example:
The namespace is required when copying package versions of the following formats:
Maven
Swift
generic
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.
The namespace is required when copying package versions of the following formats:
Maven
Swift
generic
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.
public CopyPackageVersionsRequest withNamespace(String namespace)
The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example:
The namespace is required when copying package versions of the following formats:
Maven
Swift
generic
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.
namespace
- The namespace of the package versions to be copied. The package component that specifies its namespace
depends on its type. For example: The namespace is required when copying package versions of the following formats:
Maven
Swift
generic
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.
public void setPackage(String packageValue)
The name of the package that contains the versions to be copied.
packageValue
- The name of the package that contains the versions to be copied.public String getPackage()
The name of the package that contains the versions to be copied.
public CopyPackageVersionsRequest withPackage(String packageValue)
The name of the package that contains the versions to be copied.
packageValue
- The name of the package that contains the versions to be copied.public List<String> getVersions()
The versions of the package to be copied.
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 be copied.
You must specify versions
or versionRevisions
. You cannot specify both.
versions
- The versions of the package to be copied.
You must specify versions
or versionRevisions
. You cannot specify both.
public CopyPackageVersionsRequest withVersions(String... versions)
The versions of the package to be copied.
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 be copied.
You must specify versions
or versionRevisions
. You cannot specify both.
public CopyPackageVersionsRequest withVersions(Collection<String> versions)
The versions of the package to be copied.
You must specify versions
or versionRevisions
. You cannot specify both.
versions
- The versions of the package to be copied.
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()