@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 AWS 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. | 
| 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 AWS 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. | 
| 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 AWS 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. | 
| 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, withSdkRequestTimeoutpublic 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 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 DeletePackageVersionsRequest 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 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. The valid values are:
 npm
 
 pypi
 
 maven
 
format - The format of the package versions to delete. The valid values are: 
        
        npm
        
        pypi
        
        maven
        
PackageFormatpublic String getFormat()
The format of the package versions to delete. The valid values are:
 npm
 
 pypi
 
 maven
 
         npm
         
         pypi
         
         maven
         
PackageFormatpublic DeletePackageVersionsRequest withFormat(String format)
The format of the package versions to delete. The valid values are:
 npm
 
 pypi
 
 maven
 
format - The format of the package versions to delete. The valid values are: 
        
        npm
        
        pypi
        
        maven
        
PackageFormatpublic DeletePackageVersionsRequest withFormat(PackageFormat format)
The format of the package versions to delete. The valid values are:
 npm
 
 pypi
 
 maven
 
format - The format of the package versions to delete. The valid values are: 
        
        npm
        
        pypi
        
        maven
        
PackageFormatpublic 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 DeletePackageVersionsRequest 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 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. Valid values are:
 Published
 
 Unfinished
 
 Unlisted
 
 Archived
 
 Disposed
 
expectedStatus - The expected status of the package version to delete. Valid values are: 
        
        Published
        
        Unfinished
        
        Unlisted
        
        Archived
        
        Disposed
        
PackageVersionStatuspublic String getExpectedStatus()
The expected status of the package version to delete. Valid values are:
 Published
 
 Unfinished
 
 Unlisted
 
 Archived
 
 Disposed
 
         Published
         
         Unfinished
         
         Unlisted
         
         Archived
         
         Disposed
         
PackageVersionStatuspublic DeletePackageVersionsRequest withExpectedStatus(String expectedStatus)
The expected status of the package version to delete. Valid values are:
 Published
 
 Unfinished
 
 Unlisted
 
 Archived
 
 Disposed
 
expectedStatus - The expected status of the package version to delete. Valid values are: 
        
        Published
        
        Unfinished
        
        Unlisted
        
        Archived
        
        Disposed
        
PackageVersionStatuspublic DeletePackageVersionsRequest withExpectedStatus(PackageVersionStatus expectedStatus)
The expected status of the package version to delete. Valid values are:
 Published
 
 Unfinished
 
 Unlisted
 
 Archived
 
 Disposed
 
expectedStatus - The expected status of the package version to delete. Valid values are: 
        
        Published
        
        Unfinished
        
        Unlisted
        
        Archived
        
        Disposed
        
PackageVersionStatuspublic String toString()
toString in class ObjectObject.toString()public DeletePackageVersionsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.