public GetQuantumTaskResult withShots(Long shots) {
        setShots(shots);
        return this;
    }
<p>
The number of shots used in the task.
</p>

@param shots
       The number of shots used in the task.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-braket/src/main/java/com/amazonaws/services/braket/model/GetQuantumTaskResult.java