public void setCapacityReservationId(String capacityReservationId) {
        this.capacityReservationId = capacityReservationId;
    }
<p>
The ID of the Capacity Reservation to be cancelled.
</p>

@param capacityReservationId
       The ID of the Capacity Reservation to be cancelled.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CancelCapacityReservationRequest.java