public CreateTableRequest withRetentionProperties(RetentionProperties retentionProperties) {
        setRetentionProperties(retentionProperties);
        return this;
    }
<p>
The duration for which your time-series data must be stored in the memory store and the magnetic store.
</p>

@param retentionProperties
       The duration for which your time-series data must be stored in the memory store and the magnetic store.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-timestreamwrite/src/main/java/com/amazonaws/services/timestreamwrite/model/CreateTableRequest.java