public RegisterVolumeRequest withEc2VolumeId(String ec2VolumeId) {
        setEc2VolumeId(ec2VolumeId);
        return this;
    }
<p>
The Amazon EBS volume ID.
</p>

@param ec2VolumeId
       The Amazon EBS volume ID.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/RegisterVolumeRequest.java