public Step withExpiry(Expiry expiry) {
        setExpiry(expiry);
        return this;
    }
<p>
An object to specify the expiration of a routing step.
</p>

@param expiry
       An object to specify the expiration of a routing step.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Step.java