public UpdateConnectorRequest withCapacity(CapacityUpdate capacity) {
        setCapacity(capacity);
        return this;
    }
<p>
The target capacity.
</p>

@param capacity
       The target capacity.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kafkaconnect/src/main/java/com/amazonaws/services/kafkaconnect/model/UpdateConnectorRequest.java