public CurrentAssignmentBuilder withTargetAssignment(
        int targetAssignmentEpoch,
        Assignment targetAssignment
    ) {
        this.targetAssignmentEpoch = targetAssignmentEpoch;
        this.targetAssignment = Objects.requireNonNull(targetAssignment);
        return this;
    }
Sets the target assignment epoch and the target assignment that the
consumer group member must be reconciled to.

@param targetAssignmentEpoch The target assignment epoch.
@param targetAssignment      The target assignment.
@return This object.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java