@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdatePackageVersionsStatusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdatePackageVersionsStatusRequest() |
Modifier and Type | Method and Description |
---|---|
UpdatePackageVersionsStatusRequest |
addVersionRevisionsEntry(String key,
String value)
Add a single VersionRevisions entry
|
UpdatePackageVersionsStatusRequest |
clearVersionRevisionsEntries()
Removes all the entries added into VersionRevisions.
|
UpdatePackageVersionsStatusRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDomain()
The name of the domain that contains the repository that contains the package versions with a status to be
updated.
|
String |
getDomainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
String |
getExpectedStatus()
The package version’s expected status before it is updated.
|
String |
getFormat()
A format that specifies the type of the package with the statuses to update.
|
String |
getNamespace()
The namespace of the package version to be updated.
|
String |
getPackage()
The name of the package with the version statuses to update.
|
String |
getRepository()
The repository that contains the package versions with the status you want to update.
|
String |
getTargetStatus()
The status you want to change the package version status to.
|
Map<String,String> |
getVersionRevisions()
A map of package versions and package version revisions.
|
List<String> |
getVersions()
An array of strings that specify the versions of the package with the statuses to update.
|
int |
hashCode() |
void |
setDomain(String domain)
The name of the domain that contains the repository that contains the package versions with a status to be
updated.
|
void |
setDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
void |
setExpectedStatus(String expectedStatus)
The package version’s expected status before it is updated.
|
void |
setFormat(String format)
A format that specifies the type of the package with the statuses to update.
|
void |
setNamespace(String namespace)
The namespace of the package version to be updated.
|
void |
setPackage(String packageValue)
The name of the package with the version statuses to update.
|
void |
setRepository(String repository)
The repository that contains the package versions with the status you want to update.
|
void |
setTargetStatus(String targetStatus)
The status you want to change the package version status to.
|
void |
setVersionRevisions(Map<String,String> versionRevisions)
A map of package versions and package version revisions.
|
void |
setVersions(Collection<String> versions)
An array of strings that specify the versions of the package with the statuses to update.
|
String |
toString()
Returns a string representation of this object.
|
UpdatePackageVersionsStatusRequest |
withDomain(String domain)
The name of the domain that contains the repository that contains the package versions with a status to be
updated.
|
UpdatePackageVersionsStatusRequest |
withDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
UpdatePackageVersionsStatusRequest |
withExpectedStatus(PackageVersionStatus expectedStatus)
The package version’s expected status before it is updated.
|
UpdatePackageVersionsStatusRequest |
withExpectedStatus(String expectedStatus)
The package version’s expected status before it is updated.
|
UpdatePackageVersionsStatusRequest |
withFormat(PackageFormat format)
A format that specifies the type of the package with the statuses to update.
|
UpdatePackageVersionsStatusRequest |
withFormat(String format)
A format that specifies the type of the package with the statuses to update.
|
UpdatePackageVersionsStatusRequest |
withNamespace(String namespace)
The namespace of the package version to be updated.
|
UpdatePackageVersionsStatusRequest |
withPackage(String packageValue)
The name of the package with the version statuses to update.
|
UpdatePackageVersionsStatusRequest |
withRepository(String repository)
The repository that contains the package versions with the status you want to update.
|
UpdatePackageVersionsStatusRequest |
withTargetStatus(PackageVersionStatus targetStatus)
The status you want to change the package version status to.
|
UpdatePackageVersionsStatusRequest |
withTargetStatus(String targetStatus)
The status you want to change the package version status to.
|
UpdatePackageVersionsStatusRequest |
withVersionRevisions(Map<String,String> versionRevisions)
A map of package versions and package version revisions.
|
UpdatePackageVersionsStatusRequest |
withVersions(Collection<String> versions)
An array of strings that specify the versions of the package with the statuses to update.
|
UpdatePackageVersionsStatusRequest |
withVersions(String... versions)
An array of strings that specify the versions of the package with the statuses to update.
|
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 repository that contains the package versions with a status to be updated.
domain
- The name of the domain that contains the repository that contains the package versions with a status to be
updated.public String getDomain()
The name of the domain that contains the repository that contains the package versions with a status to be updated.
public UpdatePackageVersionsStatusRequest withDomain(String domain)
The name of the domain that contains the repository that contains the package versions with a status to be updated.
domain
- The name of the domain that contains the repository that contains the package versions with a status to be
updated.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 UpdatePackageVersionsStatusRequest 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 setRepository(String repository)
The repository that contains the package versions with the status you want to update.
repository
- The repository that contains the package versions with the status you want to update.public String getRepository()
The repository that contains the package versions with the status you want to update.
public UpdatePackageVersionsStatusRequest withRepository(String repository)
The repository that contains the package versions with the status you want to update.
repository
- The repository that contains the package versions with the status you want to update.public void setFormat(String format)
A format that specifies the type of the package with the statuses to update.
format
- A format that specifies the type of the package with the statuses to update.PackageFormat
public String getFormat()
A format that specifies the type of the package with the statuses to update.
PackageFormat
public UpdatePackageVersionsStatusRequest withFormat(String format)
A format that specifies the type of the package with the statuses to update.
format
- A format that specifies the type of the package with the statuses to update.PackageFormat
public UpdatePackageVersionsStatusRequest withFormat(PackageFormat format)
A format that specifies the type of the package with the statuses to update.
format
- A format that specifies the type of the package with the statuses to update.PackageFormat
public void setNamespace(String namespace)
The namespace of the package version to be updated. 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.
namespace
- The namespace of the package version to be updated. 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.
public String getNamespace()
The namespace of the package version to be updated. 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.
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 UpdatePackageVersionsStatusRequest withNamespace(String namespace)
The namespace of the package version to be updated. 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.
namespace
- The namespace of the package version to be updated. 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.
public void setPackage(String packageValue)
The name of the package with the version statuses to update.
packageValue
- The name of the package with the version statuses to update.public String getPackage()
The name of the package with the version statuses to update.
public UpdatePackageVersionsStatusRequest withPackage(String packageValue)
The name of the package with the version statuses to update.
packageValue
- The name of the package with the version statuses to update.public List<String> getVersions()
An array of strings that specify the versions of the package with the statuses to update.
public void setVersions(Collection<String> versions)
An array of strings that specify the versions of the package with the statuses to update.
versions
- An array of strings that specify the versions of the package with the statuses to update.public UpdatePackageVersionsStatusRequest withVersions(String... versions)
An array of strings that specify the versions of the package with the statuses to update.
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
- An array of strings that specify the versions of the package with the statuses to update.public UpdatePackageVersionsStatusRequest withVersions(Collection<String> versions)
An array of strings that specify the versions of the package with the statuses to update.
versions
- An array of strings that specify the versions of the package with the statuses to update.public Map<String,String> getVersionRevisions()
A map of package versions and package version revisions. The map key
is the package version (for
example, 3.5.2
), and the map value
is the package version revision.
key
is the package version
(for example, 3.5.2
), and the map value
is the package version revision.public void setVersionRevisions(Map<String,String> versionRevisions)
A map of package versions and package version revisions. The map key
is the package version (for
example, 3.5.2
), and the map value
is the package version revision.
versionRevisions
- A map of package versions and package version revisions. The map key
is the package version
(for example, 3.5.2
), and the map value
is the package version revision.public UpdatePackageVersionsStatusRequest withVersionRevisions(Map<String,String> versionRevisions)
A map of package versions and package version revisions. The map key
is the package version (for
example, 3.5.2
), and the map value
is the package version revision.
versionRevisions
- A map of package versions and package version revisions. The map key
is the package version
(for example, 3.5.2
), and the map value
is the package version revision.public UpdatePackageVersionsStatusRequest addVersionRevisionsEntry(String key, String value)
public UpdatePackageVersionsStatusRequest clearVersionRevisionsEntries()
public void setExpectedStatus(String expectedStatus)
The package version’s expected status before it is updated. If expectedStatus
is provided, the
package version's status is updated only if its status at the time UpdatePackageVersionsStatus
is
called matches expectedStatus
.
expectedStatus
- The package version’s expected status before it is updated. If expectedStatus
is provided,
the package version's status is updated only if its status at the time
UpdatePackageVersionsStatus
is called matches expectedStatus
.PackageVersionStatus
public String getExpectedStatus()
The package version’s expected status before it is updated. If expectedStatus
is provided, the
package version's status is updated only if its status at the time UpdatePackageVersionsStatus
is
called matches expectedStatus
.
expectedStatus
is provided,
the package version's status is updated only if its status at the time
UpdatePackageVersionsStatus
is called matches expectedStatus
.PackageVersionStatus
public UpdatePackageVersionsStatusRequest withExpectedStatus(String expectedStatus)
The package version’s expected status before it is updated. If expectedStatus
is provided, the
package version's status is updated only if its status at the time UpdatePackageVersionsStatus
is
called matches expectedStatus
.
expectedStatus
- The package version’s expected status before it is updated. If expectedStatus
is provided,
the package version's status is updated only if its status at the time
UpdatePackageVersionsStatus
is called matches expectedStatus
.PackageVersionStatus
public UpdatePackageVersionsStatusRequest withExpectedStatus(PackageVersionStatus expectedStatus)
The package version’s expected status before it is updated. If expectedStatus
is provided, the
package version's status is updated only if its status at the time UpdatePackageVersionsStatus
is
called matches expectedStatus
.
expectedStatus
- The package version’s expected status before it is updated. If expectedStatus
is provided,
the package version's status is updated only if its status at the time
UpdatePackageVersionsStatus
is called matches expectedStatus
.PackageVersionStatus
public void setTargetStatus(String targetStatus)
The status you want to change the package version status to.
targetStatus
- The status you want to change the package version status to.PackageVersionStatus
public String getTargetStatus()
The status you want to change the package version status to.
PackageVersionStatus
public UpdatePackageVersionsStatusRequest withTargetStatus(String targetStatus)
The status you want to change the package version status to.
targetStatus
- The status you want to change the package version status to.PackageVersionStatus
public UpdatePackageVersionsStatusRequest withTargetStatus(PackageVersionStatus targetStatus)
The status you want to change the package version status to.
targetStatus
- The status you want to change the package version status to.PackageVersionStatus
public String toString()
toString
in class Object
Object.toString()
public UpdatePackageVersionsStatusRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()