public RetentionProperties withMemoryStoreRetentionPeriodInHours(Long memoryStoreRetentionPeriodInHours) {
        setMemoryStoreRetentionPeriodInHours(memoryStoreRetentionPeriodInHours);
        return this;
    }
<p>
The duration for which data must be stored in the memory store.
</p>

@param memoryStoreRetentionPeriodInHours
       The duration for which data must be stored in the memory 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/RetentionProperties.java