public Snapshot withVolumeId(String volumeId) {
        setVolumeId(volumeId);
        return this;
    }
<p>
The ID of the volume that was used to create the snapshot. Snapshots created by the <a>CopySnapshot</a> action
have an arbitrary volume ID that should not be used for any purpose.
</p>

@param volumeId
       The ID of the volume that was used to create the snapshot. Snapshots created by the <a>CopySnapshot</a>
       action have an arbitrary volume ID that should not be used for any purpose.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/Snapshot.java