public AwsCredentials withExpiration(java.util.Date expiration) {
        setExpiration(expiration);
        return this;
    }
<p>
The expiration date and time of the IAM credentials.
</p>

@param expiration
       The expiration date and time of the IAM credentials.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/model/AwsCredentials.java