public ServerCertificateMetadata withExpiration(java.util.Date expiration) {
        setExpiration(expiration);
        return this;
    }
<p>
The date on which the certificate is set to expire.
</p>

@param expiration
       The date on which the certificate is set to expire.
@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/ServerCertificateMetadata.java