public DisposePackageVersionsRequest withExpectedStatus(String expectedStatus) {
        setExpectedStatus(expectedStatus);
        return this;
    }
<p>
The expected status of the package version to dispose.
</p>

@param expectedStatus
       The expected status of the package version to dispose.
@return Returns a reference to this object so that method calls can be chained together.
@see PackageVersionStatus
aws-java-sdk-codeartifact/src/main/java/com/amazonaws/services/codeartifact/model/DisposePackageVersionsRequest.java