public AwsCredentials withExpiration(Long expiration) {
        setExpiration(expiration);
        return this;
    }
<p>
The Epoch time when the current credentials expire.
</p>

@param expiration
       The Epoch time when the current credentials expire.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-finspacedata/src/main/java/com/amazonaws/services/finspacedata/model/AwsCredentials.java