public AwsEcsTaskDefinitionContainerDefinitionsDetails withVolumesFrom(AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails... volumesFrom) {
        if (this.volumesFrom == null) {
            setVolumesFrom(new java.util.ArrayList<AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails>(volumesFrom.length));
        }
        for (AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails ele : volumesFrom) {
            this.volumesFrom.add(ele);
        }
        return this;
    }
<p>
Data volumes to mount from another container.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setVolumesFrom(java.util.Collection)} or {@link #withVolumesFrom(java.util.Collection)} if you want to
override the existing values.
</p>

@param volumesFrom
       Data volumes to mount from another container.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsTaskDefinitionContainerDefinitionsDetails.java