public Command withExpiresAfter(java.util.Date expiresAfter) {
        setExpiresAfter(expiresAfter);
        return this;
    }
<p>
If a command expires, it changes status to <code>DeliveryTimedOut</code> for all invocations that have the status
<code>InProgress</code>, <code>Pending</code>, or <code>Delayed</code>. <code>ExpiresAfter</code> is calculated
based on the total timeout for the overall command. For more information, see <a href=
"https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html?icmpid=docs_ec2_console#monitor-about-status-timeouts"
>Understanding command timeout values</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.
</p>

@param expiresAfter
       If a command expires, it changes status to <code>DeliveryTimedOut</code> for all invocations that have the
       status <code>InProgress</code>, <code>Pending</code>, or <code>Delayed</code>. <code>ExpiresAfter</code>
       is calculated based on the total timeout for the overall command. For more information, see <a href=
       "https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html?icmpid=docs_ec2_console#monitor-about-status-timeouts"
       >Understanding command timeout values</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/Command.java