public DeletePolicyVersionRequest withVersionId(String versionId) {
        setVersionId(versionId);
        return this;
    }
<p>
The policy version to delete.
</p>
<p>
This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a
period '.' and a string of letters and digits.
</p>
<p>
For more information about managed policy versions, see <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html">Versioning for managed
policies</a> in the <i>IAM User Guide</i>.
</p>

@param versionId
       The policy version to delete.</p>
       <p>
       This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string
       of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally
       followed by a period '.' and a string of letters and digits.
       </p>
       <p>
       For more information about managed policy versions, see <a
       href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html">Versioning for
       managed policies</a> in the <i>IAM User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/DeletePolicyVersionRequest.java