public SnapStartResponse withApplyOn(String applyOn) {
        setApplyOn(applyOn);
        return this;
    }
<p>
When set to <code>PublishedVersions</code>, Lambda creates a snapshot of the execution environment when you
publish a function version.
</p>

@param applyOn
       When set to <code>PublishedVersions</code>, Lambda creates a snapshot of the execution environment when
       you publish a function version.
@return Returns a reference to this object so that method calls can be chained together.
@see SnapStartApplyOn
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/SnapStartResponse.java