@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeletePackageVersionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DeletePackageVersionsRequest() |
Modifier and Type | Method and Description |
---|---|
DeletePackageVersionsRequest |
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 package to delete.
|
String |
getDomainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
String |
getExpectedStatus()
The expected status of the package version to delete.
|
String |
getFormat()
The format of the package versions to delete.
|
String |
getNamespace()
The namespace of the package versions to be deleted.
|
String |
getPackage()
The name of the package with the versions to delete.
|
String |
getRepository()
The name of the repository that contains the package versions to delete.
|
List<String> |
getVersions()
An array of strings that specify the versions of the package to delete.
|
int |
hashCode() |
void |
setDomain(String domain)
The name of the domain that contains the package to delete.
|
void |
setDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
void |
setExpectedStatus(String expectedStatus)
The expected status of the package version to delete.
|
void |
setFormat(String format)
The format of the package versions to delete.
|
void |
setNamespace(String namespace)
The namespace of the package versions to be deleted.
|
void |
setPackage(String packageValue)
The name of the package with the versions to delete.
|
void |
setRepository(String repository)
The name of the repository that contains the package versions to delete.
|
void |
setVersions(Collection<String> versions)
An array of strings that specify the versions of the package to delete.
|
String |
toString()
Returns a string representation of this object.
|
DeletePackageVersionsRequest |
withDomain(String domain)
The name of the domain that contains the package to delete.
|
DeletePackageVersionsRequest |
withDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
DeletePackageVersionsRequest |
withExpectedStatus(PackageVersionStatus expectedStatus)
The expected status of the package version to delete.
|
DeletePackageVersionsRequest |
withExpectedStatus(String expectedStatus)
The expected status of the package version to delete.
|
DeletePackageVersionsRequest |
withFormat(PackageFormat format)
The format of the package versions to delete.
|
DeletePackageVersionsRequest |
withFormat(String format)
The format of the package versions to delete.
|
DeletePackageVersionsRequest |
withNamespace(String namespace)
The namespace of the package versions to be deleted.
|
DeletePackageVersionsRequest |
withPackage(String packageValue)
The name of the package with the versions to delete.
|
DeletePackageVersionsRequest |
withRepository(String repository)
The name of the repository that contains the package versions to delete.
|
DeletePackageVersionsRequest |
withVersions(Collection<String> versions)
An array of strings that specify the versions of the package to delete.
|
DeletePackageVersionsRequest |
withVersions(String... versions)
An array of strings that specify the versions of the package to delete.
|
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 package to delete.
domain
- The name of the domain that contains the package to delete.public String getDomain()
The name of the domain that contains the package to delete.
public DeletePackageVersionsRequest withDomain(String domain)
The name of the domain that contains the package to delete.
domain
- The name of the domain that contains the package to delete.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 DeletePackageVersionsRequest 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 name of the repository that contains the package versions to delete.
repository
- The name of the repository that contains the package versions to delete.public String getRepository()
The name of the repository that contains the package versions to delete.
public DeletePackageVersionsRequest withRepository(String repository)
The name of the repository that contains the package versions to delete.
repository
- The name of the repository that contains the package versions to delete.public void setFormat(String format)
The format of the package versions to delete.
format
- The format of the package versions to delete.PackageFormat
public String getFormat()
The format of the package versions to delete.
PackageFormat
public DeletePackageVersionsRequest withFormat(String format)
The format of the package versions to delete.
format
- The format of the package versions to delete.PackageFormat
public DeletePackageVersionsRequest withFormat(PackageFormat format)
The format of the package versions to delete.
format
- The format of the package versions to delete.PackageFormat
public void setNamespace(String namespace)
The namespace of the package versions to be deleted. The package component that specifies its namespace depends on its type. For example:
The namespace is required when deleting 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 deleted. The package component that specifies its namespace
depends on its type. For example: The namespace is required when deleting 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 deleted. The package component that specifies its namespace depends on its type. For example:
The namespace is required when deleting 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 deleting 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 DeletePackageVersionsRequest withNamespace(String namespace)
The namespace of the package versions to be deleted. The package component that specifies its namespace depends on its type. For example:
The namespace is required when deleting 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 deleted. The package component that specifies its namespace
depends on its type. For example: The namespace is required when deleting 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 with the versions to delete.
packageValue
- The name of the package with the versions to delete.public String getPackage()
The name of the package with the versions to delete.
public DeletePackageVersionsRequest withPackage(String packageValue)
The name of the package with the versions to delete.
packageValue
- The name of the package with the versions to delete.public List<String> getVersions()
An array of strings that specify the versions of the package to delete.
public void setVersions(Collection<String> versions)
An array of strings that specify the versions of the package to delete.
versions
- An array of strings that specify the versions of the package to delete.public DeletePackageVersionsRequest withVersions(String... versions)
An array of strings that specify the versions of the package to delete.
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 to delete.public DeletePackageVersionsRequest withVersions(Collection<String> versions)
An array of strings that specify the versions of the package to delete.
versions
- An array of strings that specify the versions of the package to delete.public void setExpectedStatus(String expectedStatus)
The expected status of the package version to delete.
expectedStatus
- The expected status of the package version to delete.PackageVersionStatus
public String getExpectedStatus()
The expected status of the package version to delete.
PackageVersionStatus
public DeletePackageVersionsRequest withExpectedStatus(String expectedStatus)
The expected status of the package version to delete.
expectedStatus
- The expected status of the package version to delete.PackageVersionStatus
public DeletePackageVersionsRequest withExpectedStatus(PackageVersionStatus expectedStatus)
The expected status of the package version to delete.
expectedStatus
- The expected status of the package version to delete.PackageVersionStatus
public String toString()
toString
in class Object
Object.toString()
public DeletePackageVersionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()