public Deployment withVolumeConfigurations(ServiceVolumeConfiguration... volumeConfigurations) {
        if (this.volumeConfigurations == null) {
            setVolumeConfigurations(new com.amazonaws.internal.SdkInternalList<ServiceVolumeConfiguration>(volumeConfigurations.length));
        }
        for (ServiceVolumeConfiguration ele : volumeConfigurations) {
            this.volumeConfigurations.add(ele);
        }
        return this;
    }
<p>
The details of the volume that was <code>configuredAtLaunch</code>. You can configure different settings like the
size, throughput, volumeType, and ecryption in <a
href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html"
>ServiceManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code>
from the task definition.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setVolumeConfigurations(java.util.Collection)} or {@link #withVolumeConfigurations(java.util.Collection)}
if you want to override the existing values.
</p>

@param volumeConfigurations
       The details of the volume that was <code>configuredAtLaunch</code>. You can configure different settings
       like the size, throughput, volumeType, and ecryption in <a href=
       "https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html"
       >ServiceManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the
       <code>name</code> from the task definition.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/Deployment.java