public Credentials withExpiration(java.util.Date expiration) {
        setExpiration(expiration);
        return this;
    }
<p>
The date at which these credentials will expire.
</p>

@param expiration
       The date at which these credentials will expire.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidentity/src/main/java/com/amazonaws/services/cognitoidentity/model/Credentials.java