public GetRunResult withRetentionMode(RunRetentionMode retentionMode) {
        this.retentionMode = retentionMode.toString();
        return this;
    }
<p>
The run's retention mode.
</p>

@param retentionMode
       The run's retention mode.
@return Returns a reference to this object so that method calls can be chained together.
@see RunRetentionMode
aws-java-sdk-omics/src/main/java/com/amazonaws/services/omics/model/GetRunResult.java