public CreateKxClusterRequest withCacheStorageConfigurations(KxCacheStorageConfiguration... cacheStorageConfigurations) {
        if (this.cacheStorageConfigurations == null) {
            setCacheStorageConfigurations(new java.util.ArrayList<KxCacheStorageConfiguration>(cacheStorageConfigurations.length));
        }
        for (KxCacheStorageConfiguration ele : cacheStorageConfigurations) {
            this.cacheStorageConfigurations.add(ele);
        }
        return this;
    }
<p>
The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx
Lustre that reads from the S3 store.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCacheStorageConfigurations(java.util.Collection)} or
{@link #withCacheStorageConfigurations(java.util.Collection)} if you want to override the existing values.
</p>

@param cacheStorageConfigurations
       The configurations for a read only cache storage associated with a cluster. This cache will be stored as
       an FSx Lustre that reads from the S3 store.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-finspace/src/main/java/com/amazonaws/services/finspace/model/CreateKxClusterRequest.java