public GetCredentialsResult withExpiration(java.util.Date expiration) {
        setExpiration(expiration);
        return this;
    }
<p>
The date and time the password in <code>DbPassword</code> expires.
</p>

@param expiration
       The date and time the password in <code>DbPassword</code> expires.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshiftserverless/src/main/java/com/amazonaws/services/redshiftserverless/model/GetCredentialsResult.java